Billing
Create customer
post/customers/
Request
- Base URLhttps://api.piriod.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
x-simple-workspacestring required
Workspace (account) identifier. Required for every request.
x-piriod-test-modeboolean
Whether to operate against test-mode data. Defaults to false.
Request body
Response
Customer created.
Example response
{
"id": "cus_01H8XYZ123ABC",
"country": {
"id": "CL",
"name": "Chile",
"code": "+56",
"currencies": [
"CLP"
]
},
"state": {
"country": "CL"
},
"currency": "CLP",
"contacts": [
{
"id": "con_01H8XYZ123ABC"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.