Approve a return and buy its label
POST
/returns/{id}/approve
const url = 'https://shipjay.com/api/v1/returns/example/approve';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"note":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shipjay.com/api/v1/returns/example/approve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "note": "example" }'Buys a prepaid return label from the wallet and emails it to the customer.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
note
string
Example generated
{ "note": "example"}Responses
Section titled “Responses”Success.
Media typeapplication/json
object
id
required
string
rma
required
number
status
required
string
shipment_id
required
string
return_shipment_id
required
string | null
reason
required
string
reason_note
required
string | null
customer_email
required
string
customer_name
required
string | null
label_error
required
string | null
created_at
required
string
received_at
required
string | null
Example generated
{ "id": "example", "rma": 1, "status": "example", "shipment_id": "example", "return_shipment_id": "example", "reason": "example", "reason_note": "example", "customer_email": "example", "customer_name": "example", "label_error": "example", "created_at": "example", "received_at": "example"}Missing or invalid API key.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
request_id
required
string
Example
{ "error": { "code": "validation" }}The key lacks the required permission, or the account is suspended.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
request_id
required
string
Example
{ "error": { "code": "validation" }}The resource does not exist.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
request_id
required
string
Example
{ "error": { "code": "validation" }}The request is not valid. error.details.issues lists the problems.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
request_id
required
string
Example
{ "error": { "code": "validation" }}Too many requests. Wait Retry-After seconds.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
request_id
required
string
Example
{ "error": { "code": "validation" }}© 2026 Ship Jay. All rights reserved. Created & Developed by WCWS Internet
