curl --request POST \
--url https://api.momentco.io/billing/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '{
"external_reference": "UCR1234567890",
"name": "John Doe"
}'
{
"id": "bcus_H4jp6KnU5cPw263v1jyz4",
"external_reference": "UCR1234567890",
"name": "John Doe",
"email": "[email protected]",
"phone": "+27123456789",
"currency": "ZAR",
"balance": 2000,
"payment_rules": {
"min_amount": 100,
"max_amount": 1000000,
"underpayment_allowed": true,
"overpayment_allowed": false
},
"metadata": {
"customer_type": "premium",
"registration_source": "website"
}
}