Overview
The Customers API enables you to create and manage customer profiles for your integration. Each customer object includes personal information, contact details, and billing information that can be referenced in future transactions.Create a Customer
Ensure phone numbers match the billing address country format. For example, Nigerian phone numbers (+234) should have a Nigerian billing address.
Request Parameters
Customer’s first name.
- Maximum length: 100 characters
- Must contain only letters, spaces, hyphens, and apostrophes
Customer’s last name.
- Maximum length: 100 characters
- Must contain only letters, spaces, hyphens, and apostrophes
Customer’s email address.
- Must be a valid email format
- Must be unique within your integration
Customer’s phone number in E.164 format.
- Must include country code
- Must be a valid number for the billing address country
- Example: +2348012345678
Customer’s billing address information.
Must be of
business
or individual
Code Examples
Response
Rate Limits
Environment | Requests per minute |
---|---|
Test | 100 |
Production | 1000 |
429 Too Many Requests
response.
Idempotency
All POST requests support idempotency to prevent duplicate customer creation. Include anIdempotency-Key
header with a unique value for each request:
Best Practices
-
Validation
- Validate email formats before sending
- Ensure phone numbers match country codes
- Use proper character encoding for names
-
Error Handling
- Implement retry logic with exponential backoff
- Handle validation errors gracefully
- Check for duplicate customers before creation
-
Security
- Use HTTPS for all API calls
- Keep API keys secure
- Implement proper access controls
Need help?
For support with customer creation:
- Check our Error Handling Guide
- Contact support@juicyway.com