Create a Customer
Creates a new customer for billing and account management purposes.
Customers serve as the primary entity for organizing accounts and bills within the billing system.
Documentation Index
Fetch the complete documentation index at: https://docs.momentco.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Authentication using Bearer tokens. Include your API key in the Authorization header.
Key Types:
- Test Keys:
sk_test_*for development and testing - Live Keys:
sk_*for production environments - Public Keys:
pk_test_*orpk_*for client-side operations
📩 Need access? Contact Support to request your API keys.
Usage:
Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dcHeaders
A unique key to prevent duplicate operations. Use the same key for retries to ensure idempotent behavior.
Best Practices:
- Use UUIDs or other cryptographically unique identifiers
- Maintain keys for at least 24 hours for retry scenarios
- Use different keys for different operations
- Monitor
Idempotent-Replayedheader for cache hits
1 - 255^[a-zA-Z0-9-]+$Body
Request payload for creating a new customer
External reference for reconciliation or tracking purposes. Must be unique within your merchant account.
255^[a-zA-Z0-9_-]+$"INV-2024-001"
The customer's full name or business name
255"John Doe"
The customer's email address
255"john.doe@example.com"
The customer's phone number in E.164 format
^\+[1-9]\d{1,14}$"+27123456789"
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:
- Maximum 20 keys
- Key names must be strings (max 40 characters)
- Values must be strings (max 500 characters)
{
"customer_id": "cust_123456",
"order_id": "ord_789012"
}Response
Customer created successfully
A customer represents an individual or business entity that can have accounts and bills within the billing system.
Unique identifier for a customer
^bcus_[a-zA-Z0-9]+$"bcus_H4jp6KnU5cPw263v1jyz4"
External reference for reconciliation or tracking purposes. Must be unique within your merchant account.
255^[a-zA-Z0-9_-]+$"INV-2024-001"
The customer's full name or business name
255"John Doe"
The customer's email address
255"john.doe@example.com"
The customer's phone number in E.164 format
^\+[1-9]\d{1,14}$"+27123456789"
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:
- Maximum 20 keys
- Key names must be strings (max 40 characters)
- Values must be strings (max 500 characters)
{
"customer_id": "cust_123456",
"order_id": "ord_789012"
}
