List all customers
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
string The email to search for | |
country | string The country code to search for |
reference | string The reference to search for |
external_reference | string The external reference to search for |
company_name | string The company name to search for |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Create a customer
id | string <uuid> |
email required | string |
tax_number | string or null The tax number for the customer Since 1.1 |
standard_tax_rate | float or null The tax rate for the customer on for standard services a Since 1.1 |
digital_tax_rate | float or null The tax rate for the customer on digital services Since 1.1 |
billing_type | string or null Enum: "card" "invoice" Choice between card and invoice |
type | string or null Enum: "individual" "business" Choice between 'individual' and 'business'. When not provided 'individual' is used. Since 1.1 |
reference | string |
external_reference | string |
object (Address) | |
locale | string or null Defaults to 'en' if not sent. |
brand | string or null Defaults to 'default' if not sent. |
invoice_format | string or null Enum: "pdf" "xrechnung" Choice between 'pdf' and 'xrechnung'. Since 2024.02.01 |
marketing_opt_in | boolean or null If the customer has opted in for marketing |
metadata | object Any metadata you want to add to a customer |
{- "email": "iain.cambridge@example.org"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}
Info for a specific customer
customerId required | string The id of the customer to retrieve |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}
Update a customer
customerId required | string The id of the customer to retrieve |
id | string <uuid> |
email required | string |
tax_number | string or null The tax number for the customer Since 1.1 |
standard_tax_rate | float or null The tax rate for the customer on for standard services a Since 1.1 |
digital_tax_rate | float or null The tax rate for the customer on digital services Since 1.1 |
billing_type | string or null Enum: "card" "invoice" Choice between card and invoice |
type | string or null Enum: "individual" "business" Choice between 'individual' and 'business'. When not provided 'individual' is used. Since 1.1 |
reference | string |
external_reference | string |
object (Address) | |
locale | string or null Defaults to 'en' if not sent. |
brand | string or null Defaults to 'default' if not sent. |
invoice_format | string or null Enum: "pdf" "xrechnung" Choice between 'pdf' and 'xrechnung'. Since 2024.02.01 |
marketing_opt_in | boolean or null If the customer has opted in for marketing |
metadata | object Any metadata you want to add to a customer |
{- "email": "iain.cambridge@example.org"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}
Apply Voucher to Customer
customerId required | string The id of the customer to retrieve |
code required | string |
{- "code": "vouch50"
}
{- "code": 0,
- "message": "string"
}
The estimated costs from usage based billing for a customer
customerId required | string The id of the customer to retrieve |
{- "costs": [
- {
- "name": "metric",
- "amount": 10000,
- "currency": "USD",
- "usage": 1434.33
}
], - "cost": {
- "amount": 10000,
- "currency": "USD"
}
}
Get the manage link for the customer portal
customerId required | string The id of the customer to retrieve |
{- "token": "27cd18da18bcf7ef953070884fdfefcb7c229a4d56f7f5abec495e540fd5563f",
}
Limits for a specific customer
customerId required | string The id of the customer to retrieve |
{- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "user_count": 0
}
List Customer Refund
customerId required | string The id of the customer to retrieve |
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
name | string The name to search for |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "comment": "Customer thought they cancelled but had not",
- "status": "started",
- "created_at": "string",
- "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "status": "pending",
- "created_at": "string",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "receipts": [
- {
- "created_at": "string",
- "id": "string",
- "valid": true
}
]
}, - "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "billing_admin": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "BillingMesiter"
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List Customer Payment
customerId required | string The id of the customer to retrieve |
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
name | string The name to search for |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "status": "pending",
- "created_at": "string",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "receipts": [
- {
- "created_at": "string",
- "id": "string",
- "valid": true
}
]
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Usage Limits for a specific customer
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": "SaaS",
- "action": "WARNING"
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Create Usage Limit for the custoemr
customerId required | string The id of the customer to retrieve |
amount required | integer |
action required | string Enum: "WARNING" "DISABLE" |
{- "amount": 2000,
- "action": "WARNING"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": "SaaS",
- "action": "WARNING"
}
List Customer Invoices
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": 1023045,
- "currency": "USD",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "tax_total": 0,
- "sub_total": 0,
- "amount_due": 0,
- "paid": true,
- "created_at": "string",
- "paid_at": "string",
- "due_date": "string",
- "biller_address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "payeeaddress": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "lines": [
- {
- "description": "string",
- "currency": "string",
- "total": 0,
- "sub_total": 0,
- "tax_total": 0,
- "tax_rate": 0
}
]
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List all customers
Added in version 1.1
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "default": true,
- "brand": "visa",
- "last_four": 484,
- "expiry_month": 1,
- "expiry_year": 26,
- "created_at": "string"
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List all customer subscriptions
Since 1.1
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List all Active customer subscriptions
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Adds seats to a per seat subscription
Since 1.1.4
subscriptionId required | string The id of the subscription to retrieve |
seats required | integer |
{- "seats": 2
}
{- "success": true
}
Remove seats to a per seat subscription
Since 1.1.4
subscriptionId required | string The id of the subscription to retrieve |
seats required | integer |
{- "seats": 2
}
{- "success": true
}
The estimated costs from usage based billing for a customer
customerId required | string The id of the customer to retrieve |
{- "costs": [
- {
- "name": "metric",
- "amount": 10000,
- "currency": "USD",
- "usage": 1434.33
}
], - "cost": {
- "amount": 10000,
- "currency": "USD"
}
}
Usage Limits for a specific customer
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": "SaaS",
- "action": "WARNING"
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Create Usage Limit for the custoemr
customerId required | string The id of the customer to retrieve |
amount required | integer |
action required | string Enum: "WARNING" "DISABLE" |
{- "amount": 2000,
- "action": "WARNING"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": "SaaS",
- "action": "WARNING"
}
Creates an event that is used for usage billing
event_id required | string <uuid> |
subscription required | string <uuid> |
properties | object |
value required | float |
code required | string |
{- "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "value": 1,
- "code": "code_one"
}
{- "code": 0,
- "message": "string"
}
List Customer Refund
customerId required | string The id of the customer to retrieve |
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
name | string The name to search for |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "comment": "Customer thought they cancelled but had not",
- "status": "started",
- "created_at": "string",
- "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "status": "pending",
- "created_at": "string",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "receipts": [
- {
- "created_at": "string",
- "id": "string",
- "valid": true
}
]
}, - "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "billing_admin": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "BillingMesiter"
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List all refund
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
name | string The name to search for |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "comment": "Customer thought they cancelled but had not",
- "status": "started",
- "created_at": "string",
- "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "status": "pending",
- "created_at": "string",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "receipts": [
- {
- "created_at": "string",
- "id": "string",
- "valid": true
}
]
}, - "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "billing_admin": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "BillingMesiter"
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Info for a specific Refund
refundId required | string The id of the refund |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "comment": "Customer thought they cancelled but had not",
- "status": "started",
- "created_at": "string",
- "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "status": "pending",
- "created_at": "string",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "receipts": [
- {
- "created_at": "string",
- "id": "string",
- "valid": true
}
]
}, - "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "billing_admin": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "BillingMesiter"
}
}
List Customer Payment
customerId required | string The id of the customer to retrieve |
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
name | string The name to search for |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "status": "pending",
- "created_at": "string",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "receipts": [
- {
- "created_at": "string",
- "id": "string",
- "valid": true
}
]
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List Customer Invoices
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": 1023045,
- "currency": "USD",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "tax_total": 0,
- "sub_total": 0,
- "amount_due": 0,
- "paid": true,
- "created_at": "string",
- "paid_at": "string",
- "due_date": "string",
- "biller_address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "payeeaddress": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "lines": [
- {
- "description": "string",
- "currency": "string",
- "total": 0,
- "sub_total": 0,
- "tax_total": 0,
- "tax_rate": 0
}
]
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List all payment
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
name | string The name to search for |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "status": "pending",
- "created_at": "string",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "receipts": [
- {
- "created_at": "string",
- "id": "string",
- "valid": true
}
]
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Issue a refund for payment
paymentId required | string The id of the payment |
amount required | integer |
currency | string or null Three-letter ISO currency code. Must be upper-case |
reason | string or null |
{- "amount": 1000
}
{- "code": 0,
- "message": "string"
}
List Customer Invoices
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": 1023045,
- "currency": "USD",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "tax_total": 0,
- "sub_total": 0,
- "amount_due": 0,
- "paid": true,
- "created_at": "string",
- "paid_at": "string",
- "due_date": "string",
- "biller_address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "payeeaddress": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "lines": [
- {
- "description": "string",
- "currency": "string",
- "total": 0,
- "sub_total": 0,
- "tax_total": 0,
- "tax_rate": 0
}
]
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Complete frontend payment details
customerId required | string The id of the customer to retrieve |
token required | string |
{- "token": "dummy-token-here"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "default": true,
- "brand": "visa",
- "last_four": 484,
- "expiry_month": 1,
- "expiry_year": 26,
- "created_at": "string"
}
Fetch the payment cards
paymentDetailsId required | string The id of the payment details |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "default": true,
- "brand": "visa",
- "last_four": 484,
- "expiry_month": 1,
- "expiry_year": 26,
- "created_at": "string"
}
List all customers
Added in version 1.1
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "default": true,
- "brand": "visa",
- "last_four": 484,
- "expiry_month": 1,
- "expiry_year": 26,
- "created_at": "string"
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Delete Payment Details
customerId required | string The id of the customer to retrieve |
paymentDetailsId required | string The id of the payment details |
{- "code": 0,
- "message": "string"
}
Create subscription for a customer
customerId required | string The id of the customer to retrieve |
subscription_plan required | string <uuid> The ID for the subscription plan to be used (Can also be the code name) |
payment_details | string <uuid> The Id for the customer's payment details to be used |
card_token | string A stripe card token that's been created using Stripe's js sdk. It'll create the payment details for the customer. |
price | string <uuid> The ID for the price to be used |
schedule | string Enum: "week" "month" "year" "one-off" The schedule of the plan that is to be started. Only used if price isn't given. Requires currency as well. |
currency | string The currency of the plan that is to be started. Only used if price isn't given. Requires schedule as well. |
seat_numbrers | integer |
deny_trial | bool |
metadata | object Any metadata you want to add to a subscription |
{- "subscription_plan": "540c4716-c550-4c8b-8ccc-e0378e695ce2"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
Start subscription for a customer
customerId required | string The id of the customer to retrieve |
subscription_plan required | string <uuid> The ID for the subscription plan to be used (Can also be the code name) |
card_token | string A stripe card token that's been created using Stripe's js sdk. It'll create the payment details for the customer. |
seat_numbrers | integer or null |
trial_length_days | integer or null |
{- "subscription_plan": "540c4716-c550-4c8b-8ccc-e0378e695ce2"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
List all customer subscriptions
Since 1.1
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List all Active customer subscriptions
customerId required | string The id of the customer to retrieve |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List all subscriptions
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
List all subscriptions plans
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Info for a specific subscription
subscriptionId required | string The id of the subscription to retrieve |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
Adds seats to a per seat subscription
Since 1.1.4
subscriptionId required | string The id of the subscription to retrieve |
seats required | integer |
{- "seats": 2
}
{- "success": true
}
Remove seats to a per seat subscription
Since 1.1.4
subscriptionId required | string The id of the subscription to retrieve |
seats required | integer |
{- "seats": 2
}
{- "success": true
}
Info for a specific subscription
subscriptionId required | string The id of the subscription to retrieve |
when required | string Default: "end-of-run" Enum: "end-of-run" "instantly" "specific-date" |
refund_type required | string Default: "none" Enum: "none" "full" "prorate" |
date | string <date> |
comment | string or null |
{- "when": "end-of-run",
- "refund_type": "none"
}
{- "code": 0,
- "message": "string"
}
Extend a trial subscription so it's converted from a trial to a normal subscription.
subscriptionId required | string The id of the subscription to retrieve |
price required | uuid |
{- "price": null
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
Change the subscription plan for a customer
subscriptionId required | string The id of the subscription to retrieve |
when required | string Enum: "instantly" "next-cycle" |
plan required | string <uuid> The ID for the subscription plan to be used |
price required | string <uuid> The ID for the price to be used |
{- "when": "instantly",
- "plan": "c685f150-7cb7-436f-9700-386be171480b",
- "price": "296c3962-8fad-4bbf-a476-e2a5d4fe62a6"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "seat_number": 1,
- "schedule": "month",
- "status": "string",
- "created_at": "string",
- "updated_at": "string",
- "ended_at": "string",
- "valid_until": "string",
- "main_external_reference": "string",
- "child_external_reference": "string",
- "metadata": { },
- "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}
}
Changes the price being used for a price. Useful for changing pricing schedule or just price.
subscriptionId required | string The id of the subscription to retrieve |
price required | uuid |
when required | string Enum: "next_cycle" "instantly" |
{- "price": null,
- "when": "next_cycle"
}
{- "success": true
}
List all products
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
name | string The name to search for |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Create a product
id | string <uuid> |
name required | string |
external_reference | string or null The reference given by the payment provider |
object |
{- "name": "string"
}
{- "code": 0,
- "message": "string"
}
Info for a specific product
productId required | string The id of the product to retrieve |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}
Update a product
productId required | string The id of the product to retrieve |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}
List all prices
productId required | string The id of the product to retrieve |
limit | integer <int32> How many items to return at one time (max 100) |
last_key | string The key to be used in pagination to say what the last key of the previous page was |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "has_more": true,
- "last_key": "dc625535-d212-4c71-bf5c-662190b1b4de"
}
Create a price
productId required | string The id of the product to retrieve |
amount required | integer |
currency required | string Three-letter ISO currency code. Must be upper-case |
external_reference | string or null |
recurring required | boolean |
schedule | string or null Enum: "week" "month" "year" "one-off" Required if recurring is true |
including_tax | boolean or null If the price is including tax. If false tax will be added on top of the price. |
public | boolean or null |
object (Metric) |
{- "amount": 1000,
- "currency": "EUR",
- "recurring": false
}
{- "code": 0,
- "message": "string"
}
Create checkout
Since 2024.01
name | string |
brand required | string |
slug | string |
customer required | string |
Array of objects | |
Array of objects |
{- "brand": "string",
- "customer": "string"
}
{- "id": null,
- "name": "string",
- "currency": "string",
- "customer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "iain.cambridge@example.org",
- "tax_number": "GB459324",
- "standard_tax_rate": "15",
- "digital_tax_rate": "19.5",
- "billing_type": "card",
- "type": "business",
- "reference": "internal-id",
- "external_reference": "string",
- "address": {
- "company_name": "Humbly Arrogant",
- "street_line_one": "string",
- "street_line_two": "string",
- "city": "string",
- "region": "string",
- "country": "GB",
- "postcode": "string"
}, - "locale": "en",
- "brand": "default",
- "invoice_format": "pdf",
- "marketing_opt_in": true,
- "metadata": { }
}, - "billing_admin": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "BillingMesiter"
}, - "total": 0,
- "sub_total": 0,
- "tax_total": 0,
- "lines": [
- {
- "subscription_plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Plany McPlanFace",
- "code_name": "mcplanface",
- "user_count": 10,
- "per_seat": false,
- "has_trial": true,
- "is_trial_standalone": true,
- "free": false,
- "public": true,
- "limits": [
- {
- "feature": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}, - "limit": 30
}
], - "features": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Glitter Bombs",
- "code": "glitter_bombs",
- "description": "Send your enemies glitter bombs"
}
], - "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "external_reference": "string",
- "tax_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "SaaS",
- "default": true
}
}, - "prices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}
], - "trial_length_days": 0
}, - "price": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 1000,
- "currency": "EUR",
- "external_reference": "string",
- "recurring": false,
- "schedule": "week",
- "including_tax": true,
- "public": true,
- "metric": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Revenue",
- "code": "code_one",
- "aggregation_method": "count",
- "aggregation_property": "string",
- "filters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Cool Stuff",
- "code": "cool_stuff",
- "value": "is_totally_cool",
- "type": "inclusive"
}
]
}
}, - "description": "string",
- "currency": "string",
- "seat_number": 0,
- "sub_total": 0,
- "tax_total": 0,
- "tax_rate": 0
}
]
}