{"_id":"5beec5a5f95d82011c6f36a9","category":{"_id":"5beec5a5f95d82011c6f367e","version":"5beec5a5f95d82011c6f3714","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-15T16:20:51.519Z","from_sync":false,"order":12,"slug":"resources","title":"Resources"},"user":"560d5913af97231900938124","parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","version":{"_id":"5beec5a5f95d82011c6f3714","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"5bcf37dfadc5b905136a39f4","createdAt":"2018-04-24T15:24:22.608Z","releaseDate":"2018-04-24T15:24:22.608Z","categories":["5beec5a5f95d82011c6f3672","5beec5a5f95d82011c6f3673","5beec5a5f95d82011c6f3674","5beec5a5f95d82011c6f3675","5beec5a5f95d82011c6f3676","5beec5a5f95d82011c6f3677","5beec5a5f95d82011c6f3678","5beec5a5f95d82011c6f3679","5beec5a5f95d82011c6f367a","5beec5a5f95d82011c6f367b","5beec5a5f95d82011c6f367c","5beec5a5f95d82011c6f367d","5beec5a5f95d82011c6f367e","5beec5a5f95d82011c6f367f","5beec5a5f95d82011c6f3680","5beec5a5f95d82011c6f3681"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.28 Release","version_clean":"8976.0.0-XML","version":"8976-XML"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-27T12:19:10.487Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":35,"body":"###Request\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Property Name\",\n \"h-1\": \"Type\",\n \"h-2\": \"Required\",\n \"0-0\": \"`plan-id`\",\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\": \"`payer-info`\",\n \"2-1\": \"container\",\n \"2-3\": \"Container of [payer-info](doc:payer-info) properties.\",\n \"h-4\": \"Description\",\n \"0-2\": \"**Required** for Create Subscription\",\n \"2-2\": \"Optional\\n*Do not include if sending* `vaulted-shopper-id`\",\n \"3-0\": \"`payment-source`\",\n \"3-1\": \"container\",\n \"3-3\": \"Container of [payment-source](doc:payment-source) properties.\",\n \"3-2\": \"**Required** for Create Subscription if sending `payer-info`\\n\\n**Optional** if sending `vaulted-shopper-id`\",\n \"10-0\": \"`transaction-fraud-info`\",\n \"10-1\": \"container\",\n \"10-2\": \"**Required** for Create Subscription\",\n \"10-3\": \"Container of [transaction-fraud-info](doc:transaction-fraud-info) properties.\",\n \"4-0\": \"`quantity`\",\n \"5-0\": \"`soft-descriptor`\",\n \"7-0\": \"`override-trial-period-days`\",\n \"8-0\": \"`override-recurring-charge-amount`\",\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. Maximum 20 characters.\",\n \"5-1\": \"*string*\",\n \"5-2\": \"Optional\",\n \"7-1\": \"*integer*\",\n \"7-2\": \"Optional\",\n \"7-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 \"8-1\": \"*decimal*\",\n \"8-2\": \"Optional\",\n \"8-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\": \"`vaulted-shopper-id`\",\n \"1-1\": \"*integer*\",\n \"1-2\": \"Optional\\n*Do not include if sending* `payer-info`\",\n \"1-3\": \"ID of an existing vaulted shopper.\",\n \"11-0\": \"`auto-renew`\",\n \"13-0\": \"`next-charge-date`\",\n \"14-0\": \"`status`\",\n \"14-3\": \"Permitted values:\\n * **ACTIVE**\\n * **CANCELED**\",\n \"11-1\": \"*boolean*\",\n \"13-1\": \"*string*\",\n \"14-1\": \"*string*\",\n \"14-2\": \"Optional\\n*Create/Update Subscription requests only*\",\n \"13-2\": \"Optional\\n*Create/Update Subscription requests only*\",\n \"11-2\": \"Optional\\n*Optional Update Subscription requests only*\",\n \"11-3\": \"Determines whether the subscription will automatically continue, or will expire at the end of the current period.\",\n \"13-3\": \"Next charge date.\\nIf you change this, the date of future recurring charges will be adjusted accordingly. \\n\\nFormat: yyyy-mm-dd\",\n \"9-0\": \"`override-initial-charge-amount`\",\n \"9-1\": \"*decimal*\",\n \"9-2\": \"Optional\",\n \"9-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, any later changes to the plan's price will not be applied to this subscription.\",\n \"12-0\": \"`authorized-by-shopper`\",\n \"12-1\": \"*boolean*\",\n \"12-2\": \"**Required** for SEPA Direct Debit\\n\\n*Create Subscription requests only*\",\n \"12-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](/docs/sepa-direct-debit#section-step-1-collect-a-mandate-acceptance-from-your-shopper).\",\n \"6-0\": \"`descriptor-phone-number`\",\n \"6-1\": \"*string*\",\n \"6-2\": \"Optional\",\n \"6-3\": \"Merchant's support phone number that will appear on the shopper's bank statement. Maximum 20 characters.\",\n \"15-0\": \"`level-3-data`\",\n \"15-1\": \"container\",\n \"15-2\": \"Optional\",\n \"15-3\": \"Container of [level-3-data](doc:level-3-data) properties.\",\n \"16-0\": \"`three-d-secure`\",\n \"16-1\": \"container\",\n \"16-2\": \"Optional\",\n \"16-3\": \"Container of [three-d-secure](doc:three-d-secure) properties.\"\n },\n \"cols\": 4,\n \"rows\": 17\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\": \"`plan-id`\",\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 \"18-0\": \"`payment-source`\",\n \"18-1\": \"container\",\n \"18-3\": \"Container of [payment-source](doc:payment-source) properties.\",\n \"18-2\": \"Container of [payment-source](doc:payment-source) properties.\",\n \"20-0\": \"`fraud-result-info`\",\n \"20-1\": \"container\",\n \"20-2\": \"*Create Subscription response only*\\n\\nContainer of [fraud-result-info](doc:fraud-result-info) properties.\",\n \"20-3\": \"Container of [transaction-fraud-info](doc:transaction-fraud-info) properties.\",\n \"19-0\": \"`charge`\",\n \"19-2\": \"*Create Subscription response only*\\n\\nContainer of [charge](doc:charge) properties.\",\n \"19-3\": \"ID of an existing vaulted shopper.\",\n \"19-1\": \"container\",\n \"0-0\": \"`subscription-id`\",\n \"0-3\": \"\",\n \"0-1\": \"*integer*\",\n \"0-2\": \"BlueSnap identifier for the subscription.\",\n \"2-0\": \"`vaulted-shopper-id`\",\n \"2-1\": \"*integer*\",\n \"2-2\": \"ID of an existing vaulted shopper.\",\n \"17-0\": \"`payer-info`\",\n \"17-1\": \"container\",\n \"17-2\": \"Container of [payer-info](doc:payer-info) properties.\",\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\": \"`soft-descriptor`\",\n \"5-1\": \"*string*\",\n \"5-2\": \"Description of the transaction, which appears on the shopper's credit card statement.\",\n \"7-0\": \"`charge-frequency`\",\n \"7-1\": \"*string*\",\n \"7-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 \"8-0\": \"`trial-period-days`\",\n \"8-1\": \"*integer*\",\n \"8-2\": \"Number of days in the trial period.\\nFor example: **14**\",\n \"10-0\": \"`recurring-charge-amount`\",\n \"10-1\": \"*decimal*\",\n \"10-2\": \"Recurring amount to be charged.\\nFor example: **29.99**\",\n \"11-0\": \"`override-recurring-charge-amount`\",\n \"11-1\": \"*decimal*\",\n \"11-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 \"12-0\": \"`currency`\",\n \"12-1\": \"*string*\",\n \"12-2\": \"Currency code (ISO 4217) of the amount to be charged. See [Currency codes](/docs/currency-codes).\",\n \"13-0\": \"`initial-charge-amount`\",\n \"13-1\": \"*decimal*\",\n \"13-2\": \"Amount of the initial charge.\\nFor example: **99.00**\",\n \"9-0\": \"`override-trial-period-days`\",\n \"9-1\": \"*integer*\",\n \"9-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 \"14-0\": \"`override-initial-charge-amount`\",\n \"14-1\": \"*decimal*\",\n \"14-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 \"15-0\": \"`auto-renew`\",\n \"15-1\": \"*boolean*\",\n \"15-2\": \"Determines whether the subscription will automatically continue, or will expire at the end of the current period.\",\n \"16-0\": \"`next-charge-date`\",\n \"16-1\": \"*string*\",\n \"16-2\": \"*Appears only if subscription is ACTIVE*\\nNext charge date.\\nFormat: yyyy-mm-dd\",\n \"6-0\": \"`descriptor-phone-number`\",\n \"6-1\": \"*string*\",\n \"6-2\": \"Description of the transaction, which appears on the shopper's credit card statement.\",\n \"21-0\": \"`level-3-data`\",\n \"21-1\": \"container\",\n \"21-2\": \"Container of [level-3-data](doc:level-3-data) properties.\",\n \"22-0\": \"`three-d-secure`\",\n \"22-1\": \"container\",\n \"22-2\": \"Container of [three-d-secure](doc:three-d-secure) properties.\",\n \"23-2\": \"Identifies if the transaction is a regularly scheduled event.\\n\\nPossible values:\\ntrue\\nfalse (default)\\n\\nSee [Card on File Guide](doc:card-on-file-guide).\",\n \"23-0\": \"`scheduled`\",\n \"23-1\": \"*boolean*\"\n },\n \"cols\": 3,\n \"rows\": 24\n}\n[/block]","excerpt":"Contains information about a specific subscription","slug":"recurring-subscription","type":"basic","title":"recurring-subscription"}
recurring-subscription
plan-id
integer
Required for Create Subscription
ID of the billing plan associated with this subscription.
vaulted-shopper-id
integer
Optional
Do not include if sending payer-info
ID of an existing vaulted shopper.
payer-info
container
Optional
Do not include if sending vaulted-shopper-id
Container of payer-info properties.
payment-source
container
Required for Create Subscription if sending payer-info
Optional if sending vaulted-shopper-id
Container of payment-source properties.
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).
soft-descriptor
string
Optional
Description of the transaction, which appears on the shopper's credit card statement. Maximum 20 characters.
descriptor-phone-number
string
Optional
Merchant's support phone number that will appear on the shopper's bank statement. Maximum 20 characters.
override-trial-period-days
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.
override-recurring-charge-amount
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.
override-initial-charge-amount
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, any later changes to the plan's price will not be applied to this subscription.
transaction-fraud-info
container
Required for Create Subscription
Container of transaction-fraud-info properties.
auto-renew
boolean
Optional
Optional Update Subscription requests only
Determines whether the subscription will automatically continue, or will expire at the end of the current period.
authorized-by-shopper
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.
next-charge-date
string
Optional
Create/Update Subscription requests only
Next charge date.
If you change this, the date of future recurring charges will be adjusted accordingly.
Format: yyyy-mm-dd
status
string
Optional
Create/Update Subscription requests only
Permitted values:
- ACTIVE
- CANCELED
subscription-id
integer
BlueSnap identifier for the subscription.
vaulted-shopper-id
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.
soft-descriptor
string
Description of the transaction, which appears on the shopper's credit card statement.
descriptor-phone-number
string
Description of the transaction, which appears on the shopper's credit card statement.
charge-frequency
string
Possible values:
- ONCE
- DAILY
- WEEKLY
- EVERY 2 WEEKS
- MONTHLY
- EVERY 2 MONTHS
- QUARTERLY
- EVERY 6 MONTHS
- ANNUALLY
- EVERY 2 YEARS
- EVERY 3 YEARS
trial-period-days
integer
Number of days in the trial period.
For example: 14
override-trial-period-days
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.
recurring-charge-amount
decimal
Recurring amount to be charged.
For example: 29.99
override-recurring-charge-amount
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.
initial-charge-amount
decimal
Amount of the initial charge.
For example: 99.00
override-initial-charge-amount
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.
auto-renew
boolean
Determines whether the subscription will automatically continue, or will expire at the end of the current period.
next-charge-date
string
Appears only if subscription is ACTIVE
Next charge date.
Format: yyyy-mm-dd
fraud-result-info
container
Create Subscription response only
Container of fraud-result-info properties.
scheduled
boolean
Identifies if the transaction is a regularly scheduled event.
Possible values:
true
false (default)
See Card on File Guide.