Skip to content
campaiDeveloper
campai.com

Sales ยท Shop

POST/{organizationId}/{mandateId}/sales/shop/orders/{orderId}/returns/{returnId}/receive

Receive shop return

Marks the items of an accepted return as received, which issues the credit note, puts the stock back and refunds online payments

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

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • orderIdidrequired
  • returnIdstringrequired

    exactly 8 characters

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/returns/YOUR_RETURN_ID/receive' \
  --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.