Skip to main content
POST
/
billing
/
accounts
curl --request POST \
--url https://api.momentco.io/billing/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '{
"customer": "bcus_H4jp6KnU5cPw263v1jyz4",
"external_reference": "UAR1234567890",
"name": "Subscription Account",
"currency": "ZAR",
"balance": 2000,
"metadata": {
"account_type": "subscription",
"billing_cycle": "monthly"
}
}'
{
"id": "bacc_H4jp6KnU5cPw263v1jyz4",
"external_reference": "UAR1234567890",
"customer_id": "bcus_H4jp6KnU5cPw263v1jyz4",
"name": "Subscription Account",
"currency": "ZAR",
"balance": 2000,
"payment_rules": {
"min_amount": 100,
"max_amount": 500000,
"underpayment_allowed": true,
"overpayment_allowed": false
},
"metadata": {
"account_type": "subscription",
"billing_cycle": "monthly"
}
}

Authorizations

Authorization
string
header
required

Headers

Idempotency-Key
string<uuid>
required
Required string length: 1 - 255

Body

application/json
customer
required
Example:
external_reference
string
required
Maximum length: 255
Example:
name
string
Maximum length: 255
Example:
currency
string
Example:
balance
integer
Example:
metadata
object
Example:

Response

id
string
required
Example:
external_reference
string
required
Maximum length: 255
Example:
customer_id
string
required
Example:
name
string
Maximum length: 255
Example:
currency
string
Example:
balance
integer
Example:
payment_rules
object
metadata
object
Example: