latestOpenAPI 3.0.02026-08-1535120202.6 KB
f59881dadecd
Designations
Create a designation
Use this request to create a new designation in your account. Provide a name and an optional code. The designation is created in the account associated with the API key and returned with its details.
post/v1/designations
Request body
Example request
{
"name": "My Designation",
"code": "Code-1",
"livemode": true
}Response
On success, the API returns the created designation object.
Example response
{
"account": {
"code": "Code-1",
"id": "AXXXXXXX",
"name": "Example Account"
},
"code": "Code-1",
"created_at": "2024-01-01T00:00:00.000Z",
"id": "EXXXXXXX",
"is_default": true,
"name": "My Designation",
"updated_at": "2024-01-31T00:00:00.000Z"
}