API ReferenceCancellation reasons

Create cancellation reason

Create a new cancellation reason in the account.

POST
/v1/cancellation_reasons

Authorization

authorization
AuthorizationBearer <token>

In: header

Request Body

application/json

Cancellation reason params

TypeScript Definitions

Use the request body type in TypeScript.

Request schema for creating a cancellation reason

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/cancellation_reasons" \  -H "Content-Type: application/json" \  -d '{    "name": "I\'m no longer interested"  }'
{  "data": {    "id": "cr_a1b2c3d4e5f6",    "name": "Distance too far",    "object": "cancellation_reason",    "sort_order": 1  }}