curl --request POST \
--url 'https://api.stateset.com/api/v1/returns/{id}/approve' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"created_at": "2024-12-09T10:30:00Z",
"id": "880e8400-e29b-41d4-a716-446655440000",
"order_id": "550e8400-e29b-41d4-a716-446655440000",
"reason": "Product arrived damaged - scratches on surface",
"status": "pending",
"updated_at": "2024-12-09T10:30:00Z"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
POST /api/v1/returns/{id}/approve
POST /api/v1/returns/{id}/approve
POST
/
api
/
v1
/
returns
/
{id}
/
approve
curl --request POST \
--url 'https://api.stateset.com/api/v1/returns/{id}/approve' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"created_at": "2024-12-09T10:30:00Z",
"id": "880e8400-e29b-41d4-a716-446655440000",
"order_id": "550e8400-e29b-41d4-a716-446655440000",
"reason": "Product arrived damaged - scratches on surface",
"status": "pending",
"updated_at": "2024-12-09T10:30:00Z"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Path parameters
string (uuid)
required
Return ID
Responses
ApiResponse_ReturnSummary
Return approved
ErrorResponse
Return not found
curl --request POST \
--url 'https://api.stateset.com/api/v1/returns/{id}/approve' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"created_at": "2024-12-09T10:30:00Z",
"id": "880e8400-e29b-41d4-a716-446655440000",
"order_id": "550e8400-e29b-41d4-a716-446655440000",
"reason": "Product arrived damaged - scratches on surface",
"status": "pending",
"updated_at": "2024-12-09T10:30:00Z"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
⌘I