Ask to send shipped lines back
post/shop/orders/{id}/returns
Ask to send shipped lines back. Only units that shipped and are not already returned or waiting can be asked for.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
shop:write- Mcp
rivier_shop_return_request- Graphql
Mutation.requestShopReturn- Sdk
shop.return.request- Cli
shop return request
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- lineslist of objectrequired
- lineIdstring (uuid)required
- quantityintegerrequiredAt least 1. At most 1000.
- reasonstringrequiredAt most 500 characters.
- restockbooleanDefault: true.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring