Cancellation Reasons

Retrieve cancellation reason

get

Retrieve a specific cancellation reason by ID.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
chevron-right
200

Cancellation reason retrieved successfully

application/json
get
/api/v1/cancellation_reasons/{id}

Update cancellation reason

put

Update an existing cancellation reason.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Body

Input schema for creating or updating a cancellation reason

cancellation_typestring · enumRequired

Type of cancellation

Example: cancelPossible values:
extra_information_neededbooleanOptional

Whether extra information is needed for this cancellation reason

Default: false
orderintegerOptional

Order of display for the cancellation reason

Default: 100
subjectstring · max: 100Required

Subject/name of the cancellation reason

is_activebooleanOptional

Whether the cancellation reason is active

Default: true
send_to_remotebooleanOptional

Whether to send this reason to remote systems

send_to_omsbooleanOptional

Whether to send this reason to OMS

Responses
chevron-right
200

Cancellation reason updated successfully.

application/json
put
/api/v1/cancellation_reasons/{id}/

Delete cancellation reason

delete

Soft delete a cancellation reason by setting is_active to False.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
delete
/api/v1/cancellation_reasons/{id}/

No content

Partially update cancellation reason

patch

Partially update an existing cancellation reason.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Body

Input schema for creating or updating a cancellation reason

cancellation_typestring · enumRequired

Type of cancellation

Example: cancelPossible values:
extra_information_neededbooleanOptional

Whether extra information is needed for this cancellation reason

Default: false
orderintegerOptional

Order of display for the cancellation reason

Default: 100
subjectstring · max: 100Required

Subject/name of the cancellation reason

is_activebooleanOptional

Whether the cancellation reason is active

Default: true
send_to_remotebooleanOptional

Whether to send this reason to remote systems

send_to_omsbooleanOptional

Whether to send this reason to OMS

Responses
chevron-right
200

Cancellation reason partially updated successfully.

application/json
patch
/api/v1/cancellation_reasons/{id}/

List cancellation reasons

get

Retrieve a paginated list of all cancellation reasons with filtering support.

Authorizations
AuthorizationstringRequired
Query parameters
pageinteger · min: 1Optional

Specifies the page number of the current dataset

Default: 1
limitinteger · min: 1Optional

Indicates the number of rows on the current page.

Default: 10
created_datestring · date-timeOptional

Filter by creation date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).

Example: created_date__gt=2024-01-01T00:00:00Z
modified_datestring · date-timeOptional

Filter by modification date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).

Example: modified_date__lt=2024-01-01T00:00:00Z
uuidstringOptional

Filter by UUID.

Example: 123e4567-e89b-12d3-a456-426614174000
cancellation_typestring · enumOptional

Filter by cancellation type

Possible values:
is_activebooleanOptional

Filter by active status (True or False)

send_to_omsbooleanOptional

Filter by send to OMS flag

send_to_remotebooleanOptional

Filter by send to remote flag

subjectstringOptional

Filter by subject

extra_information_neededbooleanOptional

Filter by extra information needed flag

orderintegerOptional

Filter by order display field

pkintegerOptional

Filters by primary key

pk__gtstringOptional

Filter by primary key greater than a specific value.

pk__gteintegerOptional

Filters by primary key greater than or equal to the given value

pk__ltintegerOptional

Filters by primary key less than the given value

pk__lteintegerOptional

Filters by primary key less than or equal to the given value

pk__ininteger[]Optional

Filter by multiple primary key values (comma-separated list of integers)

Responses
chevron-right
200

A paginated list of cancellation reasons.

application/json
get
/api/v1/cancellation_reasons/

Create cancellation reason

post

Create a new cancellation reason.

Authorizations
AuthorizationstringRequired
Body

Input schema for creating or updating a cancellation reason

cancellation_typestring · enumRequired

Type of cancellation

Example: cancelPossible values:
extra_information_neededbooleanOptional

Whether extra information is needed for this cancellation reason

Default: false
orderintegerOptional

Order of display for the cancellation reason

Default: 100
subjectstring · max: 100Required

Subject/name of the cancellation reason

is_activebooleanOptional

Whether the cancellation reason is active

Default: true
send_to_remotebooleanOptional

Whether to send this reason to remote systems

send_to_omsbooleanOptional

Whether to send this reason to OMS

Responses
post
/api/v1/cancellation_reasons/

Last updated

Was this helpful?