Create a customer
Changed onCreate a customer to invoice. See Customers.
post/v2/customers
Request
- Base URLhttps://api.slash.com
- URLhttps://api.slash.com/v2/customers
- AuthAPI key in header X-API-Key
Headers
X-Idempotency-Keystring required
Unique caller-generated key for one create request. Once an authenticated, schema-valid request reaches the operation, the key is permanently consumed for that operation and legal entity whether the operation succeeds or fails. Reusing it in that scope returns 409 and never replays a response, unlike API v1, which replays the original response for a matching key.
Request body
Response
The created customer.
Example response
{
"id": "le_cus_2rj4l7hmrrrcv",
"name": "Acme Robotics",
"email": "ap@acme.example",
"phone": "+14155550123"
}Changes
- info
endpoint added
- info