Skip to main content
POST
/
v1
/
businesses
/
{businessId}
/
customFields
Create Custom Field
curl --request POST \
  --url https://api.cadanapay.com/v1/businesses/{businessId}/customFields \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    "T-shirt Size",
    "Desk Number"
  ]
}
'
{
  "data": [
    {
      "id": "8ef9a712-cdae-4110-b1ea-9ba95abbee6e",
      "name": "Tshirt Size",
      "value": "M"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-MultiTenantKey
string

Required when using a Platform API token. The tenant key identifying which business to operate on.

Path Parameters

businessId
string
required

The unique identifier for the business

Body

application/json
data
string[]
Example:
["T-shirt Size", "Desk Number"]

Response

create custom fields response

data
object[]