Skip to content
campaiDeveloper
campai.com

Sales ยท Shop

POST/{organizationId}/{mandateId}/sales/shop/orders/{orderId}/cancel

Cancel shop order

Cancels a shop order that was not shipped yet: an unpaid invoice is canceled, a paid one gets a credit note, and the stock goes back

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • shopOrder.edit
  • receipt.insert
  • receipt.edit

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • orderIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/sales/shop/orders/YOUR_ORDER_ID/cancel' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • refundedOnlineboolean
Response200
{
  "refundedOnline": true
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.