Glue API: Retrieve return reasons
Edit on GitHub
This page describes the API endpoint contract, which is the same regardless of the serving infrastructure. Storefront API endpoints are served by API Platform (recommended) or the legacy Glue infrastructure; Backend API endpoints currently run on the Glue infrastructure.
This endpoint allows retrieving returns reasons.
Installation
For details on the modules that provide the API functionality and how to install them, see Install the Return Management Glue API
Retrieve return reasons
To retrieve return reasons, send the request:
GET /return-reasons
Request
Request sample: retrieve return reasons
GET https://glue.mysprykershop.com/return-reasons
Response
Response sample: retrieve return reasons
{
"data": [
{
"type": "return-reasons",
"id": null,
"attributes": {
"reason": "Damaged"
},
"links": {
"self": "https://glue.mysprykershop.com/return-reasons"
}
},
{
"type": "return-reasons",
"id": null,
"attributes": {
"reason": "Wrong Item"
},
"links": {
"self": "https://glue.mysprykershop.com/return-reasons"
}
},
{
"type": "return-reasons",
"id": null,
"attributes": {
"reason": "No longer needed"
},
"links": {
"self": "https://glue.mysprykershop.com/return-reasons"
}
}
],
"links": {
"self": "https://glue.mysprykershop.com/return-reasons"
}
}
| ATTRIBUTE | TYPE | DESCRIPTION |
|---|---|---|
| reason | String | Predefined return reason. |
To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.
Thank you!
For submitting the form