Create Customer
Create and manage customers within your integration.
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
Create a new customer profile with the specified information. Each customer must have a unique email address within your integration.
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.
Code Examples
Response
Rate Limits
Environment | Requests per minute |
---|---|
Test | 100 |
Production | 1000 |
Exceeding these limits will return a 429 Too Many Requests
response.
Idempotency
All POST requests support idempotency to prevent duplicate customer creation. Include an Idempotency-Key
header with a unique value for each request:
The same key will return the original response for duplicate requests within 24 hours.
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