Customers
Create a new customer
Creates a new customer for a business. phone is validated against countryCode and stored in E.164 format. If you post the email of a customer that was previously deleted, that customer is reactivated (its stored countryCode is kept) and the call still returns 201.
post/api/v1/customer
Request
- Base URLhttps://sandbox.api.afriex.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+2348192837465",
"countryCode": "NG"
}Response
Customer created successfully. Returns the newly created customer object.
Changes
No recorded changes to this operation across all 1 revision of this API.