Create a customer
POST/api/v1/workspaces/:workspace_id/customers
Creates a new customer in the specified workspace
Request
Responses
- 201
- 401
- 403
- 422
The customer was created as a party in the workspace's directory and is returned in full, including its addresses and contacts.
The request is missing a bearer token, or the token is invalid or expired.
The OAuth application's token is valid, but the application has no access grant for the requested workspace, or no such workspace exists.
The customer payload failed validation (for example an invalid SIRET or VAT identifier); the response body lists each invalid attribute and the reason under errors.