Download OpenAPI specification:Download
Ebanux allows you to sell products, services, subscriptions or one-time payments. With payment links, customers simply click or scan a QR code to access a quick payment.
The Ebanux-Back APIv2 is a simple connector API for doing business and data integrations.
This API is for individual retailers, SaaS services, or any business that needs to handle multiple integrations.
It is built over REST services on HTTPS.
It has predictable resource URLs.
It returns HTTP response codes to indicate errors.
It accepts and returns JSON in the HTTP body.
You can use your favorite HTTP/REST library for your programming language to use Ebanux-Back APIv2.
Returns the list of your products.
limit | integer Example: limit=10 The maximum number of items that can be returned. The supported values are between 5 and 25. |
page | integer Example: page=1 Number of the page to skip at the beginning of the list. |
content | string It allows to filter products that contain this value in their name or description. |
name | string It allows to filter items by name attribute. |
string It allows to filter items by email attribute. | |
deleted | boolean It allows to filter items by deleted attribute. |
created_before | string <date-time-iso8601> It allows to filter items where the created field is before a certain date. |
created_after | string <date-time-iso8601> It allows to filter items where the created field is after a certain date. |
updated_before | string <date-time-iso8601> It allows to filter items where the updated field is before a certain date. |
updated_after | string <date-time-iso8601> It allows to filter items where the updated field is after a certain date. |
{- "success": true,
- "result": {
- "current_page": 0,
- "total_pages": 0,
- "total_items": 0,
- "data": [
- {
- "id": "string",
- "active": true,
- "default_price": "string",
- "description": "string",
- "metadata": { },
- "name": "string",
- "images": [
- "string"
], - "livemode": true,
- "package_dimensions": {
- "height": 0,
- "length": 0,
- "weight": 0,
- "width": 0
}, - "shippable": true,
- "statement_descriptor": "string",
- "tax_code": "string",
- "unit_label": "string",
- "url": "string",
- "created": 0,
- "updated": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
]
}
}
Add a new item.
The product that will be create
name required | string |
active | boolean |
description | string |
images | Array of strings |
object (Package-Dimensions) ... | |
shippable | boolean |
statement_descriptor | string |
tax_code | string |
unit_label | string |
url | string |
object (Price-Data) |
{- "name": "string",
- "active": true,
- "description": "string",
- "images": [
- "string"
], - "package_dimensions": {
- "height": 0,
- "length": 0,
- "weight": 0,
- "width": 0
}, - "shippable": true,
- "statement_descriptor": "string",
- "tax_code": "string",
- "unit_label": "string",
- "url": "string",
- "default_price_data": {
- "currency": "str",
- "recurring": {
- "interval": "day",
- "interval_count": 0
}, - "tax_behavior": "inclusive",
- "unit_amount": 0,
- "currency_options": { }
}
}
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "default_price": "string",
- "description": "string",
- "metadata": { },
- "name": "string",
- "images": [
- "string"
], - "livemode": true,
- "package_dimensions": {
- "height": 0,
- "length": 0,
- "weight": 0,
- "width": 0
}, - "shippable": true,
- "statement_descriptor": "string",
- "tax_code": "string",
- "unit_label": "string",
- "url": "string",
- "created": 0,
- "updated": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and return the product with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "default_price": "string",
- "description": "string",
- "metadata": { },
- "name": "string",
- "images": [
- "string"
], - "livemode": true,
- "package_dimensions": {
- "height": 0,
- "length": 0,
- "weight": 0,
- "width": 0
}, - "shippable": true,
- "statement_descriptor": "string",
- "tax_code": "string",
- "unit_label": "string",
- "url": "string",
- "created": 0,
- "updated": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and update the product with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
The product that will be update
name | string |
active | boolean |
description | string |
images | Array of strings |
object (Package-Dimensions) ... | |
shippable | boolean |
statement_descriptor | string |
tax_code | string |
unit_label | string |
url | string |
default_price | string |
{- "name": "string",
- "active": true,
- "description": "string",
- "images": [
- "string"
], - "package_dimensions": {
- "height": 0,
- "length": 0,
- "weight": 0,
- "width": 0
}, - "shippable": true,
- "statement_descriptor": "string",
- "tax_code": "string",
- "unit_label": "string",
- "url": "string",
- "default_price": "string"
}
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "default_price": "string",
- "description": "string",
- "metadata": { },
- "name": "string",
- "images": [
- "string"
], - "livemode": true,
- "package_dimensions": {
- "height": 0,
- "length": 0,
- "weight": 0,
- "width": 0
}, - "shippable": true,
- "statement_descriptor": "string",
- "tax_code": "string",
- "unit_label": "string",
- "url": "string",
- "created": 0,
- "updated": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and remove the product with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "default_price": "string",
- "description": "string",
- "metadata": { },
- "name": "string",
- "images": [
- "string"
], - "livemode": true,
- "package_dimensions": {
- "height": 0,
- "length": 0,
- "weight": 0,
- "width": 0
}, - "shippable": true,
- "statement_descriptor": "string",
- "tax_code": "string",
- "unit_label": "string",
- "url": "string",
- "created": 0,
- "updated": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Returns the list of your coupons.
limit | integer Example: limit=10 The maximum number of items that can be returned. The supported values are between 5 and 25. |
page | integer Example: page=1 Number of the page to skip at the beginning of the list. |
content | string It allows to filter coupons that contain this value in their name. |
name | string It allows to filter items by name attribute. |
currency | string It allows to filter items by currency attribute. |
duration | string Enum: "once" "repeating" "forever" It allows to filter items by duration attribute. |
valid | boolean It allows to filter items by valid attribute. |
deleted | boolean It allows to filter items by deleted attribute. |
created_before | string <date-time-iso8601> It allows to filter items where the created field is before a certain date. |
created_after | string <date-time-iso8601> It allows to filter items where the created field is after a certain date. |
updated_before | string <date-time-iso8601> It allows to filter items where the updated field is before a certain date. |
updated_after | string <date-time-iso8601> It allows to filter items where the updated field is after a certain date. |
redeemed_before | string <date-time-iso8601> It allows to filter items where the redeemed field is before a certain date. |
redeemed_after | string <date-time-iso8601> It allows to filter items where the redeemed field is after a certain date. |
{- "success": true,
- "result": {
- "current_page": 0,
- "total_pages": 0,
- "total_items": 0,
- "data": [
- {
- "id": "string",
- "name": "string",
- "valid": true,
- "currency": "str",
- "metadata": { },
- "amount_off": 1,
- "percent_off": 100,
- "duration": "forever",
- "duration_in_months": 0,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "currency_options": [
- {
- "currency": "str",
- "amount_off": 1
}
], - "applies_to": {
- "products": [
- "string"
]
}, - "redeem_by": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
]
}
}
Add a new item.
The coupon that will be create
name | string |
Array of objects (Currency-Option) | |
id | string Item identifier |
currency required | string (currency) = 3 characters Three-letter ISO currency code, in lowercase. Must be a supported currency. |
required | integer or string |
applies_to | Array of strings |
duration | string Default: "once" Enum: "forever" "once" "repeating" |
duration_in_months | number >= 0 |
max_redemptions | integer >= 1 |
redeem_by | integer (Timestamps) |
{- "name": "string",
- "currency_options": [
- {
- "currency": "str",
- "amount_off": 1
}
], - "id": "string",
- "currency": "str",
- "discount": 1,
- "applies_to": [
- "string"
], - "duration": "forever",
- "duration_in_months": 0,
- "max_redemptions": 1,
- "redeem_by": 0
}
{- "success": true,
- "result": {
- "id": "string",
- "name": "string",
- "valid": true,
- "currency": "str",
- "metadata": { },
- "amount_off": 1,
- "percent_off": 100,
- "duration": "forever",
- "duration_in_months": 0,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "currency_options": [
- {
- "currency": "str",
- "amount_off": 1
}
], - "applies_to": {
- "products": [
- "string"
]
}, - "redeem_by": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and return the coupon with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "name": "string",
- "valid": true,
- "currency": "str",
- "metadata": { },
- "amount_off": 1,
- "percent_off": 100,
- "duration": "forever",
- "duration_in_months": 0,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "currency_options": [
- {
- "currency": "str",
- "amount_off": 1
}
], - "applies_to": {
- "products": [
- "string"
]
}, - "redeem_by": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and update the coupon with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
The coupon that will be update
name | string |
Array of objects (Currency-Option) |
{- "name": "string",
- "currency_options": [
- {
- "currency": "str",
- "amount_off": 1
}
]
}
{- "success": true,
- "result": {
- "id": "string",
- "name": "string",
- "valid": true,
- "currency": "str",
- "metadata": { },
- "amount_off": 1,
- "percent_off": 100,
- "duration": "forever",
- "duration_in_months": 0,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "currency_options": [
- {
- "currency": "str",
- "amount_off": 1
}
], - "applies_to": {
- "products": [
- "string"
]
}, - "redeem_by": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and remove the coupon with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "name": "string",
- "valid": true,
- "currency": "str",
- "metadata": { },
- "amount_off": 1,
- "percent_off": 100,
- "duration": "forever",
- "duration_in_months": 0,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "currency_options": [
- {
- "currency": "str",
- "amount_off": 1
}
], - "applies_to": {
- "products": [
- "string"
]
}, - "redeem_by": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Returns the list of your promotion-codes.
limit | integer Example: limit=10 The maximum number of items that can be returned. The supported values are between 5 and 25. |
page | integer Example: page=1 Number of the page to skip at the beginning of the list. |
content | string It allows to filter promotion-codes that contain this value in their code or coupon.id. |
code | string It allows to filter items by code attribute. |
coupon | string It allows to filter items by coupon.id attribute. |
customer | string It allows to filter items by customer attribute. |
active | boolean It allows to filter items by active attribute. |
created_before | string <date-time-iso8601> It allows to filter items where the created field is before a certain date. |
created_after | string <date-time-iso8601> It allows to filter items where the created field is after a certain date. |
updated_before | string <date-time-iso8601> It allows to filter items where the updated field is before a certain date. |
updated_after | string <date-time-iso8601> It allows to filter items where the updated field is after a certain date. |
expired_before | string <date-time-iso8601> It allows to filter items where the expires_at field is before a certain date. |
expired_after | string <date-time-iso8601> It allows to filter items where the expires_at field is after a certain date. |
{- "success": true,
- "result": {
- "current_page": 0,
- "total_pages": 0,
- "total_items": 0,
- "data": [
- {
- "id": "string",
- "code": "string",
- "coupon": {
- "id": "string"
}, - "metadata": { },
- "active": true,
- "customer": "string",
- "livemode": true,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "restrictions": {
- "currency_options": [
- {
- "currency": "str",
- "minimum_amount": 0
}
], - "first_time_transaction": true,
- "minimum_amount": 0,
- "minimum_amount_currency": "str"
}, - "expires_at": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform"
}
]
}
}
Add a new item.
The promotion-code that will be create
active | boolean Default: true |
object (Restriction) | |
coupon required | string |
code | string |
customer | string |
expires_at | integer (Timestamps) ... |
max_redemptions | integer >= 1 |
{- "active": true,
- "restrictions": {
- "currency_options": [
- {
- "currency": "str",
- "minimum_amount": 0
}
], - "first_time_transaction": true,
- "minimum_amount": 1,
- "minimum_amount_currency": "str"
}, - "coupon": "string",
- "code": "string",
- "customer": "string",
- "expires_at": 0,
- "max_redemptions": 1
}
{- "success": true,
- "result": {
- "id": "string",
- "code": "string",
- "coupon": {
- "id": "string"
}, - "metadata": { },
- "active": true,
- "customer": "string",
- "livemode": true,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "restrictions": {
- "currency_options": [
- {
- "currency": "str",
- "minimum_amount": 0
}
], - "first_time_transaction": true,
- "minimum_amount": 0,
- "minimum_amount_currency": "str"
}, - "expires_at": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform"
}
}
Find and return the promotion-code with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "code": "string",
- "coupon": {
- "id": "string"
}, - "metadata": { },
- "active": true,
- "customer": "string",
- "livemode": true,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "restrictions": {
- "currency_options": [
- {
- "currency": "str",
- "minimum_amount": 0
}
], - "first_time_transaction": true,
- "minimum_amount": 0,
- "minimum_amount_currency": "str"
}, - "expires_at": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform"
}
}
Find and update the promotion-code with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
The promotion-code that will be update
active | boolean Default: true |
object (Restriction) |
{- "active": true,
- "restrictions": {
- "currency_options": [
- {
- "currency": "str",
- "minimum_amount": 0
}
]
}
}
{- "success": true,
- "result": {
- "id": "string",
- "code": "string",
- "coupon": {
- "id": "string"
}, - "metadata": { },
- "active": true,
- "customer": "string",
- "livemode": true,
- "max_redemptions": 1,
- "times_redeemed": 0,
- "restrictions": {
- "currency_options": [
- {
- "currency": "str",
- "minimum_amount": 0
}
], - "first_time_transaction": true,
- "minimum_amount": 0,
- "minimum_amount_currency": "str"
}, - "expires_at": 0,
- "created": 0,
- "cognito_user_id": "string",
- "origin": "platform"
}
}
Returns the list of your prices.
limit | integer Example: limit=10 The maximum number of items that can be returned. The supported values are between 5 and 25. |
page | integer Example: page=1 Number of the page to skip at the beginning of the list. |
content | string It allows to filter prices that contain this value in their name, nickname or lookup_key. |
name | string It allows to filter items by name attribute. |
nickname | string It allows to filter items by nickname. |
product | string It allows to filter items by product id. |
currency | string It allows to filter items by currency attribute. |
type | string Enum: "one_time" "recurring" It allows to filter items by type. |
billing_scheme | string Enum: "per_unit" "tiered" It allows to filter items by billing_scheme. |
tax_behavior | string Enum: "inclusive" "exclusive" "unspecified" It allows to filter items by tax_behavior. |
tiers_mode | string Enum: "volume" "graduated" It allows to filter items by tiers_mode, but only when the billing_scheme=tiered filter is also set. |
active | boolean It allows to filter items by active attribute. |
created_before | string <date-time-iso8601> It allows to filter items where the created field is before a certain date. |
created_after | string <date-time-iso8601> It allows to filter items where the created field is after a certain date. |
{- "success": true,
- "result": {
- "current_page": 0,
- "total_pages": 0,
- "total_items": 0,
- "data": [
- {
- "id": "string",
- "active": true,
- "currency": "str",
- "metadata": { },
- "nickname": "string",
- "product": "string",
- "recurring": {
- "interval": "day",
- "interval_count": 0,
- "aggregate_usage": "sum",
- "usage_type": "metered"
}, - "type": "one_time",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "billing_scheme": "per_unit",
- "currency_options": {
- "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0
}, - "tax_behavior": "inclusive",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "tiers": [
- {
- "flat_amount": 0,
- "flat_amount_decimal": "string",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "up_to": 0
}
]
}, - "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0
}, - "livemode": true,
- "lookup_key": "string",
- "tax_behavior": "inclusive",
- "tiers": [
- {
- "flat_amount": 0,
- "flat_amount_decimal": "string",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "up_to": 0
}
], - "tiers_mode": "volume",
- "transform_quantity": {
- "divide_by": 1,
- "round": "up"
}, - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform"
}
]
}
}
Add a new item.
The price that will be create
nickname | string |
active | boolean |
object (price_currency_options_request) | |
lookup_key | string <= 200 characters |
transfer_lookup_key | boolean |
tax_behavior | string Default: "unspecified" Enum: "inclusive" "exclusive" "unspecified" |
currency required | string (currency) = 3 characters Three-letter ISO currency code, in lowercase. Must be a supported currency. |
required | string or Product-Data (object) |
billing_scheme | string Default: "per_unit" Enum: "per_unit" "tiered" |
integer or string A positive value in cents (or 0 for a free price) representing how much to charge. | |
object (recurring) | |
tiers_mode | string Enum: "volume" "graduated" |
Array of Tier with flat-amount (object) or Tier with unit-amount (object) (Tier) | |
object (transform_quantity) | |
object (Custom-Unit-Amount) |
{- "nickname": "string",
- "active": true,
- "currency_options": {
- "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0,
- "enabled": true
}, - "tiers": [
- {
- "up_to": 0,
- "flat_amount": 0
}
], - "tax_behavior": "inclusive",
- "unit_amount": 0
}, - "lookup_key": "string",
- "transfer_lookup_key": true,
- "tax_behavior": "inclusive",
- "currency": "str",
- "product": "string",
- "billing_scheme": "per_unit",
- "unit_amount": 0,
- "recurring": {
- "interval": "day",
- "interval_count": 0,
- "aggregate_usage": "sum",
- "usage_type": "metered"
}, - "tiers_mode": "volume",
- "tiers": [
- {
- "up_to": 0,
- "flat_amount": 0
}
], - "transform_quantity": {
- "divide_by": 1,
- "round": "up"
}, - "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0,
- "enabled": true
}
}
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "currency": "str",
- "metadata": { },
- "nickname": "string",
- "product": "string",
- "recurring": {
- "interval": "day",
- "interval_count": 0,
- "aggregate_usage": "sum",
- "usage_type": "metered"
}, - "type": "one_time",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "billing_scheme": "per_unit",
- "currency_options": {
- "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0
}, - "tax_behavior": "inclusive",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "tiers": [
- {
- "flat_amount": 0,
- "flat_amount_decimal": "string",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "up_to": 0
}
]
}, - "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0
}, - "livemode": true,
- "lookup_key": "string",
- "tax_behavior": "inclusive",
- "tiers": [
- {
- "flat_amount": 0,
- "flat_amount_decimal": "string",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "up_to": 0
}
], - "tiers_mode": "volume",
- "transform_quantity": {
- "divide_by": 1,
- "round": "up"
}, - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform"
}
}
Find and return the price with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "currency": "str",
- "metadata": { },
- "nickname": "string",
- "product": "string",
- "recurring": {
- "interval": "day",
- "interval_count": 0,
- "aggregate_usage": "sum",
- "usage_type": "metered"
}, - "type": "one_time",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "billing_scheme": "per_unit",
- "currency_options": {
- "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0
}, - "tax_behavior": "inclusive",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "tiers": [
- {
- "flat_amount": 0,
- "flat_amount_decimal": "string",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "up_to": 0
}
]
}, - "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0
}, - "livemode": true,
- "lookup_key": "string",
- "tax_behavior": "inclusive",
- "tiers": [
- {
- "flat_amount": 0,
- "flat_amount_decimal": "string",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "up_to": 0
}
], - "tiers_mode": "volume",
- "transform_quantity": {
- "divide_by": 1,
- "round": "up"
}, - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform"
}
}
Find and update the price with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
The price that will be update
nickname | string |
active | boolean |
object (price_currency_options_request) | |
lookup_key | string <= 200 characters |
transfer_lookup_key | boolean |
tax_behavior | string Default: "unspecified" Enum: "inclusive" "exclusive" "unspecified" |
{- "nickname": "string",
- "active": true,
- "currency_options": {
- "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0,
- "enabled": true
}, - "tiers": [
- {
- "up_to": 0,
- "flat_amount": 0
}
], - "tax_behavior": "inclusive",
- "unit_amount": 0
}, - "lookup_key": "string",
- "transfer_lookup_key": true,
- "tax_behavior": "inclusive"
}
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "currency": "str",
- "metadata": { },
- "nickname": "string",
- "product": "string",
- "recurring": {
- "interval": "day",
- "interval_count": 0,
- "aggregate_usage": "sum",
- "usage_type": "metered"
}, - "type": "one_time",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "billing_scheme": "per_unit",
- "currency_options": {
- "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0
}, - "tax_behavior": "inclusive",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "tiers": [
- {
- "flat_amount": 0,
- "flat_amount_decimal": "string",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "up_to": 0
}
]
}, - "custom_unit_amount": {
- "maximum": 0,
- "minimum": 0,
- "preset": 0
}, - "livemode": true,
- "lookup_key": "string",
- "tax_behavior": "inclusive",
- "tiers": [
- {
- "flat_amount": 0,
- "flat_amount_decimal": "string",
- "unit_amount": 0,
- "unit_amount_decimal": "string",
- "up_to": 0
}
], - "tiers_mode": "volume",
- "transform_quantity": {
- "divide_by": 1,
- "round": "up"
}, - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform"
}
}
Returns the list of your payment-links.
limit | integer Example: limit=10 The maximum number of items that can be returned. The supported values are between 5 and 25. |
page | integer Example: page=1 Number of the page to skip at the beginning of the list. |
content | string It allows to filter payment-links that contain this value in their submit_type. |
active | boolean It allows to filter items by active attribute. |
submit_type | string It allows to filter items by submit_type attribute. |
currency | string It allows to filter items by currency attribute. |
allow_promotion_codes | boolean It allows to filter items by allow_promotion_codes attribute. |
created_before | string <date-time-iso8601> It allows to filter items where the created field is before a certain date. |
created_after | string <date-time-iso8601> It allows to filter items where the created field is after a certain date. |
updated_before | string <date-time-iso8601> It allows to filter items where the updated field is before a certain date. |
updated_after | string <date-time-iso8601> It allows to filter items where the updated field is after a certain date. |
{- "success": true,
- "result": {
- "current_page": 0,
- "total_pages": 0,
- "total_items": 0,
- "data": [
- {
- "id": "string",
- "active": true,
- "line_items": [
- { }
], - "metadata": { },
- "payment_method_types": [
- "string"
], - "url": [
- "string"
], - "after_completion": {
- "type": "redirect",
- "hosted_confirmation": {
- "custom_message": "string"
}, - "redirect": {
- "url": "string"
}
}, - "allow_promotion_codes": true,
- "application_fee_amount": 0,
- "application_fee_percent": 0,
- "automatic_tax": {
- "enabled": true
}, - "billing_address_collection": "auto",
- "consent_collection": {
- "promotions": "string"
}, - "currency": "str",
- "customer_creation": "if_required",
- "livemode": true,
- "on_behalf_of": "string",
- "payment_intent_data": {
- "capture_method": "automatic",
- "setup_future_usage": "on_session"
}, - "payment_method_collection": "always",
- "phone_number_collection": {
- "enabled": true
}, - "shipping_address_collection": {
- "allowed_countries": [
- "st"
]
}, - "shipping_options": [
- {
- "shipping_amount": 0,
- "shipping_rate": "string"
}
], - "submit_type": "auto",
- "subscription_data": {
- "description": "string",
- "trial_period_days": 0
}, - "tax_id_collection": {
- "enabled": true
}, - "transfer_data": {
- "amount": 0,
- "destination": "string"
}, - "createdAt": 0,
- "updatedAt": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
]
}
}
Add a new item.
The payment-link that will be create
payment_method_types | string Enum: "card" "affirm" "promptpay" "bacs_debit" "bancontact" "blik" "boleto" "eps" "fpx" "giropay" "grabpay" "ideal" "klarna" "konbini" "oxxo" "p24" "paynow" "pix" "afterpay_clearpay" "alipay" "au_becs_debit" "sepa_debit" "sofort" "us_bank_account" "wechat_pay" |
object (After-Completion) | |
allow_promotion_codes | boolean |
object | |
billing_address_collection | string Enum: "auto" "required" |
customer_creation | string Enum: "if_required" "always" |
payment_method_collection | string Enum: "if_required" "always" |
object | |
required | Array of objects (Line-Item) |
object (Consent-Collection) | |
currency | string (currency) = 3 characters Three-letter ISO currency code, in lowercase. Must be a supported currency. |
object | |
object | |
Array of objects | |
submit_type | string Enum: "auto" "pay" "book" "donate" |
object | |
object |
{- "payment_method_types": "card",
- "after_completion": {
- "type": "redirect",
- "hosted_confirmation": {
- "custom_message": "string"
}, - "redirect": {
- "url": "string"
}
}, - "allow_promotion_codes": true,
- "automatic_tax": {
- "enabled": true
}, - "billing_address_collection": "auto",
- "customer_creation": "if_required",
- "payment_method_collection": "if_required",
- "shipping_address_collection": {
- "allowed_countries": [
- "st"
]
}, - "line_items": [
- {
- "price": "string",
- "adjustable_quantity": {
- "enabled": true,
- "minimum": 1,
- "maximum": 1
}, - "quantity": 1
}
], - "consent_collection": {
- "promotions": "auto"
}, - "currency": "str",
- "payment_intent_data": {
- "capture_method": "automatic",
- "setup_future_usage": "on_session"
}, - "phone_number_collection": {
- "enabled": true
}, - "shipping_options": [
- {
- "shipping_rate": "string"
}
], - "submit_type": "auto",
- "subscription_data": {
- "description": "string",
- "trial_period_days": 0
}, - "tax_id_collection": {
- "enabled": true
}
}
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "line_items": [
- { }
], - "metadata": { },
- "payment_method_types": [
- "string"
], - "url": [
- "string"
], - "after_completion": {
- "type": "redirect",
- "hosted_confirmation": {
- "custom_message": "string"
}, - "redirect": {
- "url": "string"
}
}, - "allow_promotion_codes": true,
- "application_fee_amount": 0,
- "application_fee_percent": 0,
- "automatic_tax": {
- "enabled": true
}, - "billing_address_collection": "auto",
- "consent_collection": {
- "promotions": "string"
}, - "currency": "str",
- "customer_creation": "if_required",
- "livemode": true,
- "on_behalf_of": "string",
- "payment_intent_data": {
- "capture_method": "automatic",
- "setup_future_usage": "on_session"
}, - "payment_method_collection": "always",
- "phone_number_collection": {
- "enabled": true
}, - "shipping_address_collection": {
- "allowed_countries": [
- "st"
]
}, - "shipping_options": [
- {
- "shipping_amount": 0,
- "shipping_rate": "string"
}
], - "submit_type": "auto",
- "subscription_data": {
- "description": "string",
- "trial_period_days": 0
}, - "tax_id_collection": {
- "enabled": true
}, - "transfer_data": {
- "amount": 0,
- "destination": "string"
}, - "createdAt": 0,
- "updatedAt": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and return the payment-link with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "line_items": [
- { }
], - "metadata": { },
- "payment_method_types": [
- "string"
], - "url": [
- "string"
], - "after_completion": {
- "type": "redirect",
- "hosted_confirmation": {
- "custom_message": "string"
}, - "redirect": {
- "url": "string"
}
}, - "allow_promotion_codes": true,
- "application_fee_amount": 0,
- "application_fee_percent": 0,
- "automatic_tax": {
- "enabled": true
}, - "billing_address_collection": "auto",
- "consent_collection": {
- "promotions": "string"
}, - "currency": "str",
- "customer_creation": "if_required",
- "livemode": true,
- "on_behalf_of": "string",
- "payment_intent_data": {
- "capture_method": "automatic",
- "setup_future_usage": "on_session"
}, - "payment_method_collection": "always",
- "phone_number_collection": {
- "enabled": true
}, - "shipping_address_collection": {
- "allowed_countries": [
- "st"
]
}, - "shipping_options": [
- {
- "shipping_amount": 0,
- "shipping_rate": "string"
}
], - "submit_type": "auto",
- "subscription_data": {
- "description": "string",
- "trial_period_days": 0
}, - "tax_id_collection": {
- "enabled": true
}, - "transfer_data": {
- "amount": 0,
- "destination": "string"
}, - "createdAt": 0,
- "updatedAt": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and update the payment-link with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
The payment-links that will be update
payment_method_types | string Enum: "card" "affirm" "promptpay" "bacs_debit" "bancontact" "blik" "boleto" "eps" "fpx" "giropay" "grabpay" "ideal" "klarna" "konbini" "oxxo" "p24" "paynow" "pix" "afterpay_clearpay" "alipay" "au_becs_debit" "sepa_debit" "sofort" "us_bank_account" "wechat_pay" |
object (After-Completion) | |
allow_promotion_codes | boolean |
object | |
billing_address_collection | string Enum: "auto" "required" |
customer_creation | string Enum: "if_required" "always" |
payment_method_collection | string Enum: "if_required" "always" |
object | |
required | Array of objects (Line-Item) |
{- "payment_method_types": "card",
- "after_completion": {
- "type": "redirect",
- "hosted_confirmation": {
- "custom_message": "string"
}, - "redirect": {
- "url": "string"
}
}, - "allow_promotion_codes": true,
- "automatic_tax": {
- "enabled": true
}, - "billing_address_collection": "auto",
- "customer_creation": "if_required",
- "payment_method_collection": "if_required",
- "shipping_address_collection": {
- "allowed_countries": [
- "st"
]
}, - "line_items": [
- {
- "id": "string",
- "adjustable_quantity": {
- "enabled": true,
- "minimum": 1,
- "maximum": 1
}, - "quantity": 1
}
]
}
{- "success": true,
- "result": {
- "id": "string",
- "active": true,
- "line_items": [
- { }
], - "metadata": { },
- "payment_method_types": [
- "string"
], - "url": [
- "string"
], - "after_completion": {
- "type": "redirect",
- "hosted_confirmation": {
- "custom_message": "string"
}, - "redirect": {
- "url": "string"
}
}, - "allow_promotion_codes": true,
- "application_fee_amount": 0,
- "application_fee_percent": 0,
- "automatic_tax": {
- "enabled": true
}, - "billing_address_collection": "auto",
- "consent_collection": {
- "promotions": "string"
}, - "currency": "str",
- "customer_creation": "if_required",
- "livemode": true,
- "on_behalf_of": "string",
- "payment_intent_data": {
- "capture_method": "automatic",
- "setup_future_usage": "on_session"
}, - "payment_method_collection": "always",
- "phone_number_collection": {
- "enabled": true
}, - "shipping_address_collection": {
- "allowed_countries": [
- "st"
]
}, - "shipping_options": [
- {
- "shipping_amount": 0,
- "shipping_rate": "string"
}
], - "submit_type": "auto",
- "subscription_data": {
- "description": "string",
- "trial_period_days": 0
}, - "tax_id_collection": {
- "enabled": true
}, - "transfer_data": {
- "amount": 0,
- "destination": "string"
}, - "createdAt": 0,
- "updatedAt": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Returns the list of your customers.
limit | integer Example: limit=10 The maximum number of items that can be returned. The supported values are between 5 and 25. |
page | integer Example: page=1 Number of the page to skip at the beginning of the list. |
content | string It allows to filter products that contain this value in their name, email or description. |
name | string It allows to filter items by name attribute. |
string It allows to filter items by email attribute. | |
deleted | boolean It allows to filter items by deleted attribute. |
created_before | string <date-time-iso8601> It allows to filter items where the created field is before a certain date. |
created_after | string <date-time-iso8601> It allows to filter items where the created field is after a certain date. |
{- "success": true,
- "result": {
- "current_page": 0,
- "total_pages": 0,
- "total_items": 0,
- "data": [
- {
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": "string",
- "description": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}, - "shipping": {
- "name": "string",
- "phone": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}
}, - "metadata": { },
- "balance": 0,
- "cash_balance": {
- "customer": "string",
- "livemode": true,
- "available": { },
- "settings": {
- "reconciliation_mode": "string"
}
}, - "currency": "str",
- "default_source": "string",
- "delinquent": true,
- "discount": {
- "id": "string",
- "coupon": {
- "id": "string"
}, - "promotion_code": {
- "id": "string"
}, - "customer": "string",
- "end": 0,
- "start": 0,
- "subscription": "string",
- "checkout_session": "string",
- "invoice": "string",
- "invoice_item": "string"
}, - "invoice_credit_balance": { },
- "invoice_prefix": "string",
- "livemode": true,
- "next_invoice_sequence": 0,
- "tax_exempt": "none",
- "test_clock": "string",
- "invoice_settings": {
- "default_payment_method": "string",
- "footer": "string",
- "available": { },
- "rendering_options": {
- "amount_tax_display": "string"
}, - "custom_fields": [
- {
- "name": "string",
- "value": "string"
}
]
}, - "preferred_locales": [
- {
- "id": "string"
}
], - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
]
}
}
Add a new item.
The customer that will be create
name | string |
string | |
phone | string |
description | string |
object (Address) ... | |
object (Shipping) ... | |
payment_method | string ... |
tax_exempt | string Enum: "none" "exempt" "reverse" |
balance | number |
invoice_prefix | string [ 3 .. 12 ] characters |
next_invoice_sequence | number |
coupon | string |
promotion_code | string |
{- "name": "string",
- "email": "string",
- "phone": "string",
- "description": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}, - "shipping": {
- "name": "string",
- "phone": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}
}, - "payment_method": "string",
- "tax_exempt": "none",
- "balance": 0,
- "invoice_prefix": "string",
- "next_invoice_sequence": 0,
- "coupon": "string",
- "promotion_code": "string"
}
{- "success": true,
- "result": {
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": "string",
- "description": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}, - "shipping": {
- "name": "string",
- "phone": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}
}, - "metadata": { },
- "balance": 0,
- "cash_balance": {
- "customer": "string",
- "livemode": true,
- "available": { },
- "settings": {
- "reconciliation_mode": "string"
}
}, - "currency": "str",
- "default_source": "string",
- "delinquent": true,
- "discount": {
- "id": "string",
- "coupon": {
- "id": "string"
}, - "promotion_code": {
- "id": "string"
}, - "customer": "string",
- "end": 0,
- "start": 0,
- "subscription": "string",
- "checkout_session": "string",
- "invoice": "string",
- "invoice_item": "string"
}, - "invoice_credit_balance": { },
- "invoice_prefix": "string",
- "livemode": true,
- "next_invoice_sequence": 0,
- "tax_exempt": "none",
- "test_clock": "string",
- "invoice_settings": {
- "default_payment_method": "string",
- "footer": "string",
- "available": { },
- "rendering_options": {
- "amount_tax_display": "string"
}, - "custom_fields": [
- {
- "name": "string",
- "value": "string"
}
]
}, - "preferred_locales": [
- {
- "id": "string"
}
], - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and return the customer with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": "string",
- "description": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}, - "shipping": {
- "name": "string",
- "phone": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}
}, - "metadata": { },
- "balance": 0,
- "cash_balance": {
- "customer": "string",
- "livemode": true,
- "available": { },
- "settings": {
- "reconciliation_mode": "string"
}
}, - "currency": "str",
- "default_source": "string",
- "delinquent": true,
- "discount": {
- "id": "string",
- "coupon": {
- "id": "string"
}, - "promotion_code": {
- "id": "string"
}, - "customer": "string",
- "end": 0,
- "start": 0,
- "subscription": "string",
- "checkout_session": "string",
- "invoice": "string",
- "invoice_item": "string"
}, - "invoice_credit_balance": { },
- "invoice_prefix": "string",
- "livemode": true,
- "next_invoice_sequence": 0,
- "tax_exempt": "none",
- "test_clock": "string",
- "invoice_settings": {
- "default_payment_method": "string",
- "footer": "string",
- "available": { },
- "rendering_options": {
- "amount_tax_display": "string"
}, - "custom_fields": [
- {
- "name": "string",
- "value": "string"
}
]
}, - "preferred_locales": [
- {
- "id": "string"
}
], - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and update the customer with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
The customer that will be update
name | string |
string | |
phone | string |
description | string |
object (Address) ... | |
object (Shipping) ... | |
payment_method | string |
tax_exempt | string Enum: "none" "exempt" "reverse" |
balance | number |
invoice_prefix | string [ 3 .. 12 ] characters |
next_invoice_sequence | number |
coupon | string |
promotion_code | string |
{- "name": "string",
- "email": "string",
- "phone": "string",
- "description": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}, - "shipping": {
- "name": "string",
- "phone": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}
}, - "payment_method": "string",
- "tax_exempt": "none",
- "balance": 0,
- "invoice_prefix": "string",
- "next_invoice_sequence": 0,
- "coupon": "string",
- "promotion_code": "string"
}
{- "success": true,
- "result": {
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": "string",
- "description": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}, - "shipping": {
- "name": "string",
- "phone": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}
}, - "metadata": { },
- "balance": 0,
- "cash_balance": {
- "customer": "string",
- "livemode": true,
- "available": { },
- "settings": {
- "reconciliation_mode": "string"
}
}, - "currency": "str",
- "default_source": "string",
- "delinquent": true,
- "discount": {
- "id": "string",
- "coupon": {
- "id": "string"
}, - "promotion_code": {
- "id": "string"
}, - "customer": "string",
- "end": 0,
- "start": 0,
- "subscription": "string",
- "checkout_session": "string",
- "invoice": "string",
- "invoice_item": "string"
}, - "invoice_credit_balance": { },
- "invoice_prefix": "string",
- "livemode": true,
- "next_invoice_sequence": 0,
- "tax_exempt": "none",
- "test_clock": "string",
- "invoice_settings": {
- "default_payment_method": "string",
- "footer": "string",
- "available": { },
- "rendering_options": {
- "amount_tax_display": "string"
}, - "custom_fields": [
- {
- "name": "string",
- "value": "string"
}
]
}, - "preferred_locales": [
- {
- "id": "string"
}
], - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Find and remove the customer with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "name": "string",
- "email": "string",
- "phone": "string",
- "description": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}, - "shipping": {
- "name": "string",
- "phone": "string",
- "address": {
- "city": "string",
- "country": "st",
- "line1": "string",
- "line2": "string",
- "postal_code": "string",
- "state": "string"
}
}, - "metadata": { },
- "balance": 0,
- "cash_balance": {
- "customer": "string",
- "livemode": true,
- "available": { },
- "settings": {
- "reconciliation_mode": "string"
}
}, - "currency": "str",
- "default_source": "string",
- "delinquent": true,
- "discount": {
- "id": "string",
- "coupon": {
- "id": "string"
}, - "promotion_code": {
- "id": "string"
}, - "customer": "string",
- "end": 0,
- "start": 0,
- "subscription": "string",
- "checkout_session": "string",
- "invoice": "string",
- "invoice_item": "string"
}, - "invoice_credit_balance": { },
- "invoice_prefix": "string",
- "livemode": true,
- "next_invoice_sequence": 0,
- "tax_exempt": "none",
- "test_clock": "string",
- "invoice_settings": {
- "default_payment_method": "string",
- "footer": "string",
- "available": { },
- "rendering_options": {
- "amount_tax_display": "string"
}, - "custom_fields": [
- {
- "name": "string",
- "value": "string"
}
]
}, - "preferred_locales": [
- {
- "id": "string"
}
], - "created": 0,
- "cognito_user_id": "string",
- "origin": "platform",
- "deleted": false
}
}
Returns the list of your subscriptions.
limit | integer Example: limit=10 The maximum number of items that can be returned. The supported values are between 5 and 25. |
page | integer Example: page=1 Number of the page to skip at the beginning of the list. |
content | string It allows to filter subscriptions that contain this value in their status or description. |
currency | string It allows to filter items by currency attribute. |
customer | string It allows to filter items by customer id. |
status | string It allows to filter items by status. |
created_before | string <date-time-iso8601> It allows to filter items where the created field is before a certain date. |
created_after | string <date-time-iso8601> It allows to filter items where the created field is after a certain date. |
canceled_before | string <date-time-iso8601> It allows to filter items where the canceled field is before a certain date. |
canceled_after | string <date-time-iso8601> It allows to filter items where the canceled field is after a certain date. |
cancel_before | string <date-time-iso8601> It allows to filter items where the cancel field is before a certain date. |
cancel_after | string <date-time-iso8601> It allows to filter items where the cancel field is after a certain date. |
{- "success": true,
- "result": {
- "current_page": 0,
- "total_pages": 0,
- "total_items": 0,
- "data": [
- {
- "id": "string",
- "cancel_at_period_end": true,
- "currency": "str",
- "current_period_end": 0,
- "current_period_start": 0,
- "customer": "string",
- "default_payment_method": "string",
- "description": "string",
- "latest_invoice": "string",
- "pending_setup_intent": "string",
- "pending_update": {
- "billing_cycle_anchor": 0,
- "expires_at": 0,
- "subscription_items": [
- {
- "id": "string"
}
], - "trial_end": 0,
- "trial_from_plan": true
}, - "status": "incomplete",
- "application": "string",
- "application_fee_percent": 100,
- "automatic_tax": {
- "enabled": true
}, - "billing_cycle_anchor": 0,
- "billing_thresholds": {
- "amount_gte": 0,
- "reset_billing_cycle_anchor": true
}, - "cancel_at": 0,
- "canceled_at": 0,
- "collection_method": "charge_automatically",
- "created": 0,
- "days_until_due": 0,
- "default_source": "string",
- "discount": {
- "id": "string"
}, - "ended_at": 0,
- "livemode": true,
- "next_pending_invoice_item_invoice": 0,
- "pause_collection": {
- "behavior": "string",
- "resumes_at": 0
}, - "pending_invoice_item_interval": {
- "interval": "day",
- "interval_count": 0
}, - "schedule": "string",
- "start_date": 0,
- "test_clock": "string",
- "transfer_data": {
- "amount_percent": 0,
- "destination": "string"
}, - "trial_end": 0,
- "trial_start": 0,
- "metadata": { },
- "default_tax_rates": [
- {
- "id": "string"
}
], - "items": [
- {
- "id": "string",
- "price": {
- "id": "string"
}, - "plan": {
- "id": "string"
}, - "quantity": 0,
- "billing_thresholds": { },
- "created": 0,
- "tax_rates": [
- {
- "id": "string"
}
], - "metadata": { }
}
], - "plan": {
- "id": "string"
}, - "payment_settings": {
- "payment_method_options": { },
- "payment_method_types": "string",
- "save_default_payment_method": "off"
}, - "cognito_user_id": "string",
- "origin": "platform"
}
]
}
}
Add a new item.
The subscription that will be create
cancel_at_period_end | boolean |
default_payment_method | string |
description | string |
payment_behavior | string Enum: "allow_incomplete" "error_if_incomplete" "pending_if_incomplete" "default_incomplete" |
cancel_at | string <date-time-iso8601> |
collection_method | string Enum: "charge_automatically" "send_invoice" |
coupon | string |
days_until_due | integer |
promotion_code | string |
trial_end | string <date-time-iso8601> |
trial_from_plan | boolean |
customer required | string The identifier of the customer to subscribe. |
currency | string (Currency) = 3 characters Three-letter ISO currency code, in lowercase. Must be a supported currency. |
required | Array of objects (Subscription-Item) A list of up to 20 subscription items, each with an attached price. |
{- "cancel_at_period_end": true,
- "default_payment_method": "string",
- "description": "string",
- "payment_behavior": "allow_incomplete",
- "cancel_at": "string",
- "collection_method": "charge_automatically",
- "coupon": "string",
- "days_until_due": 0,
- "promotion_code": "string",
- "trial_end": "string",
- "trial_from_plan": true,
- "customer": "string",
- "currency": "str",
- "items": [
- {
- "price": "string",
- "quantity": 1
}
]
}
{- "success": true,
- "result": {
- "id": "string",
- "cancel_at_period_end": true,
- "currency": "str",
- "current_period_end": 0,
- "current_period_start": 0,
- "customer": "string",
- "default_payment_method": "string",
- "description": "string",
- "latest_invoice": "string",
- "pending_setup_intent": "string",
- "pending_update": {
- "billing_cycle_anchor": 0,
- "expires_at": 0,
- "subscription_items": [
- {
- "id": "string"
}
], - "trial_end": 0,
- "trial_from_plan": true
}, - "status": "incomplete",
- "application": "string",
- "application_fee_percent": 100,
- "automatic_tax": {
- "enabled": true
}, - "billing_cycle_anchor": 0,
- "billing_thresholds": {
- "amount_gte": 0,
- "reset_billing_cycle_anchor": true
}, - "cancel_at": 0,
- "canceled_at": 0,
- "collection_method": "charge_automatically",
- "created": 0,
- "days_until_due": 0,
- "default_source": "string",
- "discount": {
- "id": "string"
}, - "ended_at": 0,
- "livemode": true,
- "next_pending_invoice_item_invoice": 0,
- "pause_collection": {
- "behavior": "string",
- "resumes_at": 0
}, - "pending_invoice_item_interval": {
- "interval": "day",
- "interval_count": 0
}, - "schedule": "string",
- "start_date": 0,
- "test_clock": "string",
- "transfer_data": {
- "amount_percent": 0,
- "destination": "string"
}, - "trial_end": 0,
- "trial_start": 0,
- "metadata": { },
- "default_tax_rates": [
- {
- "id": "string"
}
], - "items": [
- {
- "id": "string",
- "price": {
- "id": "string"
}, - "plan": {
- "id": "string"
}, - "quantity": 0,
- "billing_thresholds": { },
- "created": 0,
- "tax_rates": [
- {
- "id": "string"
}
], - "metadata": { }
}
], - "plan": {
- "id": "string"
}, - "payment_settings": {
- "payment_method_options": { },
- "payment_method_types": "string",
- "save_default_payment_method": "off"
}, - "cognito_user_id": "string",
- "origin": "platform"
}
}
Find and return the subscription with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "cancel_at_period_end": true,
- "currency": "str",
- "current_period_end": 0,
- "current_period_start": 0,
- "customer": "string",
- "default_payment_method": "string",
- "description": "string",
- "latest_invoice": "string",
- "pending_setup_intent": "string",
- "pending_update": {
- "billing_cycle_anchor": 0,
- "expires_at": 0,
- "subscription_items": [
- {
- "id": "string"
}
], - "trial_end": 0,
- "trial_from_plan": true
}, - "status": "incomplete",
- "application": "string",
- "application_fee_percent": 100,
- "automatic_tax": {
- "enabled": true
}, - "billing_cycle_anchor": 0,
- "billing_thresholds": {
- "amount_gte": 0,
- "reset_billing_cycle_anchor": true
}, - "cancel_at": 0,
- "canceled_at": 0,
- "collection_method": "charge_automatically",
- "created": 0,
- "days_until_due": 0,
- "default_source": "string",
- "discount": {
- "id": "string"
}, - "ended_at": 0,
- "livemode": true,
- "next_pending_invoice_item_invoice": 0,
- "pause_collection": {
- "behavior": "string",
- "resumes_at": 0
}, - "pending_invoice_item_interval": {
- "interval": "day",
- "interval_count": 0
}, - "schedule": "string",
- "start_date": 0,
- "test_clock": "string",
- "transfer_data": {
- "amount_percent": 0,
- "destination": "string"
}, - "trial_end": 0,
- "trial_start": 0,
- "metadata": { },
- "default_tax_rates": [
- {
- "id": "string"
}
], - "items": [
- {
- "id": "string",
- "price": {
- "id": "string"
}, - "plan": {
- "id": "string"
}, - "quantity": 0,
- "billing_thresholds": { },
- "created": 0,
- "tax_rates": [
- {
- "id": "string"
}
], - "metadata": { }
}
], - "plan": {
- "id": "string"
}, - "payment_settings": {
- "payment_method_options": { },
- "payment_method_types": "string",
- "save_default_payment_method": "off"
}, - "cognito_user_id": "string",
- "origin": "platform"
}
}
Find and update the subscription with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
The subscription that will be update
cancel_at_period_end | boolean |
default_payment_method | string |
description | string |
payment_behavior | string Enum: "allow_incomplete" "error_if_incomplete" "pending_if_incomplete" "default_incomplete" |
cancel_at | string <date-time-iso8601> |
collection_method | string Enum: "charge_automatically" "send_invoice" |
coupon | string |
days_until_due | integer |
promotion_code | string |
trial_end | string <date-time-iso8601> |
trial_from_plan | boolean |
id | string Item identifier |
clear_usage | boolean |
deleted | boolean |
Array of objects (Subscription-Item) |
{- "cancel_at_period_end": true,
- "default_payment_method": "string",
- "description": "string",
- "payment_behavior": "allow_incomplete",
- "cancel_at": "string",
- "collection_method": "charge_automatically",
- "coupon": "string",
- "days_until_due": 0,
- "promotion_code": "string",
- "trial_end": "string",
- "trial_from_plan": true,
- "id": "string",
- "clear_usage": true,
- "deleted": true,
- "items": [
- {
- "id": "string",
- "price": "string",
- "quantity": 1
}
]
}
{- "success": true,
- "result": {
- "id": "string",
- "cancel_at_period_end": true,
- "currency": "str",
- "current_period_end": 0,
- "current_period_start": 0,
- "customer": "string",
- "default_payment_method": "string",
- "description": "string",
- "latest_invoice": "string",
- "pending_setup_intent": "string",
- "pending_update": {
- "billing_cycle_anchor": 0,
- "expires_at": 0,
- "subscription_items": [
- {
- "id": "string"
}
], - "trial_end": 0,
- "trial_from_plan": true
}, - "status": "incomplete",
- "application": "string",
- "application_fee_percent": 100,
- "automatic_tax": {
- "enabled": true
}, - "billing_cycle_anchor": 0,
- "billing_thresholds": {
- "amount_gte": 0,
- "reset_billing_cycle_anchor": true
}, - "cancel_at": 0,
- "canceled_at": 0,
- "collection_method": "charge_automatically",
- "created": 0,
- "days_until_due": 0,
- "default_source": "string",
- "discount": {
- "id": "string"
}, - "ended_at": 0,
- "livemode": true,
- "next_pending_invoice_item_invoice": 0,
- "pause_collection": {
- "behavior": "string",
- "resumes_at": 0
}, - "pending_invoice_item_interval": {
- "interval": "day",
- "interval_count": 0
}, - "schedule": "string",
- "start_date": 0,
- "test_clock": "string",
- "transfer_data": {
- "amount_percent": 0,
- "destination": "string"
}, - "trial_end": 0,
- "trial_start": 0,
- "metadata": { },
- "default_tax_rates": [
- {
- "id": "string"
}
], - "items": [
- {
- "id": "string",
- "price": {
- "id": "string"
}, - "plan": {
- "id": "string"
}, - "quantity": 0,
- "billing_thresholds": { },
- "created": 0,
- "tax_rates": [
- {
- "id": "string"
}
], - "metadata": { }
}
], - "plan": {
- "id": "string"
}, - "payment_settings": {
- "payment_method_options": { },
- "payment_method_types": "string",
- "save_default_payment_method": "off"
}, - "cognito_user_id": "string",
- "origin": "platform"
}
}
Find and cancel the subscription with the given id.
id required | string Example: 5d04051125d9852c71016793 Item identifier |
{- "success": true,
- "result": {
- "id": "string",
- "cancel_at_period_end": true,
- "currency": "str",
- "current_period_end": 0,
- "current_period_start": 0,
- "customer": "string",
- "default_payment_method": "string",
- "description": "string",
- "latest_invoice": "string",
- "pending_setup_intent": "string",
- "pending_update": {
- "billing_cycle_anchor": 0,
- "expires_at": 0,
- "subscription_items": [
- {
- "id": "string"
}
], - "trial_end": 0,
- "trial_from_plan": true
}, - "status": "incomplete",
- "application": "string",
- "application_fee_percent": 100,
- "automatic_tax": {
- "enabled": true
}, - "billing_cycle_anchor": 0,
- "billing_thresholds": {
- "amount_gte": 0,
- "reset_billing_cycle_anchor": true
}, - "cancel_at": 0,
- "canceled_at": 0,
- "collection_method": "charge_automatically",
- "created": 0,
- "days_until_due": 0,
- "default_source": "string",
- "discount": {
- "id": "string"
}, - "ended_at": 0,
- "livemode": true,
- "next_pending_invoice_item_invoice": 0,
- "pause_collection": {
- "behavior": "string",
- "resumes_at": 0
}, - "pending_invoice_item_interval": {
- "interval": "day",
- "interval_count": 0
}, - "schedule": "string",
- "start_date": 0,
- "test_clock": "string",
- "transfer_data": {
- "amount_percent": 0,
- "destination": "string"
}, - "trial_end": 0,
- "trial_start": 0,
- "metadata": { },
- "default_tax_rates": [
- {
- "id": "string"
}
], - "items": [
- {
- "id": "string",
- "price": {
- "id": "string"
}, - "plan": {
- "id": "string"
}, - "quantity": 0,
- "billing_thresholds": { },
- "created": 0,
- "tax_rates": [
- {
- "id": "string"
}
], - "metadata": { }
}
], - "plan": {
- "id": "string"
}, - "payment_settings": {
- "payment_method_options": { },
- "payment_method_types": "string",
- "save_default_payment_method": "off"
}, - "cognito_user_id": "string",
- "origin": "platform"
}
}