curl --request POST \
--url 'https://api.stateset.com/api/v1/returns' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"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
POST /api/v1/returns
POST
/
api
/
v1
/
returns
curl --request POST \
--url 'https://api.stateset.com/api/v1/returns' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"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
}
Request body
JSON body of typeCreateReturnRequest.
Responses
ApiResponse_ReturnSummary
Return created
ErrorResponse
Invalid request
curl --request POST \
--url 'https://api.stateset.com/api/v1/returns' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"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