Creates a new account for an existing or new customer.
Accounts provide sub-organization within customer billing, allowing for separate balance tracking and payment rules.
Authentication using Bearer tokens. Include your API key in the Authorization header.
Key Types:
sk_test_* for development and testingsk_* for production environmentspk_test_* or pk_* for client-side operations📩 Need access? Contact Support to request your API keys.
Usage:
Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dcA unique key to prevent duplicate operations. Use the same key for retries to ensure idempotent behavior.
Best Practices:
Idempotent-Replayed header for cache hits1 - 255Request payload for creating a new account
Customer association for the account. Can be an existing customer ID, external reference, or a new customer object.
"bcus_H4jp6KnU5cPw263v1jyz4"
External reference for reconciliation or tracking purposes. Must be unique within your merchant account.
255"INV-2024-001"
Name for the account
255"Subscription Account"
The ISO 4217 currency code for the payment.
"ZAR"
Current balance of the entity. If balance is negative, the entity has credit; if positive, the entity owes this amount. If not specified, no balance tracking.
The value is in the smallest currency unit (e.g., cents for ZAR).
Note: If balance is specified, the currency field must also be provided.
2000
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. NEW Limitations:
{
"customer_id": "cust_123456",
"order_id": "ord_789012"
}Account created successfully
An account represents a sub-organization within a customer for separate balance tracking and payment management.
Unique identifier for an account
"bacc_H4jp6KnU5cPw263v1jyz4"
External reference for reconciliation or tracking purposes. Must be unique within your merchant account.
255"INV-2024-001"
Unique identifier for a customer
"bcus_H4jp6KnU5cPw263v1jyz4"
Name for the account
255"Subscription Account"
The ISO 4217 currency code for the payment.
"ZAR"
Current balance of the entity. If balance is negative, the entity has credit; if positive, the entity owes this amount. If not specified, no balance tracking.
The value is in the smallest currency unit (e.g., cents for ZAR).
Note: If balance is specified, the currency field must also be provided.
2000
Payment rules associated with the entity. If not specified, the entity cannot be paid against.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. NEW Limitations:
{
"customer_id": "cust_123456",
"order_id": "ord_789012"
}