> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/admin/orders/cancellation-requests/create-several-cancellation-requests.md).

# Create several cancellation requests

Creates one cancellation request per item of `cancel_order_items` in a single transaction — if one item fails a rule, no request is created. Every order item must belong to an order of the authenticated account.

* `cancel_order_items` must contain at least one item, and an order item may appear only once (`406`, `cancellation_request_100_7`).
* `fully_refund_as_loyalty_money` is applied to every created request, and `pickup_address` is used for every `refund` item.
* Each item is checked against the same **Creation Rules** as a single create. Use this operation to cancel an item that cannot be sold alone together with its main product (`OFFER_MISCELLANEOUS_ATTRIBUTE_KEY`).
* Customer messages (see **Customer Notifications**) are sent only for `refund` items.
* The operation is rate-limited per account by the `cancellation-request-bulk-create` scope of `THROTTLING_SETTINGS` (default 1 request per 5 seconds); requests over the limit are rejected with `429`.

```json
{"openapi":"3.1.0","info":{"title":"Admin API","version":"1.0.0"},"tags":[{"name":"Cancellation Requests","description":"Administrative endpoints for **cancellation requests** — requests to cancel (before shipment) or return (after shipment) a single order item. Customers open these requests on the storefront; Omnitron uses these endpoints to list them, move them through their lifecycle and reject easy-return requests.\n\nEvery endpoint identifies a cancellation request by its `uuid`, not by its numeric `id`. Requests that belong to an order whose status is `200` (`waiting`) — an order whose payment has not been confirmed yet — are hidden from every operation: they are not listed, and retrieving, updating, deleting or rejecting them answers with `404`.\n\n## Core Capabilities\n\n**1. Listing & Filtering**\n* Retrieve a paginated list of cancellation requests.\n* Filter by status, type, reason, order item, easy-return record, IBAN, holder name, description, quantity, loyalty refund flag, `uuid`, and creation or modification date.\n* Order results with the `sort` parameter. Without `sort` the results are returned in **random order**; send `sort` to get the same order on every page.\n\n**2. Retrieval**\n* Retrieve a single cancellation request with its reason, easy-return record and images embedded.\n* `/cancellation_requests/{uuid}/detailed/` returns the same representation as the retrieve operation.\n\n**3. Lifecycle Update**\n* Update a request's `status` or move it to another `order_item`. These are the only two fields that are saved; the other fields in the request body are validated and left unchanged.\n* Any status value can be set directly. No notification is sent for an update.\n\n**4. Easy-Return Rejection**\n* Reject an easy-return (refund) request with `POST /cancellation_requests/{uuid}/reject_cancellation/`. The return code is cancelled at the carrier and the rejection is forwarded to Omnitron.\n\n**5. Creation**\n* Create a single request or several requests of one order at once (`/bulk_create/`).\n* Creation always happens **on behalf of the authenticated account**: the order item must belong to an order of that account; otherwise the request is rejected with `406` (`cancellation_request_100_2`). An administrator therefore cannot open a request for a customer's order item through these endpoints.\n\n**6. Deletion**\n* Delete a cancellation request. Deletion is permanent.\n\n## Request Statuses\n\n| Value | Description |\n|-------|-------------|\n| `open` | The request has been created and not yet processed. New requests always start here. |\n| `waiting` | The request is waiting to be processed. |\n| `confirmation_waiting` | The request is waiting for confirmation. |\n| `confirmed` | The request has been confirmed. |\n| `waiting_approval` | The request is waiting for approval. |\n| `approved` | The request has been approved. |\n| `rejected` | The request has been rejected. A rejected request does not block a new request for the same order item. |\n| `waiting_for_payment` | The refund payment is pending. |\n| `manuel_refund_need` | The refund must be made manually. |\n| `completed` | The request has been completed. |\n\n## Request Types\n\n| Value | Description |\n|-------|-------------|\n| `cancel` | Cancels an order item that has not been shipped. The item must be in a status between `200` (`waiting`) and `450` (`preparing`) and must not have an invoice number; otherwise the request is rejected with `406` (`cancellation_request_100_6`). |\n| `refund` | Returns an order item, typically after it has been shipped. An easy-return record (a return code at a carrier) is created with the request when the site's easy-return configuration allows it. If the code cannot be created (for example the carrier service fails), the request is not created and the whole create request is rolled back with `406`: the carrier integration's own error code is returned when it reports one (e.g. `yurtici_easy_return_100`), otherwise `cancellation_request_100_11`; the customer can send the request again. Only when `CREATE_CANCELLATION_WITHOUT_EASY_RETURN_ON_ERROR` is `true` is the error logged and the request created without an easy-return record (`easy_return` is `null`). |\n\n## Creation Rules\n\nA create request is rejected when one of the following rules is not met.\n\n| # | Rule | Response |\n|---|------|----------|\n| 1 | The order item belongs to an order of the authenticated account. | `406` `cancellation_request_100_2` |\n| 2 | The order item is not cancelled or refunded already. | `406` `cancellation_request_100_3` |\n| 3 | For `cancel`, the order item can still be cancelled (see **Request Types**). | `406` `cancellation_request_100_6` |\n| 4 | The order item has no other request that is not `rejected`. | `406` `cancellation_request_100_1` |\n| 5 | When IBAN collection is enabled (`CANCELLATION_REQUEST_IBAN_NUMBER_REQUIRED`) and the order was paid by funds transfer or pay on delivery, `iban` and `holder_name` are sent. | `406` `cancellation_request_100_5` |\n| 6 | When the reason requires extra information, `description` is sent. | `406` `cancellation_request_100_4` |\n| 7 | For `refund`, when a pickup address is required (`CANCELLATION_REQUEST_ADDRESS_REQUIRED`), `pickup_address` is sent. | `406` `cancellation_request_100_8` |\n| 8 | Products that cannot be sold alone and their main product are cancelled together (`OFFER_MISCELLANEOUS_ATTRIBUTE_KEY`). | `406` `cancellation_error_108` |\n\nThe following field checks answer with `400`:\n\n* `shipping_company` is required for `refund` when customers choose the carrier (`EASY_RETURN_PACKAGE_STRATEGY`), and must be an active easy-return shipping company.\n* `pickup_address` must be an active customer address of the authenticated account.\n* `quantity` must be at least `1`. For products whose order items can be merged (`ATTRIBUTE_KEY_FOR_MERGEABLE_ORDER_ITEM`), it may not exceed the ordered quantity and is stored on the request; for other products it is not stored and is returned as `null`.\n* The number, dimensions and file size of the images are limited (see **Dynamic Settings & Environment Variables**).\n\n## Customer Notifications\n\nAfter a request is created, the following messages are sent to the customer:\n\n| Message | When |\n|---------|------|\n| Cancellation SMS and e-mail | Scheduled 30 seconds after the request. Further requests of the same type for the same order within these 30 seconds do not schedule another message. |\n| Notification-gateway message | Scheduled the same way, only when `NOTIFICATION_GATEWAY` is set. |\n| Order status notification (`cancellation_waiting`) | Queued immediately, only when `PUSH_NOTIFICATION_ACTIVE` is on. |\n\n`/bulk_create/` sends these messages only for `refund` items.\n\n## Easy-Return Rejection\n\nA request can be rejected only when all of the following are true; otherwise the response is `406` (`cancellation_request_100_9`):\n\n* its type is `refund`,\n* its status is `open` or `waiting`,\n* it has an easy-return record linked to an easy-return shipping provider.\n\nOn success the request becomes `rejected`. The return code is cancelled at the carrier and the easy-return record becomes `cancelled`, unless another `open` or `waiting` request still shares the same return code — then the code is kept. If the carrier does not support remote cancellation, the code is cancelled on the Commerce side only. If the carrier fails to cancel the code, the rejection fails with `406` (`cancellation_request_100_9`) and nothing is changed.\n\nThe rejection is forwarded to Omnitron asynchronously after the response is sent.\n\n## Filtering & Ordering\n\n| Parameter | Match | Notes |\n|-----------|-------|-------|\n| `status` | Exact | One of the values under **Request Statuses**; any other value is rejected with `400`. |\n| `cancellation_type` | Exact | `cancel` or `refund`. |\n| `uuid` | Exact | An invalid UUID is rejected with `400`. |\n| `reason`, `order_item`, `easy_return` | Exact identifier | An identifier that does not exist is rejected with `400`. |\n| `iban`, `holder_name` | Case-insensitive partial match | Send `NULL_VALUE` to return only requests where the field is empty, or `NOT_NULL_VALUE` for requests where it is set. |\n| `description` | Exact | Partial values do not match. |\n| `quantity` | Exact | |\n| `fully_refund_as_loyalty_money` | Exact | `true` or `false`. |\n| `created_date`, `modified_date` | Exact | ISO 8601 date-time. |\n| `modified_date__gte`, `modified_date__lte` | Range | ISO 8601 date or date-time. |\n\nParameters that are not listed here — including `id` and `created_date__gte` — are ignored. Use the `sort` query parameter to order the results; prefix with `-` for descending.\n\n## Dynamic Settings & Environment Variables\n\nThe settings below affect only the create, bulk create and reject operations, except where noted. They do not change list, retrieve, update or delete responses.\n\n**Dynamic settings** (`dj_dynamic_settings`):\n\n| Key | Type | Default | Effect |\n|-----|------|---------|--------|\n| `CANCELLATION_REQUEST_ADDRESS_REQUIRED` | boolean | `false` (or the Django setting of the same name when defined) | When `true`, `refund` requests must include `pickup_address`; otherwise they are rejected with `406` (`cancellation_request_100_8`). The address must be an active customer address of the authenticated account. Affects `POST /cancellation_requests/` and `/bulk_create/`. |\n| `EASY_RETURN_PACKAGE_STRATEGY` | string, one of `omnishop.orders.strategies.RuleBasedEasyReturnPackageStrategy`, `omnishop.orders.strategies.SelectionBasedEasyReturnPackageStrategy` | `omnishop.orders.strategies.RuleBasedEasyReturnPackageStrategy` | How the carrier of an easy return is chosen. With the rule-based strategy the carrier is picked by product rules and `shipping_company` is optional. With the selection-based strategy the customer chooses the carrier, so `refund` requests without `shipping_company` are rejected with `400`. Affects `POST /cancellation_requests/` and `/bulk_create/`. |\n| `CANCELLATION_REQUEST_MAX_IMAGE_COUNT_PER_ORDER_ITEM` | integer | `3` | The maximum number of images in `cancellation_request_image_set` per order item. More images are rejected with `400`. |\n| `MAX_IMAGE_DIMENSIONS` | object `{\"width\": integer, \"height\": integer}` | `{\"width\": 2000, \"height\": 2000}` | Images must be smaller than these dimensions in pixels; an image whose width or height reaches the limit is rejected with `400`. |\n| `OFFER_MISCELLANEOUS_ATTRIBUTE_KEY` | string | `cannot_be_sold_alone` (or the Django setting of the same name when defined) | The product attribute that marks an offer product as not sellable on its own. Such an item cannot be cancelled without its main product, and a main product cannot be cancelled without all such items attached to it; either case is rejected with `406` (`cancellation_error_108`). Use `/bulk_create/` to cancel them together. |\n| `THROTTLING_SETTINGS` | object | `{}` (or the Django setting of the same name when defined) | Per-scope rate limits. The `cancellation-request-bulk-create` scope limits `/bulk_create/` per authenticated account; the built-in default is `{\"count\": 1, \"duration\": 5}` (1 request per 5 seconds). One request over the limit is tolerated; further requests are rejected with `429`. Requests are counted whether or not they succeed. |\n| `ATTRIBUTE_KEY_FOR_MERGEABLE_ORDER_ITEM` | string | `allow_mergeable_order_item` | The product attribute that marks products whose order items can be merged. For these products (when their stock unit is quantity), `quantity` is stored on the request and may not exceed the ordered quantity; for other products `quantity` is ignored and returned as `null`. |\n| `NOTIFICATION_GATEWAY` | string | `\"\"` (or the Django setting of the same name when defined) | When empty, no notification-gateway message is scheduled after a request is created. SMS and e-mail are scheduled regardless; their delivery follows the gateway and e-mail settings listed in the **Orders** section. |\n| `PUSH_NOTIFICATION_ACTIVE` | boolean | `false` (or the Django setting of the same name when defined) | When `true`, an order status notification (`cancellation_waiting`) is queued after a request is created. |\n| `CREATE_CANCELLATION_WITHOUT_EASY_RETURN_ON_ERROR` | boolean | `false` | What happens when the easy-return code of a `refund` request cannot be created. When `false`, nothing is saved and the request is rejected with `406` (the carrier integration's own error code, e.g. `yurtici_easy_return_100`, or `cancellation_request_100_11`); in `/bulk_create/` the whole request is rolled back. When `true`, the error is logged and the request is created without an easy-return record (`easy_return` is `null`). Affects `POST /cancellation_requests/` and `/bulk_create/`. |\n\n**Environment variables / Django settings:**\n\n| Setting | Default | Effect |\n|---------|---------|--------|\n| `CANCELLATION_REQUEST_IBAN_NUMBER_REQUIRED` | `false` (not defined) | When `true`, requests for orders paid by funds transfer or pay on delivery must include `iban` and `holder_name`; otherwise they are rejected with `406` (`cancellation_request_100_5`). |\n| `FILE_UPLOAD_MAX_MEMORY_SIZE` | `5242880` (5 MB) | The maximum size of a single image in `cancellation_request_image_set`. Larger images are rejected with `400`. |"}],"servers":[{"description":"Omnitron Remote Proxy (external access — recommended)","url":"https://{omnitron_url}/api/v1/remote/{channel_id}","variables":{"omnitron_url":{"default":"sandbox.akinon.com","description":"Omnitron server URL (e.g., {omnitron.akinon.com})"},"channel_id":{"default":"1","description":"The channel identifier the remote request is routed through"}}},{"description":"Commerce API Server (internal / direct access only)","url":"https://{commerce_url}/api/v1","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Internal commerce server URL, reachable only from within the Omnitron network"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token credential sent in the Authorization header, in the form: `Token <your-token>`. Requires a staff (admin) account."}},"schemas":{"CancellationRequestBulkCreateRequest":{"type":"object","required":["cancel_order_items"],"properties":{"cancel_order_items":{"type":"array","minItems":1,"description":"One item per order item to cancel. An order item may appear only once.","items":{"$ref":"#/components/schemas/CancellationRequestBulkCreateItem"}},"pickup_address":{"type":["integer","null"],"description":"Identifier of an active customer address of the authenticated account, used for all `refund` items."},"fully_refund_as_loyalty_money":{"type":"boolean","default":false,"description":"Applied to every created request."}}},"CancellationRequestBulkCreateItem":{"type":"object","required":["order_item","reason","cancellation_type"],"properties":{"order_item":{"type":"integer"},"reason":{"type":"integer"},"cancellation_type":{"$ref":"#/components/schemas/CancellationRequestTypeValue"},"description":{"type":["string","null"]},"iban":{"type":["string","null"],"maxLength":34},"holder_name":{"type":["string","null"],"maxLength":255},"shipping_company":{"type":"integer","writeOnly":true},"pickup_date":{"$ref":"#/components/schemas/CancellationRequestPickupDate"},"quantity":{"type":["integer","null"],"minimum":1},"cancellation_request_image_set":{"type":"array","items":{"$ref":"#/components/schemas/CancellationRequestImageUpload"}}}},"CancellationRequestTypeValue":{"type":"string","description":"The type of a cancellation request. See **Request Types** in the Cancellation Requests section.","enum":["cancel","refund"]},"CancellationRequestPickupDate":{"type":["object","null"],"description":"The preferred pickup day and hour range for an easy return. It is not stored on the request.","required":["date","hour_range"],"properties":{"date":{"type":"string","format":"date"},"hour_range":{"type":"object","required":["start","end"],"properties":{"start":{"type":"string"},"end":{"type":"string"}}}}},"CancellationRequestImageUpload":{"type":"object","description":"An image to attach to a new cancellation request.","required":["image"],"properties":{"image":{"type":"string","description":"The image as a Base64-encoded string. It must be smaller than `MAX_IMAGE_DIMENSIONS` and `FILE_UPLOAD_MAX_MEMORY_SIZE`."},"description":{"type":["string","null"]},"attributes":{"type":["object","null"]}}},"CancellationRequestCreated":{"type":"object","description":"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.","properties":{"id":{"type":"integer"},"uuid":{"type":"string","format":"uuid"},"order_item":{"type":"integer"},"reason":{"type":"integer","description":"Identifier of the cancellation reason."},"description":{"type":["string","null"]},"cancellation_type":{"$ref":"#/components/schemas/CancellationRequestTypeValue"},"status":{"$ref":"#/components/schemas/CancellationRequestEnumLabel"},"iban":{"type":["string","null"]},"holder_name":{"type":["string","null"]},"quantity":{"type":["integer","null"]},"fully_refund_as_loyalty_money":{"type":["boolean","null"]},"easy_return":{"type":["object","null"],"description":"The easy-return record created with the request, or `null`.","properties":{"shipping_company":{"$ref":"#/components/schemas/CancellationRequestEnumLabel"},"code":{"type":"string"},"start_date":{"type":["string","null"],"format":"date-time"},"end_date":{"type":["string","null"],"format":"date-time"},"status":{"$ref":"#/components/schemas/CancellationRequestEnumLabel"},"tracking_number":{"type":["string","null"]},"tracking_url":{"type":["string","null"]},"pickup_date":{"type":"object"},"easy_return_shipping_provider":{"type":["object","null"],"properties":{"pk":{"type":"integer"},"shipping_company":{"$ref":"#/components/schemas/CancellationRequestEnumLabel"},"name":{"type":["string","null"]}}}}},"pickup_date":{"type":"null","description":"Always `null`."},"cancellation_request_image_set":{"type":"array","items":{"$ref":"#/components/schemas/CancellationRequestNestedImage"}},"created_date":{"type":"string","format":"date-time"},"modified_date":{"type":"string","format":"date-time"}}},"CancellationRequestEnumLabel":{"type":"object","description":"A value together with its human-readable label.","properties":{"value":{"type":"string"},"label":{"type":"string"}}},"CancellationRequestNestedImage":{"type":"object","description":"An image attached to a cancellation request, as embedded in the `cancellation_request_image_set` of a cancellation request.","properties":{"id":{"type":"integer"},"cancellation_request":{"type":"integer","description":"Identifier of the cancellation request."},"image":{"type":"string","format":"uri","description":"URL of the image."},"description":{"type":["string","null"]},"attributes":{"type":["object","null"]},"is_uploaded_by_user":{"type":"boolean","description":"`true` when the image was uploaded together with the request."},"created_date":{"type":"string","format":"date-time"},"modified_date":{"type":"string","format":"date-time"}}},"ValidationError":{"type":"object","description":"Returned when the request contains invalid or missing data. Errors are grouped by the field they apply to: each key is the name of a field from the request and its value is a list of one or more messages describing what is wrong with that field. Messages that do not belong to any single field are grouped under `non_field_errors`.","properties":{"non_field_errors":{"type":"array","description":"Error messages that apply to the request as a whole rather than to a specific field.","items":{"type":"string"}}},"additionalProperties":{"type":"array","description":"The list of error messages for the field named by the key.","items":{"type":"string"}}},"Error":{"type":"object","description":"An error response.","properties":{"detail":{"type":"string","description":"A human-readable description of the error."}},"additionalProperties":true},"CancellationRequestBusinessError":{"type":"object","description":"Returned when a cancellation request operation is valid in form but violates a business rule.\n\n| `error_code` | Raised when |\n|--------------|-------------|\n| `cancellation_request_100_1` | The order item already has a request that is not `rejected`. |\n| `cancellation_request_100_2` | The order item does not belong to an order of the authenticated account. |\n| `cancellation_request_100_3` | The order item is already cancelled or refunded. |\n| `cancellation_request_100_4` | The reason requires extra information and `description` is missing. |\n| `cancellation_request_100_5` | `iban` and `holder_name` are required (`CANCELLATION_REQUEST_IBAN_NUMBER_REQUIRED`). |\n| `cancellation_request_100_6` | A `cancel` request was sent for an order item that can no longer be cancelled. |\n| `cancellation_request_100_7` | The same order item appears more than once in a bulk create request. |\n| `cancellation_request_100_8` | `pickup_address` is required for `refund` (`CANCELLATION_REQUEST_ADDRESS_REQUIRED`). |\n| `cancellation_request_100_9` | The request cannot be rejected, or the carrier failed to cancel the return code. |\n| `cancellation_request_100_11` | The easy-return code of a `refund` request could not be created and `CREATE_CANCELLATION_WITHOUT_EASY_RETURN_ON_ERROR` is `false`. Nothing is saved; the request can be sent again. |\n| `cancellation_error_108` | An item that cannot be sold alone and its main product must be cancelled together (`OFFER_MISCELLANEOUS_ATTRIBUTE_KEY`). |\n\nWhen the carrier integration itself reports why the easy-return code could not be created, its own `error_code` is returned instead of `cancellation_request_100_11` (e.g. `yurtici_easy_return_100`, `extension_cargo_easy_return_100`).\n\nThe message is translated, so match on `error_code` rather than on the message text.","properties":{"non_field_errors":{"type":"string","description":"A human-readable message describing the business rule that was violated."},"error_code":{"type":"string","description":"A stable code identifying the specific business rule violation."}},"additionalProperties":true}},"responses":{"ValidationError":{"description":"The request contains invalid or missing data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"Unauthorized":{"description":"Authentication credentials were not provided or are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The authenticated user does not have administrator privileges.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"CancellationRequestBusinessError":{"description":"The request is well-formed but violates a business rule of cancellation requests. See the `CancellationRequestBusinessError` schema for the codes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationRequestBusinessError"}}}},"CancellationRequestThrottled":{"description":"Too many bulk create requests were sent. The limit is set by the `cancellation-request-bulk-create` scope of `THROTTLING_SETTINGS`; the message states when the next request is accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/cancellation_requests/bulk_create/":{"post":{"tags":["Cancellation Requests"],"operationId":"bulkCreateCancellationRequests","summary":"Create several cancellation requests","description":"Creates one cancellation request per item of `cancel_order_items` in a single transaction — if one item fails a rule, no request is created. Every order item must belong to an order of the authenticated account.\n\n* `cancel_order_items` must contain at least one item, and an order item may appear only once (`406`, `cancellation_request_100_7`).\n* `fully_refund_as_loyalty_money` is applied to every created request, and `pickup_address` is used for every `refund` item.\n* Each item is checked against the same **Creation Rules** as a single create. Use this operation to cancel an item that cannot be sold alone together with its main product (`OFFER_MISCELLANEOUS_ATTRIBUTE_KEY`).\n* Customer messages (see **Customer Notifications**) are sent only for `refund` items.\n* The operation is rate-limited per account by the `cancellation-request-bulk-create` scope of `THROTTLING_SETTINGS` (default 1 request per 5 seconds); requests over the limit are rejected with `429`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationRequestBulkCreateRequest"}}}},"responses":{"201":{"description":"The cancellation requests were created.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CancellationRequestCreated"}}}}},"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"406":{"$ref":"#/components/responses/CancellationRequestBusinessError"},"429":{"$ref":"#/components/responses/CancellationRequestThrottled"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.akinon.com/commerce-openapis/admin/orders/cancellation-requests/create-several-cancellation-requests.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
