Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a cancellation request

Creates a cancellation or return request for one order item on behalf of the authenticated account. The order item must belong to an order of that account; an order item of another customer is rejected with 406 (cancellation_request_100_2).

  • order_item, reason and cancellation_type are required. New requests always start in open status; a status sent in the body is ignored.

  • uuid is assigned by the server.

  • For refund, shipping_company is required when customers choose the carrier (EASY_RETURN_PACKAGE_STRATEGY), and pickup_address is required when CANCELLATION_REQUEST_ADDRESS_REQUIRED is on.

  • iban and holder_name are required for funds-transfer and pay-on-delivery orders when CANCELLATION_REQUEST_IBAN_NUMBER_REQUIRED is on.

  • Images are limited by CANCELLATION_REQUEST_MAX_IMAGE_COUNT_PER_ORDER_ITEM, MAX_IMAGE_DIMENSIONS and FILE_UPLOAD_MAX_MEMORY_SIZE.

  • Items that cannot be sold alone follow OFFER_MISCELLANEOUS_ATTRIBUTE_KEY; quantity follows ATTRIBUTE_KEY_FOR_MERGEABLE_ORDER_ITEM.

  • Customer messages follow NOTIFICATION_GATEWAY and PUSH_NOTIFICATION_ACTIVE (see Customer Notifications).

See Creation Rules in the Cancellation Requests section for the full list of checks. The response uses a different representation from the list and retrieve operations: status is a {value, label} object and reason is an identifier.

post
/cancellation_requests/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body
order_itemintegerRequired

Identifier of an order item of the authenticated account.

reasonintegerRequired

Identifier of the cancellation reason.

cancellation_typestring · enumRequired

The type of a cancellation request. See Request Types in the Cancellation Requests section.

Possible values:
descriptionstring · nullableOptional

Required when the reason requires extra information.

ibanstring · max: 34 · nullableOptional

Required for funds-transfer and pay-on-delivery orders when CANCELLATION_REQUEST_IBAN_NUMBER_REQUIRED is on.

holder_namestring · max: 255 · nullableOptional

Required together with iban.

shipping_companyintegerWrite-onlyOptional

Identifier of an active easy-return shipping company. Required for refund when EASY_RETURN_PACKAGE_STRATEGY is the selection-based strategy.

pickup_addressinteger · nullableWrite-onlyOptional

Identifier of an active customer address of the authenticated account. Required for refund when CANCELLATION_REQUEST_ADDRESS_REQUIRED is on.

quantityinteger · min: 1 · nullableOptional

The quantity to cancel. Stored only for products whose order items can be merged (ATTRIBUTE_KEY_FOR_MERGEABLE_ORDER_ITEM), and then may not exceed the ordered quantity; otherwise ignored.

fully_refund_as_loyalty_moneyboolean · nullableOptionalDefault: false
Responses
201

The cancellation request was created.

application/json

A cancellation request as returned by the create and bulk create operations. Differs from CancellationRequest: status is a {value, label} object, reason is an identifier, and the easy-return record uses {value, label} objects and a nested provider.

idintegerOptional
uuidstring · uuidOptional
order_itemintegerOptional
reasonintegerOptional

Identifier of the cancellation reason.

descriptionstring · nullableOptional
cancellation_typestring · enumOptional

The type of a cancellation request. See Request Types in the Cancellation Requests section.

Possible values:
ibanstring · nullableOptional
holder_namestring · nullableOptional
quantityinteger · nullableOptional
fully_refund_as_loyalty_moneyboolean · nullableOptional
pickup_datenullOptional

Always null.

created_datestring · date-timeOptional
modified_datestring · date-timeOptional
post/cancellation_requests/
POST /api/v1/remote/1/cancellation_requests/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 297

{
  "order_item": 1024,
  "reason": 3,
  "cancellation_type": "refund",
  "description": "The product arrived damaged.",
  "shipping_company": 2,
  "cancellation_request_image_set": [
    {
      "image": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
      "description": "Damaged box"
    }
  ]
}
{
  "id": 8,
  "uuid": "5e29c91a-ccae-4bac-be53-cdaf5aa8ffa8",
  "order_item": 1024,
  "reason": 3,
  "description": "The product arrived damaged.",
  "cancellation_type": "cancel",
  "status": {
    "value": "open",
    "label": "Open"
  },
  "iban": null,
  "holder_name": null,
  "quantity": null,
  "fully_refund_as_loyalty_money": false,
  "easy_return": null,
  "pickup_date": null,
  "cancellation_request_image_set": [],
  "created_date": "2026-09-29T12:27:32.431164Z",
  "modified_date": "2026-09-29T12:27:32.431183Z"
}

Last updated

Was this helpful?