{"_id":"59a45d2cd12e81000f842f55","category":{"_id":"59a45d2bd12e81000f842eee","version":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-15T16:20:51.519Z","from_sync":false,"order":11,"slug":"resources","title":"JSON Objects"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-08-28T18:12:59.168Z","releaseDate":"2017-08-28T18:12:59.168Z","categories":["59a45d2bd12e81000f842ee3","59a45d2bd12e81000f842ee4","59a45d2bd12e81000f842ee5","59a45d2bd12e81000f842ee6","59a45d2bd12e81000f842ee7","59a45d2bd12e81000f842ee8","59a45d2bd12e81000f842ee9","59a45d2bd12e81000f842eea","59a45d2bd12e81000f842eeb","59a45d2bd12e81000f842eec","59a45d2bd12e81000f842eed","59a45d2bd12e81000f842eee","59a45d2bd12e81000f842eef","59a45d2bd12e81000f842ef0","59a45d2bd12e81000f842ef1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.1","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-27T12:19:10.487Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":79,"body":"###Request\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Required\",\n    \"0-0\": \"`planId`\",\n    \"0-1\": \"*integer*\",\n    \"h-3\": \"Description\",\n    \"0-3\": \"ID of the billing [plan](doc:plan) associated with this subscription.\",\n    \"2-0\": \"`payerInfo`\",\n    \"2-1\": \"container\",\n    \"2-3\": \"See [payerInfo](doc:payer-info).\",\n    \"h-4\": \"Description\",\n    \"0-2\": \"**Required** for Create Subscription\",\n    \"2-2\": \"Optional\\n*Do not include if sending* `vaultedShopperId`\",\n    \"3-0\": \"`paymentSource`\",\n    \"3-1\": \"container\",\n    \"3-3\": \"See [paymentSource](doc:payment-source).\",\n    \"3-2\": \"**Required** for Create Subscription if sending `payerInfo`\\n\\n**Optional** if sending `vaultedShopperId`\",\n    \"9-0\": \"`transactionFraudInfo`\",\n    \"9-1\": \"container\",\n    \"9-2\": \"**Required** for Create Subscription\",\n    \"9-3\": \"See [transactionFraudInfo](doc:transaction-fraud-info).\",\n    \"4-0\": \"`quantity`\",\n    \"5-0\": \"`softDescriptor`\",\n    \"6-0\": \"`overrideTrialPeriodDays`\",\n    \"7-0\": \"`overrideRecurringChargeAmount`\",\n    \"4-1\": \"*integer*\",\n    \"4-2\": \"Optional\\n*Create Subscription requests only*\",\n    \"4-3\": \"Quantity to apply to the subscription.\\nDefault is **1**.\\nFor example, to charge for 10 users in this subscription, set the quantity to 10. If the associated plan's price is $30 per month, then this subscription's recurring payment will be $300 per month (10 x $30).\",\n    \"5-3\": \"Description of the transaction, which appears on the shopper's credit card statement.\",\n    \"5-1\": \"*string*\",\n    \"5-2\": \"Optional\",\n    \"6-1\": \"*integer*\",\n    \"6-2\": \"Optional\",\n    \"6-3\": \"Number of days in the trial period. This will override the trial period defined for the associated billing plan. The override applies only to this subscription.\",\n    \"7-1\": \"*decimal*\",\n    \"7-2\": \"Optional\",\n    \"7-3\": \"Recurring amount to be charged. This will override the charge amount defined for the associated billing plan. The override applies only to this subscription.\",\n    \"1-0\": \"`vaultedShopperId`\",\n    \"1-1\": \"*integer*\",\n    \"1-2\": \"Optional\\n*Do not include if sending* `payerInfo`\",\n    \"1-3\": \"ID of an existing vaulted shopper.\",\n    \"10-0\": \"`autoRenew`\",\n    \"12-0\": \"`nextChargeDate`\",\n    \"13-0\": \"`status`\",\n    \"13-3\": \"Permitted values:\\n  * **ACTIVE**\\n  * **CANCELED**\",\n    \"10-1\": \"*boolean*\",\n    \"12-1\": \"*string*\",\n    \"13-1\": \"*string*\",\n    \"13-2\": \"Optional\\n*Create/Update Subscription requests only*\",\n    \"12-2\": \"Optional\\n*Create/Update Subscription requests only*\",\n    \"10-2\": \"Optional\\n*Optional Update Subscription requests only*\",\n    \"10-3\": \"Determines whether the subscription will automatically continue, or will expire at the end of the current period.\",\n    \"12-3\": \"Next charge date.\\nIf you change this, the date of future recurring charges will be adjusted accordingly.\",\n    \"8-0\": \"`overrideInitialChargeAmount`\",\n    \"8-1\": \"*decimal*\",\n    \"8-2\": \"Optional\",\n    \"8-3\": \"Initial amount to be charged. This will override the charge amount defined for the associated billing plan. The override applies only to this subscription.\\nIf you override the price by this property in the request, then any later changes to the plan's price will not be applied to this subscription.\",\n    \"11-0\": \"`authorizedByShopper`\",\n    \"11-1\": \"*boolean*\",\n    \"11-2\": \"**Required** for SEPA Direct Debit \\n*Create Subscription requests only*\",\n    \"11-3\": \"Value must be **true**.\\n\\nPass this parameter to indicate that you have obtained the shopper's authorization of the [SEPA Direct Debit mandate](/v1.0/docs/sepa-direct-debit#section-step-1-collect-a-mandate-acceptance-from-your-shopper).\"\n  },\n  \"cols\": 4,\n  \"rows\": 14\n}\n[/block]\n###Response\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Required\",\n    \"1-0\": \"`planId`\",\n    \"1-1\": \"*integer*\",\n    \"h-3\": \"Description\",\n    \"1-3\": \"ID of the billing [plan](doc:plan) associated with this subscription.\",\n    \"h-4\": \"Description\",\n    \"1-2\": \"ID of the billing [plan](doc:plan) associated with this subscription.\",\n    \"17-0\": \"`paymentSource`\",\n    \"17-1\": \"container\",\n    \"17-3\": \"Container of [payment-source](doc:payment-source) properties.\",\n    \"17-2\": \"See [paymentSource](doc:payment-source).\",\n    \"19-0\": \"`fraudResultInfo`\",\n    \"19-1\": \"container\",\n    \"19-2\": \"*Create Subscription response only*\\n\\nSee [fraudResultInfo](doc:fraud-result-info).\",\n    \"19-3\": \"Container of [transaction-fraud-info](doc:transaction-fraud-info) properties.\",\n    \"18-0\": \"`charge`\",\n    \"18-2\": \"*Create Subscription response only*\\n\\nSee [charge](doc:charge).\",\n    \"18-3\": \"ID of an existing vaulted shopper.\",\n    \"18-1\": \"container\",\n    \"0-0\": \"`subscriptionId`\",\n    \"0-3\": \"\",\n    \"0-1\": \"*integer*\",\n    \"0-2\": \"BlueSnap identifier for the subscription.\",\n    \"2-0\": \"`vaultedShopperId`\",\n    \"2-1\": \"*integer*\",\n    \"2-2\": \"ID of an existing vaulted shopper.\",\n    \"16-0\": \"`payerInfo`\",\n    \"16-1\": \"container\",\n    \"16-2\": \"See [payerInfo](doc:payer-info).\",\n    \"3-0\": \"`status`\",\n    \"3-1\": \"*string*\",\n    \"3-2\": \"Possible values:\\n  * **ACTIVE**\\n  * **CANCELED**\\n  * **SUSPENDED**\\n  * **FINISHED** (the subscription reached the plan's `max-number-of-charges` limit)\",\n    \"4-0\": \"`quantity`\",\n    \"4-1\": \"*integer*\",\n    \"4-2\": \"Quantity to apply to the subscription.\\nDefault is **1**.\",\n    \"5-0\": \"`softDescriptor`\",\n    \"5-1\": \"*string*\",\n    \"5-2\": \"Description of the transaction, which appears on the shopper's credit card statement.\",\n    \"6-0\": \"`chargeFrequency`\",\n    \"6-1\": \"*string*\",\n    \"6-2\": \"Possible values:\\n  * **ONCE**\\n  * **DAILY**\\n  * **WEEKLY**\\n  * **EVERY 2 WEEKS**\\n  * **MONTHLY**\\n  * **EVERY 2 MONTHS**\\n  * **QUARTERLY**\\n  * **EVERY 6 MONTHS**\\n  * **ANNUALLY**\\n  * **EVERY 2 YEARS**\\n  * **EVERY 3 YEARS**\",\n    \"7-0\": \"`trialPeriodDays`\",\n    \"7-1\": \"*integer*\",\n    \"7-2\": \"Number of days in the trial period.\\nFor example: **14**\",\n    \"9-0\": \"`recurringChargeAmount`\",\n    \"9-1\": \"*decimal*\",\n    \"9-2\": \"Recurring amount to be charged.\\nFor example: **29.99**\",\n    \"10-0\": \"`overrideRecurringChargeAmount`\",\n    \"10-1\": \"*decimal*\",\n    \"10-2\": \"Recurring amount to be charged. This will override the charge amount defined for the associated billing plan.  The override applies only to this subscription.\",\n    \"11-0\": \"`currency`\",\n    \"11-1\": \"*string*\",\n    \"11-2\": \"Currency code (ISO 4217) of the amount to be charged. See [Currency codes](/v1.0/docs/currency-codes).\",\n    \"12-0\": \"`initialChargeAmount`\",\n    \"12-1\": \"*decimal*\",\n    \"12-2\": \"Amount of the initial charge.\\nFor example: **99.00**\",\n    \"8-0\": \"`overrideTrialPeriodDays`\",\n    \"8-1\": \"*integer*\",\n    \"8-2\": \"Number of days in the trial period. This will override the trial period defined for the associated billing plan. The override applies only to this subscription.\",\n    \"13-0\": \"`overrideInitialChargeAmount`\",\n    \"13-1\": \"*decimal*\",\n    \"13-2\": \"Initial amount to be charged. This will override the charge amount defined for the associated billing plan. The override applies only to this subscription.\\nIf you override the price, any later changes to the plan's price will not be applied to this subscription.\",\n    \"14-0\": \"`autoRenew`\",\n    \"14-1\": \"*boolean*\",\n    \"14-2\": \"Determines whether the subscription will automatically continue, or will expire at the end of the current period.\",\n    \"15-0\": \"`nextChargeDate`\",\n    \"15-1\": \"*string*\",\n    \"15-2\": \"*Appears only if subscription is ACTIVE*\\nNext charge date.\\nFormat: yyyy-mm-dd\"\n  },\n  \"cols\": 3,\n  \"rows\": 20\n}\n[/block]","excerpt":"Contains information about a specific subscription","slug":"recurring-subscription","type":"basic","title":"subscription"}

subscription

Contains information about a specific subscription

Request

Property Name
Type
Required
Description

planId

integer

Required for Create Subscription

ID of the billing plan associated with this subscription.

vaultedShopperId

integer

Optional
Do not include if sending payerInfo

ID of an existing vaulted shopper.

payerInfo

container

Optional
Do not include if sending vaultedShopperId

See payerInfo.

paymentSource

container

Required for Create Subscription if sending payerInfo

Optional if sending vaultedShopperId

quantity

integer

Optional
Create Subscription requests only

Quantity to apply to the subscription.
Default is 1.
For example, to charge for 10 users in this subscription, set the quantity to 10. If the associated plan's price is $30 per month, then this subscription's recurring payment will be $300 per month (10 x $30).

softDescriptor

string

Optional

Description of the transaction, which appears on the shopper's credit card statement.

overrideTrialPeriodDays

integer

Optional

Number of days in the trial period. This will override the trial period defined for the associated billing plan. The override applies only to this subscription.

overrideRecurringChargeAmount

decimal

Optional

Recurring amount to be charged. This will override the charge amount defined for the associated billing plan. The override applies only to this subscription.

overrideInitialChargeAmount

decimal

Optional

Initial amount to be charged. This will override the charge amount defined for the associated billing plan. The override applies only to this subscription.
If you override the price by this property in the request, then any later changes to the plan's price will not be applied to this subscription.

transactionFraudInfo

container

Required for Create Subscription

autoRenew

boolean

Optional
Optional Update Subscription requests only

Determines whether the subscription will automatically continue, or will expire at the end of the current period.

authorizedByShopper

boolean

Required for SEPA Direct Debit
Create Subscription requests only

Value must be true.

Pass this parameter to indicate that you have obtained the shopper's authorization of the SEPA Direct Debit mandate.

nextChargeDate

string

Optional
Create/Update Subscription requests only

Next charge date.
If you change this, the date of future recurring charges will be adjusted accordingly.

status

string

Optional
Create/Update Subscription requests only

Permitted values:

  • ACTIVE
  • CANCELED

Response

Property Name
Type
Required

subscriptionId

integer

BlueSnap identifier for the subscription.

planId

integer

ID of the billing plan associated with this subscription.

vaultedShopperId

integer

ID of an existing vaulted shopper.

status

string

Possible values:

  • ACTIVE
  • CANCELED
  • SUSPENDED
  • FINISHED (the subscription reached the plan's max-number-of-charges limit)

quantity

integer

Quantity to apply to the subscription.
Default is 1.

softDescriptor

string

Description of the transaction, which appears on the shopper's credit card statement.

chargeFrequency

string

Possible values:

  • ONCE
  • DAILY
  • WEEKLY
  • EVERY 2 WEEKS
  • MONTHLY
  • EVERY 2 MONTHS
  • QUARTERLY
  • EVERY 6 MONTHS
  • ANNUALLY
  • EVERY 2 YEARS
  • EVERY 3 YEARS

trialPeriodDays

integer

Number of days in the trial period.
For example: 14

overrideTrialPeriodDays

integer

Number of days in the trial period. This will override the trial period defined for the associated billing plan. The override applies only to this subscription.

recurringChargeAmount

decimal

Recurring amount to be charged.
For example: 29.99

overrideRecurringChargeAmount

decimal

Recurring amount to be charged. This will override the charge amount defined for the associated billing plan. The override applies only to this subscription.

currency

string

Currency code (ISO 4217) of the amount to be charged. See Currency codes.

initialChargeAmount

decimal

Amount of the initial charge.
For example: 99.00

overrideInitialChargeAmount

decimal

Initial amount to be charged. This will override the charge amount defined for the associated billing plan. The override applies only to this subscription.
If you override the price, any later changes to the plan's price will not be applied to this subscription.

autoRenew

boolean

Determines whether the subscription will automatically continue, or will expire at the end of the current period.

nextChargeDate

string

Appears only if subscription is ACTIVE
Next charge date.
Format: yyyy-mm-dd

payerInfo

container

See payerInfo.

paymentSource

container

charge

container

Create Subscription response only

See charge.

fraudResultInfo

container

Create Subscription response only

See fraudResultInfo.