Raise a new return (RMA) request
Changed onRaises a return for one returnable order item. Send multipart/form-data to attach evidence images in images[]; a JSON body works without images. A JSON body, and GraphQL createCustomerReturn, take images as base64 data URIs in images, like the profile image.
Request
- Base URLhttp://localhost:8000/api/shop
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Storefront API Key for authentication. Required for all shop/storefront API requests.
Locale code for localized data (e.g. "en", "fr", "ar"). Defaults to channel's default locale.
Channel code (e.g. "default"). Defaults to the current channel.
Currency code (e.g. "USD", "EUR", "INR"). Defaults to channel's base currency.
Request body
Example request
{
"order_id": 12,
"order_item_id": 45,
"rma_qty": 1,
"resolution_type": "return",
"rma_reason_id": 2,
"information": "Item arrived damaged.",
"package_condition": "open",
"custom_attributes": {
"1": "INV-9921",
"2": [
"morning",
"evening"
]
},
"agreement": true,
"images": [
"data:image/png;base64,iVBORw0KGgo..."
]
}Response
The created return request.
Changes
- info
added the new optional request property
- info
- warning
removed the request property
- info
added the new optional request property
- info
the
request property type was generalized fromobjecttostring
- warning