Returns
Refund Return
This endpoint refunds an existing return.
POST
/v1/return/:id/refund
Bearer*
Body
return_id
string
The ID provided in the data tab may be used to identify the return
Response
id
string
The ID provided in the data tab may be used to identify the return
object
string
The object type
success
number
Indicates whether the call was successful. true if successful, false if not.
curl --location --request PUT 'https://api.stateset.com/v1/return/:id/refund' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "return",
"refunded": true
}
curl --location --request PUT 'https://api.stateset.com/v1/return/:id/refund' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "return",
"refunded": true
}