Download OpenAPI specification:
Retrieves the collection of Customer resources.
| page | integer Default: 1 The collection page number |
string Customer email | |
| firstName | string Customer firstName |
| lastName | string Customer lastName |
| itemsPerPage | integer Default: 20 Customer itemsPerPage |
[- {
- "id": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "billingAddress": {
- "country": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "company": "string",
- "phone": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postalCode": "string"
}
}
]Creates a Customer resource.
The new Customer resource
| firstName required | string [ 2 .. 50 ] characters |
| lastName required | string [ 2 .. 50 ] characters |
| email required | |
| phone required | string |
{- "firstName": "string",
- "lastName": "string",
- "phone": "string"
}{- "id": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "billingAddress": {
- "country": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "company": "string",
- "phone": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postalCode": "string"
}
}Retrieves a Customer resource.
| id required | string Customer identifier |
{- "id": 0,
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "billingAddress": {
- "country": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "company": "string",
- "phone": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postalCode": "string"
}
}Retrieves the collection of Invoice resources.
| page | integer Default: 1 The collection page number |
| status | string Enum: "paid" "cancelled" "payment_due" "failed" Invoice status |
| customerId | integer Invoice customerId |
| itemsPerPage | integer Default: 20 Invoice itemsPerPage |
[- {
- "id": 0,
- "customerId": 0,
- "status": "string",
- "totalAmount": 0,
- "totalAmountPaid": 0,
- "subTotalAmount": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "refundedAmount": 0,
- "dueDate": "string",
- "paidOn": "string",
- "lineItems": [
- {
- "id": 0,
- "productType": "string",
- "productId": "string",
- "description": "string",
- "amount": 0,
- "quantity": 0,
- "unitPrice": 0,
- "from": "string",
- "to": "string"
}
]
}
]Retrieves a Invoice resource.
| id required | string Invoice identifier |
{- "id": 0,
- "customerId": 0,
- "status": "string",
- "totalAmount": 0,
- "totalAmountPaid": 0,
- "subTotalAmount": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "refundedAmount": 0,
- "dueDate": "string",
- "paidOn": "string",
- "lineItems": [
- {
- "id": 0,
- "productType": "string",
- "productId": "string",
- "description": "string",
- "amount": 0,
- "quantity": 0,
- "unitPrice": 0,
- "from": "string",
- "to": "string"
}
]
}Records a completed payment for the full invoice amount.
| id required | string Invoice identifier |
The new Invoice resource
| reference | string or null <= 255 characters |
| method | string <= 255 characters |
object or null |
{- "reference": "string",
- "method": "string",
- "metadata": { }
}{- "id": 0,
- "customerId": 0,
- "status": "string",
- "totalAmount": 0,
- "totalAmountPaid": 0,
- "subTotalAmount": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "refundedAmount": 0,
- "dueDate": "string",
- "paidOn": "string",
- "lineItems": [
- {
- "id": 0,
- "productType": "string",
- "productId": "string",
- "description": "string",
- "amount": 0,
- "quantity": 0,
- "unitPrice": 0,
- "from": "string",
- "to": "string"
}
]
}Retrieves the collection of Package resources.
| page | integer Default: 1 The collection page number |
| isActive | boolean Package isActive |
| itemsPerPage | integer Default: 20 Package itemsPerPage |
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "isActive": true,
- "recurringCharges": [
- {
- "id": 0,
- "recurringChargeId": 0,
- "recurringChargeName": "string",
- "recurringChargeCode": "string",
- "billingPeriodId": 0,
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0,
- "quantity": 0,
- "sortOrder": 0
}
], - "physicalAssets": [
- {
- "id": 0,
- "physicalAssetId": 0,
- "physicalAssetName": "string",
- "physicalAssetCode": "string",
- "billingPeriodId": 0,
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0,
- "quantity": 0,
- "sortOrder": 0,
- "allocationPolicy": "string"
}
]
}
]Retrieves the collection of PhysicalAsset resources.
| page | integer Default: 1 The collection page number |
| code | string PhysicalAsset code |
| status | string Enum: "available" "cancelled" "archived" "assigned" "shipped" PhysicalAsset status |
| itemsPerPage | integer Default: 20 PhysicalAsset itemsPerPage |
[- {
- "id": 0,
- "name": "string",
- "code": "string",
- "description": "string",
- "successUrl": "string",
- "taxCode": "string",
- "isTaxExempt": true,
- "status": "string",
- "quantity": 0,
- "billingPeriods": [
- {
- "id": 0,
- "physicalAssetId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}
]
}
]Retrieves a PhysicalAsset resource.
| id required | string PhysicalAsset identifier |
{- "id": 0,
- "name": "string",
- "code": "string",
- "description": "string",
- "successUrl": "string",
- "taxCode": "string",
- "isTaxExempt": true,
- "status": "string",
- "quantity": 0,
- "billingPeriods": [
- {
- "id": 0,
- "physicalAssetId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}
]
}Retrieves the collection of RecurringCharge resources.
| page | integer Default: 1 The collection page number |
| code | string RecurringCharge code |
| status | string Enum: "active" "archived" "exhausted" RecurringCharge status |
| itemsPerPage | integer Default: 20 RecurringCharge itemsPerPage |
[- {
- "id": 0,
- "name": "string",
- "code": "string",
- "description": "string",
- "pricingModelType": "string",
- "setupCosts": 0,
- "successUrl": "string",
- "taxCode": "string",
- "isTaxExempt": true,
- "showDescriptionInInvoices": true,
- "freeQuantity": 0,
- "status": "string",
- "billingPeriods": [
- {
- "id": 0,
- "recurringChargeId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}
]
}
]Retrieves a RecurringCharge resource.
| id required | string RecurringCharge identifier |
{- "id": 0,
- "name": "string",
- "code": "string",
- "description": "string",
- "pricingModelType": "string",
- "setupCosts": 0,
- "successUrl": "string",
- "taxCode": "string",
- "isTaxExempt": true,
- "showDescriptionInInvoices": true,
- "freeQuantity": 0,
- "status": "string",
- "billingPeriods": [
- {
- "id": 0,
- "recurringChargeId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}
]
}Retrieves the collection of Subscription resources.
| page | integer Default: 1 The collection page number |
| status | string Enum: "active" "cancelled" "future" Subscription status |
| ownerId | integer Subscription ownerId |
| itemsPerPage | integer Default: 20 Subscription itemsPerPage |
[- {
- "id": 0,
- "ownerId": 1,
- "status": "string",
- "startDate": "string",
- "currentTermStart": "string",
- "currentTermEnd": "string",
- "recurringCharges": [
- {
- "id": 0,
- "code": "string",
- "billingPeriod": {
- "id": 0,
- "recurringChargeId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}, - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "description": "string",
- "amount": 0,
- "nextBillingDate": "string",
- "status": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "quantity": 0
}
], - "physicalAssets": [
- {
- "id": 0,
- "code": "string",
- "billingPeriod": {
- "id": 0,
- "physicalAssetId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}, - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "description": "string",
- "amount": 0,
- "nextBillingDate": "string",
- "status": "string",
- "cancelledAt": "2019-08-24T14:15:22Z"
}
], - "oneTimeChargeIds": [
- 0
], - "autoCollectionEnabled": true,
- "remainingBillingCycles": 0
}
]Creates a Subscription resource.
The new Subscription resource
| ownerId required | integer or null > 0 |
| startDate | string or null <date-time> |
Array of objects (RecurringChargeDetailInput) | |
Array of objects (PhysicalAssetDetailInput) | |
| oneTimeChargeIds | Array of integers |
| autoCollectionEnabled | boolean |
| remainingBillingCycles | integer or null |
{- "ownerId": 1,
- "startDate": "2019-08-24T14:15:22Z",
- "recurringCharges": [
- {
- "periodUnit": "day",
- "periodLength": 1,
- "recurringChargeId": 1,
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "quantity": 1
}
], - "physicalAssets": [
- {
- "periodUnit": "day",
- "periodLength": 1,
- "physicalAssetId": 1,
- "nextBillingDate": "2019-08-24T14:15:22Z"
}
], - "oneTimeChargeIds": [
- 0
], - "autoCollectionEnabled": true,
- "remainingBillingCycles": 0
}{
}Retrieves a Subscription resource.
| id required | string Subscription identifier |
{- "id": 0,
- "ownerId": 1,
- "status": "string",
- "startDate": "string",
- "currentTermStart": "string",
- "currentTermEnd": "string",
- "recurringCharges": [
- {
- "id": 0,
- "code": "string",
- "billingPeriod": {
- "id": 0,
- "recurringChargeId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}, - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "description": "string",
- "amount": 0,
- "nextBillingDate": "string",
- "status": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "quantity": 0
}
], - "physicalAssets": [
- {
- "id": 0,
- "code": "string",
- "billingPeriod": {
- "id": 0,
- "physicalAssetId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}, - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "description": "string",
- "amount": 0,
- "nextBillingDate": "string",
- "status": "string",
- "cancelledAt": "2019-08-24T14:15:22Z"
}
], - "oneTimeChargeIds": [
- 0
], - "autoCollectionEnabled": true,
- "remainingBillingCycles": 0
}Cancel an active subscription.
| id required | string Subscription identifier |
The new Subscription resource
| cancelledBy | string or null |
| comment | string or null |
| scheduled | boolean |
| cancelledAt | string or null |
| applyProratedCalculations | boolean |
{- "cancelledBy": "string",
- "comment": "string",
- "scheduled": true,
- "cancelledAt": "string",
- "applyProratedCalculations": true
}{- "id": 0,
- "ownerId": 1,
- "status": "string",
- "startDate": "string",
- "currentTermStart": "string",
- "currentTermEnd": "string",
- "recurringCharges": [
- {
- "id": 0,
- "code": "string",
- "billingPeriod": {
- "id": 0,
- "recurringChargeId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}, - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "description": "string",
- "amount": 0,
- "nextBillingDate": "string",
- "status": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "quantity": 0
}
], - "physicalAssets": [
- {
- "id": 0,
- "code": "string",
- "billingPeriod": {
- "id": 0,
- "physicalAssetId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}, - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "description": "string",
- "amount": 0,
- "nextBillingDate": "string",
- "status": "string",
- "cancelledAt": "2019-08-24T14:15:22Z"
}
], - "oneTimeChargeIds": [
- 0
], - "autoCollectionEnabled": true,
- "remainingBillingCycles": 0
}Adds, removes or updates recurring charges, physical assets and one-time charges.
| id required | string Subscription identifier |
Subscription charges update payload
Array of objects (RecurringChargeDetailInput) | |
Array of objects (PhysicalAssetDetailInput) | |
| oneTimeChargeIds | Array of integers |
| autoCollectionEnabled | boolean |
{- "recurringCharges": [
- {
- "periodUnit": "day",
- "periodLength": 1,
- "recurringChargeId": 1,
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "quantity": 1
}
], - "physicalAssets": [
- {
- "periodUnit": "day",
- "periodLength": 1,
- "physicalAssetId": 1,
- "nextBillingDate": "2019-08-24T14:15:22Z"
}
], - "oneTimeChargeIds": [
- 0
], - "autoCollectionEnabled": true
}{- "id": 0,
- "ownerId": 1,
- "status": "string",
- "startDate": "string",
- "currentTermStart": "string",
- "currentTermEnd": "string",
- "recurringCharges": [
- {
- "id": 0,
- "code": "string",
- "billingPeriod": {
- "id": 0,
- "recurringChargeId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}, - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "description": "string",
- "amount": 0,
- "nextBillingDate": "string",
- "status": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "quantity": 0
}
], - "physicalAssets": [
- {
- "id": 0,
- "code": "string",
- "billingPeriod": {
- "id": 0,
- "physicalAssetId": 0,
- "label": "string",
- "status": "string",
- "unit": "string",
- "length": 0,
- "price": 0,
- "billingPeriodsNumber": 0
}, - "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "description": "string",
- "amount": 0,
- "nextBillingDate": "string",
- "status": "string",
- "cancelledAt": "2019-08-24T14:15:22Z"
}
], - "oneTimeChargeIds": [
- 0
], - "autoCollectionEnabled": true,
- "remainingBillingCycles": 0
}Retrieves the collection of UpcomingPayment resources.
| page | integer Default: 1 The collection page number |
| nextBillingDateFrom | string <date-time> UpcomingPayment nextBillingDateFrom |
| nextBillingDateTo | string <date-time> UpcomingPayment nextBillingDateTo |
| subscriptionId | integer UpcomingPayment subscriptionId |
| itemsPerPage | integer Default: 20 UpcomingPayment itemsPerPage |
[- {
- "id": 0,
- "subscriptionId": 0,
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "billingDay": 0,
- "subtotal": 0,
- "totalExlTax": 0,
- "total": 0,
- "lineItems": [
- {
- "productId": "string",
- "productTitle": "string",
- "productType": "string",
- "subtotal": 0,
- "totalExlTax": 0,
- "total": 0,
- "quantity": 0,
- "dateFrom": "2019-08-24T14:15:22Z",
- "dateTo": "2019-08-24T14:15:22Z",
- "entityId": 0,
- "metaData": [
- "string"
]
}
]
}
]Retrieves a UpcomingPayment resource.
| id required | string UpcomingPayment identifier |
{- "id": 0,
- "subscriptionId": 0,
- "nextBillingDate": "2019-08-24T14:15:22Z",
- "billingDay": 0,
- "subtotal": 0,
- "totalExlTax": 0,
- "total": 0,
- "lineItems": [
- {
- "productId": "string",
- "productTitle": "string",
- "productType": "string",
- "subtotal": 0,
- "totalExlTax": 0,
- "total": 0,
- "quantity": 0,
- "dateFrom": "2019-08-24T14:15:22Z",
- "dateTo": "2019-08-24T14:15:22Z",
- "entityId": 0,
- "metaData": [
- "string"
]
}
]
}