Zip and Country Codes
Development
Reference Materials
Introduction
Billing API is a RESTful API that allows setting up customers, collecting payments and maintaining balances for these customers, as well as creating recurring billing subscriptions.
Billing API documentation includes the following sections:
Objects - lists all recurring billing objects. The purpose of this section is to describe all object fields, their format and usage, provide the links to the corresponding database tables.
Type Enumerations – lists possible values that can be used in the respective fields within Billing API requests and responses. The purpose of this section is to provide an explanation of all enumerations used for API calls.
Actions - lists all actions that can be performed with key recurring billing objects. The purpose of this section is to describe the methods and format of API requests and the format of responses.
Integration Notes – lists integration notes associated with the Billing API objects and actions. The purpose of this section is to provide explicit information about the peculiarities of specific actions and object fields.
Code samples - provides examples of recurring billing use cases (creating billing plans, subscriptions, freeing or canceling subscriptions, reversing transactions, etc) and their implementation in JSON, XML formats. The purpose of this section is to provide examples that can be used for testing of the integration with the gateway.
To learn how to work with the Billing API, we recommend reviewing the integration notes first. Key recurring billing module terms are available here.
For more detailed information about the recurring billing configurations and management, check the Recurring Billing Guide.
Billing API Index (Actions)
URL |
Action |
Method |
[version]/[customers] view |
[version]/[customers] |
~create |
PUT |
[version]/[customers] |
~find |
GET |
[version]/customers/[customer-id] view |
[version]/customers/[customer-id] |
~load |
GET |
[version]/customers/[customer-id] |
~modify |
POST |
[version]/customers/[customer-id]/[payment-options] view |
[version]/customers/[customer-id]/[payment-options] |
~create |
PUT |
[version]/customers/[customer-id]/[payment-options] |
~find |
GET |
[version]/customers/[customer-id]/[payment-options]/[payment-option-id] view |
[version]/customers/[customer-id]/[payment-options]/[payment-option-id] |
~load |
GET |
[version]/customers/[customer-id]/[payment-options]/[payment-option-id] |
~modify |
POST |
[version]/customers/[customer-id]/[payment-options]/[payment-option-id] |
~process |
POST |
[version]/customers/[customer-id]/[subscriptions] view |
[version]/customers/[customer-id]/[subscriptions] |
~create |
PUT |
[version]/customers/[customer-id]/[subscriptions] |
~find |
GET |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] view |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] |
~cancel |
GET |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] |
~freeze |
GET |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] |
~load |
GET |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] |
~modify |
POST |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] |
~pause |
GET |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] |
~uncancel |
GET |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] |
~unfreeze |
GET |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id] |
~unpause |
GET |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id]/[adjustments] view |
[version]/customers/[customer-id]/[subscriptions]/[subscription-id]/[adjustments] |
~find |
GET |
[version]/customers/[customer-id]/[transactions] view |
[version]/customers/[customer-id]/[transactions] |
~create |
PUT |
[version]/customers/[customer-id]/[transactions] |
~find |
GET |
[version]/customers/[customer-id]/[transactions] |
~process |
POST |
[version]/customers/[customer-id]/transactions/[transaction-id] view |
[version]/customers/[customer-id]/transactions/[transaction-id] |
~load |
GET |
[version]/customers/[customer-id]/transactions/[transaction-id] |
~reverse |
GET |
[version]/customers/[customer-id]/transactions/[transaction-id]/[allocations] view |
[version]/customers/[customer-id]/transactions/[transaction-id]/[allocations] |
~find |
GET |
[version]/plans view |
[version]/plans |
~create |
PUT |
[version]/plans |
~find |
GET |
[version]/plans/[plan-id] view |
[version]/plans/[plan-id] |
~load |
GET |
[version]/plans/[plan-id] |
~modify |
POST |
Base Resource URL:
https://[server-name]/api/v01/customers/[customer-id]/[subscriptions]/[subscription-id]
Description:
Allows to manage the specified subscription.
Supported sub-resources:
Resource URL |
Description |
https://[server-name]/api/v01/customers/[customer-id]/[subscriptions]/[subscription-id]/[adjustments]
|
Provides access to the adjustments associated with the specified subscription. |
Supported Actions:
~cancel (request)
Consumes: xurl
Produces: json,xml,xurl
Cancels the subscription right away or on the specified date.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
customer-id |
Long |
|
|
|
|
Unique Customer ID generated by the system. For more information see term: Customer. |
2 |
subscription-id |
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
effectiveDate |
Date |
|
|
|
|
Date when the subscription is going to be canceled. |
2 |
note |
String |
|
|
|
|
Any notes related to the cancelation of the subscription. |
~cancel (response)
Consumes: xurl
Produces: json,xml,xurl
Cancels the subscription right away or on the specified date.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
pendingAdjustmentType
|
|
|
|
|
|
Type of the pending payment plan adjustment. |
2 |
firstInvoicingDate
|
Date |
|
|
|
|
Date when the invoicing will occur for the first time. |
3 |
nextInvoicingDate
|
Date |
|
|
|
|
|
4 |
taxAmount
|
Integer |
|
|
|
|
Tax amount (in cents) associated with the transaction processing. |
5 |
planName
|
String(255) |
|
|
|
|
Name of the plan. |
6 |
billingCycleType
|
|
|
|
|
|
Type of billing cycle used. |
7 |
code
|
String(60) |
|
|
|
|
Unique Subscription ID supplied by external/user's system. Note: Optional secondary identifier. Typically this field is a reference to an ID in your own system to cross-reference it within our system. If not provided, the system will use the object 'id' generated at the time of object creation. |
8 |
createDate
|
Datetime |
|
|
|
|
Date when the Subscription was created. Note: Date format: yyyy-MM-dd. |
9 |
firstBillingDate
|
Date |
|
|
|
|
Date when the first billing occured. |
10 |
id
|
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
11 |
lastBillingDate
|
Date |
|
|
|
|
Date when the last billing occured. |
12 |
lastUpdateDate
|
Datetime |
|
|
|
|
Date when the last update was made to the Subscription. |
13 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Date when the pending adjustment for the Subscription become effective. |
14 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Number of times that the pending adjustment for the Subscription will generate an invoice. |
15 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Any additional details associated with the pending adjustment for the Subscription. |
16 |
planId
|
Reference |
|
|
|
|
Reference to a Plan that a Subscription is associated with. Note: Reference to the Plan that the Customer is subscribing. |
17 |
status
|
|
|
|
|
|
Status of the record in the system. |
18 |
id
|
Long |
|
|
|
|
|
19 |
accountId
|
Integer |
|
|
|
|
|
20 |
amount
|
Integer |
|
|
|
|
|
21 |
createDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
22 |
customerId
|
Long |
|
|
|
|
|
23 |
firstBillingDate
|
Date |
|
|
|
|
|
24 |
lastBillingDate
|
Date |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
25 |
lastUpdateDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
26 |
length
|
Integer |
|
|
|
|
Length parameter is required for Fixed Subscriptions and cannot exceed 3 years.
For subscriptions longer than 3 years, use Perpetual Subscription type, which does not require length parameter.
Length maximum value correlated with the selected billingCycleType:
- annually - 3,
- semi-annually - 6,
- quarterly - 12,
- monthly - 36,
- weekly - 153.
|
27 |
nextBillingDate
|
Date |
|
|
|
|
The date must be submitted in yyyy-MM-dd format. |
28 |
note
|
String(255) |
|
|
|
|
|
29 |
paymentOptionId
|
Reference |
|
|
|
|
|
30 |
planId
|
Reference |
|
|
|
|
Identifier of the associated payment plan. |
31 |
status
|
|
|
|
|
|
|
32 |
type
|
|
|
|
|
|
|
33 |
billingCycleType
|
|
|
|
|
|
Type of the applied billing cycle. |
34 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Effective date of the pending payment plan adjustment. The date must be submitted in yyyy-MM-dd format. |
35 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Note associated with the pending payment plan adjustment. |
36 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Length of the pending payment plan adjustment. |
37 |
code
|
String(60) |
|
|
|
|
|
38 |
planName
|
String |
|
|
|
|
Name of the associated payment plan. |
39 |
nextInvoicingDate
|
Date |
|
|
|
|
|
40 |
firstInvoicingDate
|
Date |
|
|
|
|
|
41 |
taxAmount
|
Integer |
|
|
|
|
|
42 |
planName
|
String |
|
|
|
|
Name of the plan. |
~freeze (request)
Consumes: xurl
Produces: json,xml,xurl
Freezes the subscription for the specified period.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
customer-id |
Long |
|
|
|
|
Unique Customer ID generated by the system. For more information see term: Customer. |
2 |
subscription-id |
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
effectiveDate |
Date |
|
|
|
|
Date when the subscription is going to be frozen. The date must be in future and correspond to the subscription billing date. |
2 |
length |
Integer |
|
|
|
|
Number of the payments for which the subscription is going to be frozen. |
3 |
note |
String |
|
|
|
|
Any notes related to the freeze of the subscription. |
~freeze (response)
Consumes: xurl
Produces: json,xml,xurl
Freezes the subscription for the specified period.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
pendingAdjustmentType
|
|
|
|
|
|
Type of the pending payment plan adjustment. |
2 |
firstInvoicingDate
|
Date |
|
|
|
|
Date when the invoicing will occur for the first time. |
3 |
nextInvoicingDate
|
Date |
|
|
|
|
|
4 |
taxAmount
|
Integer |
|
|
|
|
Tax amount (in cents) associated with the transaction processing. |
5 |
planName
|
String(255) |
|
|
|
|
Name of the plan. |
6 |
billingCycleType
|
|
|
|
|
|
Type of billing cycle used. |
7 |
code
|
String(60) |
|
|
|
|
Unique Subscription ID supplied by external/user's system. Note: Optional secondary identifier. Typically this field is a reference to an ID in your own system to cross-reference it within our system. If not provided, the system will use the object 'id' generated at the time of object creation. |
8 |
createDate
|
Datetime |
|
|
|
|
Date when the Subscription was created. Note: Date format: yyyy-MM-dd. |
9 |
firstBillingDate
|
Date |
|
|
|
|
Date when the first billing occured. |
10 |
id
|
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
11 |
lastBillingDate
|
Date |
|
|
|
|
Date when the last billing occured. |
12 |
lastUpdateDate
|
Datetime |
|
|
|
|
Date when the last update was made to the Subscription. |
13 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Date when the pending adjustment for the Subscription become effective. |
14 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Number of times that the pending adjustment for the Subscription will generate an invoice. |
15 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Any additional details associated with the pending adjustment for the Subscription. |
16 |
planId
|
Reference |
|
|
|
|
Reference to a Plan that a Subscription is associated with. Note: Reference to the Plan that the Customer is subscribing. |
17 |
status
|
|
|
|
|
|
Status of the record in the system. |
18 |
id
|
Long |
|
|
|
|
|
19 |
accountId
|
Integer |
|
|
|
|
|
20 |
amount
|
Integer |
|
|
|
|
|
21 |
createDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
22 |
customerId
|
Long |
|
|
|
|
|
23 |
firstBillingDate
|
Date |
|
|
|
|
|
24 |
lastBillingDate
|
Date |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
25 |
lastUpdateDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
26 |
length
|
Integer |
|
|
|
|
Length parameter is required for Fixed Subscriptions and cannot exceed 3 years.
For subscriptions longer than 3 years, use Perpetual Subscription type, which does not require length parameter.
Length maximum value correlated with the selected billingCycleType:
- annually - 3,
- semi-annually - 6,
- quarterly - 12,
- monthly - 36,
- weekly - 153.
|
27 |
nextBillingDate
|
Date |
|
|
|
|
The date must be submitted in yyyy-MM-dd format. |
28 |
note
|
String(255) |
|
|
|
|
|
29 |
paymentOptionId
|
Reference |
|
|
|
|
|
30 |
planId
|
Reference |
|
|
|
|
Identifier of the associated payment plan. |
31 |
status
|
|
|
|
|
|
|
32 |
type
|
|
|
|
|
|
|
33 |
billingCycleType
|
|
|
|
|
|
Type of the applied billing cycle. |
34 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Effective date of the pending payment plan adjustment. The date must be submitted in yyyy-MM-dd format. |
35 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Note associated with the pending payment plan adjustment. |
36 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Length of the pending payment plan adjustment. |
37 |
code
|
String(60) |
|
|
|
|
|
38 |
planName
|
String |
|
|
|
|
Name of the associated payment plan. |
39 |
nextInvoicingDate
|
Date |
|
|
|
|
|
40 |
firstInvoicingDate
|
Date |
|
|
|
|
|
41 |
taxAmount
|
Integer |
|
|
|
|
|
42 |
planName
|
String |
|
|
|
|
Name of the plan. |
~load (request)
Method: GET
Implicit: Yes
Consumes: xurl
Produces: json,xml
Returns settings of the subscription specified in the request.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
customer-id |
Long |
|
|
|
|
Unique Customer ID generated by the system. For more information see term: Customer. |
2 |
subscription-id |
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
~load (response)
Method: GET
Implicit: Yes
Consumes: xurl
Produces: json,xml
Returns settings of the subscription specified in the request.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
pendingAdjustmentType
|
|
|
|
|
|
Type of the pending payment plan adjustment. |
2 |
firstInvoicingDate
|
Date |
|
|
|
|
Date when the invoicing will occur for the first time. |
3 |
nextInvoicingDate
|
Date |
|
|
|
|
|
4 |
taxAmount
|
Integer |
|
|
|
|
Tax amount (in cents) associated with the transaction processing. |
5 |
planName
|
String(255) |
|
|
|
|
Name of the plan. |
6 |
billingCycleType
|
|
|
|
|
|
Type of billing cycle used. |
7 |
code
|
String(60) |
|
|
|
|
Unique Subscription ID supplied by external/user's system. Note: Optional secondary identifier. Typically this field is a reference to an ID in your own system to cross-reference it within our system. If not provided, the system will use the object 'id' generated at the time of object creation. |
8 |
createDate
|
Datetime |
|
|
|
|
Date when the Subscription was created. Note: Date format: yyyy-MM-dd. |
9 |
firstBillingDate
|
Date |
|
|
|
|
Date when the first billing occured. |
10 |
id
|
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
11 |
lastBillingDate
|
Date |
|
|
|
|
Date when the last billing occured. |
12 |
lastUpdateDate
|
Datetime |
|
|
|
|
Date when the last update was made to the Subscription. |
13 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Date when the pending adjustment for the Subscription become effective. |
14 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Number of times that the pending adjustment for the Subscription will generate an invoice. |
15 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Any additional details associated with the pending adjustment for the Subscription. |
16 |
planId
|
Reference |
|
|
|
|
Reference to a Plan that a Subscription is associated with. Note: Reference to the Plan that the Customer is subscribing. |
17 |
status
|
|
|
|
|
|
Status of the record in the system. |
18 |
id
|
Long |
|
|
|
|
|
19 |
accountId
|
Integer |
|
|
|
|
|
20 |
amount
|
Integer |
|
|
|
|
|
21 |
createDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
22 |
customerId
|
Long |
|
|
|
|
|
23 |
firstBillingDate
|
Date |
|
|
|
|
|
24 |
lastBillingDate
|
Date |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
25 |
lastUpdateDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
26 |
length
|
Integer |
|
|
|
|
Length parameter is required for Fixed Subscriptions and cannot exceed 3 years.
For subscriptions longer than 3 years, use Perpetual Subscription type, which does not require length parameter.
Length maximum value correlated with the selected billingCycleType:
- annually - 3,
- semi-annually - 6,
- quarterly - 12,
- monthly - 36,
- weekly - 153.
|
27 |
nextBillingDate
|
Date |
|
|
|
|
The date must be submitted in yyyy-MM-dd format. |
28 |
note
|
String(255) |
|
|
|
|
|
29 |
paymentOptionId
|
Reference |
|
|
|
|
|
30 |
planId
|
Reference |
|
|
|
|
Identifier of the associated payment plan. |
31 |
status
|
|
|
|
|
|
|
32 |
type
|
|
|
|
|
|
|
33 |
billingCycleType
|
|
|
|
|
|
Type of the applied billing cycle. |
34 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Effective date of the pending payment plan adjustment. The date must be submitted in yyyy-MM-dd format. |
35 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Note associated with the pending payment plan adjustment. |
36 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Length of the pending payment plan adjustment. |
37 |
code
|
String(60) |
|
|
|
|
|
38 |
planName
|
String |
|
|
|
|
Name of the associated payment plan. |
39 |
nextInvoicingDate
|
Date |
|
|
|
|
|
40 |
firstInvoicingDate
|
Date |
|
|
|
|
|
41 |
taxAmount
|
Integer |
|
|
|
|
|
42 |
planName
|
String |
|
|
|
|
Name of the plan. |
~modify (request)
Method: POST
Implicit: Yes
Consumes: json,xml
Produces: json,xml
Updates the subscription with the specified values of the ''note'' and ''paymentOptionId'' fields.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
customer-id |
Long |
|
|
|
|
Unique Customer ID generated by the system. For more information see term: Customer. |
2 |
subscription-id |
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
~modify (response)
Method: POST
Implicit: Yes
Consumes: json,xml
Produces: json,xml
Updates the subscription with the specified values of the ''note'' and ''paymentOptionId'' fields.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
pendingAdjustmentType
|
|
|
|
|
|
Type of the pending payment plan adjustment. |
2 |
firstInvoicingDate
|
Date |
|
|
|
|
Date when the invoicing will occur for the first time, used for filtering records. |
3 |
nextInvoicingDate
|
Date |
|
|
|
|
|
4 |
taxAmount
|
Integer |
|
|
|
|
Tax amount used for filtering records. |
5 |
planName
|
String(255) |
|
|
|
|
Name of the plan. |
6 |
billingCycleType
|
|
|
|
|
|
Type of a billing cycle used for filtering records. |
7 |
code
|
String(60) |
|
|
|
|
Unique Subscription ID supplied by external/user's system used for filtering records. |
8 |
createDate
|
Datetime |
|
|
|
|
Date when the Subscription was created. Note: Date format: yyyy-MM-dd. |
9 |
firstBillingDate
|
Date |
|
|
|
|
Date used for filtering Subscription records. |
10 |
id
|
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
11 |
lastBillingDate
|
Date |
|
|
|
|
Date when the last billing occured. |
12 |
lastUpdateDate
|
Datetime |
|
|
|
|
Date when the last update was made to the Subscription. |
13 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Date used for filtering Subscription records. |
14 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Number of times that the pending adjustment for the Subscription will generate an invoice. |
15 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Any additional details associated with the pending adjustment for the Subscription used for filtering Subscription records. |
16 |
planId
|
Reference |
|
|
|
|
Reference to a Plan used for filtering Subscription records. |
17 |
status
|
|
|
|
|
|
Status of the record in the system. |
18 |
id
|
Long |
|
|
|
|
|
19 |
accountId
|
Integer |
|
|
|
|
|
20 |
amount
|
Integer |
|
|
|
|
|
21 |
createDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
22 |
customerId
|
Long |
|
|
|
|
|
23 |
firstBillingDate
|
Date |
|
|
|
|
|
24 |
lastBillingDate
|
Date |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
25 |
lastUpdateDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
26 |
length
|
Integer |
|
|
|
|
Length parameter is required for Fixed Subscriptions and cannot exceed 3 years.
For subscriptions longer than 3 years, use Perpetual Subscription type, which does not require length parameter.
Length maximum value correlated with the selected billingCycleType:
- annually - 3,
- semi-annually - 6,
- quarterly - 12,
- monthly - 36,
- weekly - 153.
|
27 |
nextBillingDate
|
Date |
|
|
|
|
The date must be submitted in yyyy-MM-dd format. |
28 |
note
|
String(255) |
|
|
|
|
|
29 |
paymentOptionId
|
Reference |
|
|
|
|
|
30 |
planId
|
Reference |
|
|
|
|
Identifier of the associated payment plan. |
31 |
status
|
|
|
|
|
|
|
32 |
type
|
|
|
|
|
|
|
33 |
billingCycleType
|
|
|
|
|
|
Type of the applied billing cycle. |
34 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Effective date of the pending payment plan adjustment. The date must be submitted in yyyy-MM-dd format. |
35 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Note associated with the pending payment plan adjustment. |
36 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Length of the pending payment plan adjustment. |
37 |
code
|
String(60) |
|
|
|
|
|
38 |
planName
|
String |
|
|
|
|
Name of the associated payment plan. |
39 |
nextInvoicingDate
|
Date |
|
|
|
|
|
40 |
firstInvoicingDate
|
Date |
|
|
|
|
|
41 |
taxAmount
|
Integer |
|
|
|
|
|
42 |
planName
|
String |
|
|
|
|
Name of the plan used for filtering records. |
~pause (request)
Consumes: xurl
Produces: json,xml,xurl
Pauses the subscription right away or on the specified date.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
customer-id |
Long |
|
|
|
|
Unique Customer ID generated by the system. For more information see term: Customer. |
2 |
subscription-id |
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
effectiveDate |
Date |
|
|
|
|
Date when the subscription is going to be put on pause. |
2 |
note |
String |
|
|
|
|
Any notes related to the pausing of the subscription. |
~pause (response)
Consumes: xurl
Produces: json,xml,xurl
Pauses the subscription right away or on the specified date.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
pendingAdjustmentType
|
|
|
|
|
|
Type of the pending payment plan adjustment. |
2 |
firstInvoicingDate
|
Date |
|
|
|
|
Date when the invoicing will occur for the first time. |
3 |
nextInvoicingDate
|
Date |
|
|
|
|
|
4 |
taxAmount
|
Integer |
|
|
|
|
Tax amount (in cents) associated with the transaction processing. |
5 |
planName
|
String(255) |
|
|
|
|
Name of the plan. |
6 |
billingCycleType
|
|
|
|
|
|
Type of billing cycle used. |
7 |
code
|
String(60) |
|
|
|
|
Unique Subscription ID supplied by external/user's system. Note: Optional secondary identifier. Typically this field is a reference to an ID in your own system to cross-reference it within our system. If not provided, the system will use the object 'id' generated at the time of object creation. |
8 |
createDate
|
Datetime |
|
|
|
|
Date when the Subscription was created. Note: Date format: yyyy-MM-dd. |
9 |
firstBillingDate
|
Date |
|
|
|
|
Date when the first billing occured. |
10 |
id
|
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
11 |
lastBillingDate
|
Date |
|
|
|
|
Date when the last billing occured. |
12 |
lastUpdateDate
|
Datetime |
|
|
|
|
Date when the last update was made to the Subscription. |
13 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Date when the pending adjustment for the Subscription become effective. |
14 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Number of times that the pending adjustment for the Subscription will generate an invoice. |
15 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Any additional details associated with the pending adjustment for the Subscription. |
16 |
planId
|
Reference |
|
|
|
|
Reference to a Plan that a Subscription is associated with. Note: Reference to the Plan that the Customer is subscribing. |
17 |
status
|
|
|
|
|
|
Status of the record in the system. |
18 |
id
|
Long |
|
|
|
|
|
19 |
accountId
|
Integer |
|
|
|
|
|
20 |
amount
|
Integer |
|
|
|
|
|
21 |
createDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
22 |
customerId
|
Long |
|
|
|
|
|
23 |
firstBillingDate
|
Date |
|
|
|
|
|
24 |
lastBillingDate
|
Date |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
25 |
lastUpdateDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
26 |
length
|
Integer |
|
|
|
|
Length parameter is required for Fixed Subscriptions and cannot exceed 3 years.
For subscriptions longer than 3 years, use Perpetual Subscription type, which does not require length parameter.
Length maximum value correlated with the selected billingCycleType:
- annually - 3,
- semi-annually - 6,
- quarterly - 12,
- monthly - 36,
- weekly - 153.
|
27 |
nextBillingDate
|
Date |
|
|
|
|
The date must be submitted in yyyy-MM-dd format. |
28 |
note
|
String(255) |
|
|
|
|
|
29 |
paymentOptionId
|
Reference |
|
|
|
|
|
30 |
planId
|
Reference |
|
|
|
|
Identifier of the associated payment plan. |
31 |
status
|
|
|
|
|
|
|
32 |
type
|
|
|
|
|
|
|
33 |
billingCycleType
|
|
|
|
|
|
Type of the applied billing cycle. |
34 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Effective date of the pending payment plan adjustment. The date must be submitted in yyyy-MM-dd format. |
35 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Note associated with the pending payment plan adjustment. |
36 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Length of the pending payment plan adjustment. |
37 |
code
|
String(60) |
|
|
|
|
|
38 |
planName
|
String |
|
|
|
|
Name of the associated payment plan. |
39 |
nextInvoicingDate
|
Date |
|
|
|
|
|
40 |
firstInvoicingDate
|
Date |
|
|
|
|
|
41 |
taxAmount
|
Integer |
|
|
|
|
|
42 |
planName
|
String |
|
|
|
|
Name of the plan. |
~uncancel (request)
Consumes: xurl
Produces: json,xml,xurl
Uncancels the specified subscription.
Can be applied only to the subscriptions that have not been canceled yet.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
customer-id |
Long |
|
|
|
|
Unique Customer ID generated by the system. For more information see term: Customer. |
2 |
subscription-id |
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
~uncancel (response)
Consumes: xurl
Produces: json,xml,xurl
Uncancels the specified subscription.
Can be applied only to the subscriptions that have not been canceled yet.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
pendingAdjustmentType
|
|
|
|
|
|
Type of the pending payment plan adjustment. |
2 |
firstInvoicingDate
|
Date |
|
|
|
|
Date when the invoicing will occur for the first time. |
3 |
nextInvoicingDate
|
Date |
|
|
|
|
|
4 |
taxAmount
|
Integer |
|
|
|
|
Tax amount (in cents) associated with the transaction processing. |
5 |
planName
|
String(255) |
|
|
|
|
Name of the plan. |
6 |
billingCycleType
|
|
|
|
|
|
Type of billing cycle used. |
7 |
code
|
String(60) |
|
|
|
|
Unique Subscription ID supplied by external/user's system. Note: Optional secondary identifier. Typically this field is a reference to an ID in your own system to cross-reference it within our system. If not provided, the system will use the object 'id' generated at the time of object creation. |
8 |
createDate
|
Datetime |
|
|
|
|
Date when the Subscription was created. Note: Date format: yyyy-MM-dd. |
9 |
firstBillingDate
|
Date |
|
|
|
|
Date when the first billing occured. |
10 |
id
|
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
11 |
lastBillingDate
|
Date |
|
|
|
|
Date when the last billing occured. |
12 |
lastUpdateDate
|
Datetime |
|
|
|
|
Date when the last update was made to the Subscription. |
13 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Date when the pending adjustment for the Subscription become effective. |
14 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Number of times that the pending adjustment for the Subscription will generate an invoice. |
15 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Any additional details associated with the pending adjustment for the Subscription. |
16 |
planId
|
Reference |
|
|
|
|
Reference to a Plan that a Subscription is associated with. Note: Reference to the Plan that the Customer is subscribing. |
17 |
status
|
|
|
|
|
|
Status of the record in the system. |
18 |
id
|
Long |
|
|
|
|
|
19 |
accountId
|
Integer |
|
|
|
|
|
20 |
amount
|
Integer |
|
|
|
|
|
21 |
createDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
22 |
customerId
|
Long |
|
|
|
|
|
23 |
firstBillingDate
|
Date |
|
|
|
|
|
24 |
lastBillingDate
|
Date |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
25 |
lastUpdateDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
26 |
length
|
Integer |
|
|
|
|
Length parameter is required for Fixed Subscriptions and cannot exceed 3 years.
For subscriptions longer than 3 years, use Perpetual Subscription type, which does not require length parameter.
Length maximum value correlated with the selected billingCycleType:
- annually - 3,
- semi-annually - 6,
- quarterly - 12,
- monthly - 36,
- weekly - 153.
|
27 |
nextBillingDate
|
Date |
|
|
|
|
The date must be submitted in yyyy-MM-dd format. |
28 |
note
|
String(255) |
|
|
|
|
|
29 |
paymentOptionId
|
Reference |
|
|
|
|
|
30 |
planId
|
Reference |
|
|
|
|
Identifier of the associated payment plan. |
31 |
status
|
|
|
|
|
|
|
32 |
type
|
|
|
|
|
|
|
33 |
billingCycleType
|
|
|
|
|
|
Type of the applied billing cycle. |
34 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Effective date of the pending payment plan adjustment. The date must be submitted in yyyy-MM-dd format. |
35 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Note associated with the pending payment plan adjustment. |
36 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Length of the pending payment plan adjustment. |
37 |
code
|
String(60) |
|
|
|
|
|
38 |
planName
|
String |
|
|
|
|
Name of the associated payment plan. |
39 |
nextInvoicingDate
|
Date |
|
|
|
|
|
40 |
firstInvoicingDate
|
Date |
|
|
|
|
|
41 |
taxAmount
|
Integer |
|
|
|
|
|
42 |
planName
|
String |
|
|
|
|
Name of the plan. |
~unfreeze (request)
Consumes: xurl
Produces: json,xml,xurl
Unfreezes the specified subscription.
Can be applied only to the subscriptions that have been previously frozen.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
customer-id |
Long |
|
|
|
|
Unique Customer ID generated by the system. For more information see term: Customer. |
2 |
subscription-id |
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
~unfreeze (response)
Consumes: xurl
Produces: json,xml,xurl
Unfreezes the specified subscription.
Can be applied only to the subscriptions that have been previously frozen.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
pendingAdjustmentType
|
|
|
|
|
|
Type of the pending payment plan adjustment. |
2 |
firstInvoicingDate
|
Date |
|
|
|
|
Date when the invoicing will occur for the first time. |
3 |
nextInvoicingDate
|
Date |
|
|
|
|
|
4 |
taxAmount
|
Integer |
|
|
|
|
Tax amount (in cents) associated with the transaction processing. |
5 |
planName
|
String(255) |
|
|
|
|
Name of the plan. |
6 |
billingCycleType
|
|
|
|
|
|
Type of billing cycle used. |
7 |
code
|
String(60) |
|
|
|
|
Unique Subscription ID supplied by external/user's system. Note: Optional secondary identifier. Typically this field is a reference to an ID in your own system to cross-reference it within our system. If not provided, the system will use the object 'id' generated at the time of object creation. |
8 |
createDate
|
Datetime |
|
|
|
|
Date when the Subscription was created. Note: Date format: yyyy-MM-dd. |
9 |
firstBillingDate
|
Date |
|
|
|
|
Date when the first billing occured. |
10 |
id
|
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
11 |
lastBillingDate
|
Date |
|
|
|
|
Date when the last billing occured. |
12 |
lastUpdateDate
|
Datetime |
|
|
|
|
Date when the last update was made to the Subscription. |
13 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Date when the pending adjustment for the Subscription become effective. |
14 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Number of times that the pending adjustment for the Subscription will generate an invoice. |
15 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Any additional details associated with the pending adjustment for the Subscription. |
16 |
planId
|
Reference |
|
|
|
|
Reference to a Plan that a Subscription is associated with. Note: Reference to the Plan that the Customer is subscribing. |
17 |
status
|
|
|
|
|
|
Status of the record in the system. |
18 |
id
|
Long |
|
|
|
|
|
19 |
accountId
|
Integer |
|
|
|
|
|
20 |
amount
|
Integer |
|
|
|
|
|
21 |
createDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
22 |
customerId
|
Long |
|
|
|
|
|
23 |
firstBillingDate
|
Date |
|
|
|
|
|
24 |
lastBillingDate
|
Date |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
25 |
lastUpdateDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
26 |
length
|
Integer |
|
|
|
|
Length parameter is required for Fixed Subscriptions and cannot exceed 3 years.
For subscriptions longer than 3 years, use Perpetual Subscription type, which does not require length parameter.
Length maximum value correlated with the selected billingCycleType:
- annually - 3,
- semi-annually - 6,
- quarterly - 12,
- monthly - 36,
- weekly - 153.
|
27 |
nextBillingDate
|
Date |
|
|
|
|
The date must be submitted in yyyy-MM-dd format. |
28 |
note
|
String(255) |
|
|
|
|
|
29 |
paymentOptionId
|
Reference |
|
|
|
|
|
30 |
planId
|
Reference |
|
|
|
|
Identifier of the associated payment plan. |
31 |
status
|
|
|
|
|
|
|
32 |
type
|
|
|
|
|
|
|
33 |
billingCycleType
|
|
|
|
|
|
Type of the applied billing cycle. |
34 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Effective date of the pending payment plan adjustment. The date must be submitted in yyyy-MM-dd format. |
35 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Note associated with the pending payment plan adjustment. |
36 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Length of the pending payment plan adjustment. |
37 |
code
|
String(60) |
|
|
|
|
|
38 |
planName
|
String |
|
|
|
|
Name of the associated payment plan. |
39 |
nextInvoicingDate
|
Date |
|
|
|
|
|
40 |
firstInvoicingDate
|
Date |
|
|
|
|
|
41 |
taxAmount
|
Integer |
|
|
|
|
|
42 |
planName
|
String |
|
|
|
|
Name of the plan. |
~unpause (request)
Consumes: xurl
Produces: json,xml,xurl
Unpauses the specified subscription.
Can be applied only to the subscriptions that have been previously paused.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
customer-id |
Long |
|
|
|
|
Unique Customer ID generated by the system. For more information see term: Customer. |
2 |
subscription-id |
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
~unpause (response)
Consumes: xurl
Produces: json,xml,xurl
Unpauses the specified subscription.
Can be applied only to the subscriptions that have been previously paused.
# |
Name |
Type |
Pattern |
Format |
Mode |
Usage |
Description |
1 |
pendingAdjustmentType
|
|
|
|
|
|
Type of the pending payment plan adjustment. |
2 |
firstInvoicingDate
|
Date |
|
|
|
|
Date when the invoicing will occur for the first time. |
3 |
nextInvoicingDate
|
Date |
|
|
|
|
|
4 |
taxAmount
|
Integer |
|
|
|
|
Tax amount (in cents) associated with the transaction processing. |
5 |
planName
|
String(255) |
|
|
|
|
Name of the plan. |
6 |
billingCycleType
|
|
|
|
|
|
Type of billing cycle used. |
7 |
code
|
String(60) |
|
|
|
|
Unique Subscription ID supplied by external/user's system. Note: Optional secondary identifier. Typically this field is a reference to an ID in your own system to cross-reference it within our system. If not provided, the system will use the object 'id' generated at the time of object creation. |
8 |
createDate
|
Datetime |
|
|
|
|
Date when the Subscription was created. Note: Date format: yyyy-MM-dd. |
9 |
firstBillingDate
|
Date |
|
|
|
|
Date when the first billing occured. |
10 |
id
|
Long |
|
|
|
|
Unique Subscription ID generated by the system. |
11 |
lastBillingDate
|
Date |
|
|
|
|
Date when the last billing occured. |
12 |
lastUpdateDate
|
Datetime |
|
|
|
|
Date when the last update was made to the Subscription. |
13 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Date when the pending adjustment for the Subscription become effective. |
14 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Number of times that the pending adjustment for the Subscription will generate an invoice. |
15 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Any additional details associated with the pending adjustment for the Subscription. |
16 |
planId
|
Reference |
|
|
|
|
Reference to a Plan that a Subscription is associated with. Note: Reference to the Plan that the Customer is subscribing. |
17 |
status
|
|
|
|
|
|
Status of the record in the system. |
18 |
id
|
Long |
|
|
|
|
|
19 |
accountId
|
Integer |
|
|
|
|
|
20 |
amount
|
Integer |
|
|
|
|
|
21 |
createDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
22 |
customerId
|
Long |
|
|
|
|
|
23 |
firstBillingDate
|
Date |
|
|
|
|
|
24 |
lastBillingDate
|
Date |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
25 |
lastUpdateDate
|
Datetime |
|
|
|
|
In API request, the date must be submitted in yyyy-MM-dd format.
In API response, the date is returned in yyyy-MM-dd HH:mm:ss format. |
26 |
length
|
Integer |
|
|
|
|
Length parameter is required for Fixed Subscriptions and cannot exceed 3 years.
For subscriptions longer than 3 years, use Perpetual Subscription type, which does not require length parameter.
Length maximum value correlated with the selected billingCycleType:
- annually - 3,
- semi-annually - 6,
- quarterly - 12,
- monthly - 36,
- weekly - 153.
|
27 |
nextBillingDate
|
Date |
|
|
|
|
The date must be submitted in yyyy-MM-dd format. |
28 |
note
|
String(255) |
|
|
|
|
|
29 |
paymentOptionId
|
Reference |
|
|
|
|
|
30 |
planId
|
Reference |
|
|
|
|
Identifier of the associated payment plan. |
31 |
status
|
|
|
|
|
|
|
32 |
type
|
|
|
|
|
|
|
33 |
billingCycleType
|
|
|
|
|
|
Type of the applied billing cycle. |
34 |
pendingAdjustmentEffectiveDate
|
Date |
|
|
|
|
Effective date of the pending payment plan adjustment. The date must be submitted in yyyy-MM-dd format. |
35 |
pendingAdjustmentNote
|
String(255) |
|
|
|
|
Note associated with the pending payment plan adjustment. |
36 |
pendingAdjustmentLength
|
Integer |
|
|
|
|
Length of the pending payment plan adjustment. |
37 |
code
|
String(60) |
|
|
|
|
|
38 |
planName
|
String |
|
|
|
|
Name of the associated payment plan. |
39 |
nextInvoicingDate
|
Date |
|
|
|
|
|
40 |
firstInvoicingDate
|
Date |
|
|
|
|
|
41 |
taxAmount
|
Integer |
|
|
|
|
|
42 |
planName
|
String |
|
|
|
|
Name of the plan. |
|