Reshipments
The Reshipments resource allows you to reship one or more returned packages at a time from a BoxC facility. When a reshipment is created the status
of all included returns will change to "Reshipping". Only returns with the following status can be reshipped: Processed, Verifying, and Verified. If reshipping more than one return at a time then you must wait for a facility operator to provide an estimated_reship_fee
. If reshipping one return then the estimate will be instantaneous. In both cases you must approve the estimate before the reshipment is sent and your account is charged.
Status
When a reshipment is created its status is set to "Pending" by default. It will remain that way until the estimated_reship_fee
is populated by the system or facility operator. Afterwards, you have the option to approve or decline the amount by updating the status accordingly. If "Declined", it will not be reshipped. If "Approved" it will be reshipped, tracking information will be made available, and a final reship_fee
will be provided. Reshipments with the status "Approved" cannot be deleted.
Actions
GET /reshipments |
Retrieves a paginated list of reshipments |
GET /reshipments/{id} |
Retrieves a reshipment |
POST /reshipments |
Creates a reshipment |
PUT /reshipments/{id} |
Updates a reshipment |
DELETE /reshipments/{id} |
Deletes a reshipment |
Properties
contents |
|
created |
|
estimated_reship_fee |
|
id |
|
reship_fee |
|
returns |
{ "returns": [ 12001, 12002 ] }Array - A list of return IDs included in this reshipment. If searching for reshipments then the total number of returns will be shown instead. This property is immutable. |
service |
|
status |
|
to |
{ "to": { "company_name": null, "name": "John Smith", "phone": "555-123-4562", "street1": "108 N WESTGATE WAY", "street2": null, "city": "WYLIE", "province": "TX", "postal_code": "75098", "country": "US" } } The recipient / consignee's shipping address. This property is immutable. company_name: String(40) - The company name. Not required.name: String(40) - The recipient's name. Required. phone: String(20) - The recipient's phone number. Not required. street1: String(40) - The recipient's street address. Required. street2: String(40) - Additional space for the recipient's street address. Not required. city: String(40) - The recipient's city. Required. province: String(40) - The recipient's province or state. Conditional. postal_code: String(10) - The recipient's postal code or ZIP Code. Conditional. country: String(2) - The recipient's country in ISO 3166-1 alpha-2 format. Required. |
tracking_number |
|
value |
|
weight |
|
date_start |
The inclusive date to begin the search in YYYY-MM-DD format. Default is null. |
date_end |
The inclusive date to end the search in YYYY-MM-DD format. Default is now. |
limit |
The number of results to return. Max: 100. Default: 50. |
order |
The order of the results. Options are "asc" for ascending, or "desc" (default) for descending. |
page |
The page number of the results. Default is 1. |
page_token |
Used for selecting the page after the initial query. |
GET /reshipments
limit=50&order=desc
HTTP/1.1 200 OK
{ "reshipments": [ { "contents": "Leggings", "created": "2016-06-30 12:34:55", "estimated_reship_fee": 14.2, "id": 1001, "reship_fee": 14.37, "returns": 3, "service": "USPS", "status": "Approved", "to": { "company_name": "Big Company, LLC", "name": "John Doe", "phone": null, "street1": "5200 Harry Hines Blvd", "street2": null, "city": "Dallas", "province": "TX", "postal_code": "75235", "country": "US" }, "tracking_number": "9261299997140101431920", "value": 29.95, "weight": 0.895 }, { "...": "..." } ], "next_page": "ZGF0ZV9lbmQ9MjAyMy0wNy0zMCZsaW1pdD0yNSZvcmRlcj1kZXNjJnBhZ2U9MSZzdGF0dXM9Jmxhc3RfaWQ9NDUyOTk5Mw==" }
GET /reshipments/1001
HTTP/1.1 200 OK
{ "reshipment": { "contents": "Leggings", "created": "2016-06-30 12:34:55", "estimated_reship_fee": 14.2, "id": 1001, "reship_fee": 14.37, "returns": [ 12001, 12002, 12003 ], "service": "USPS", "status": "Approved", "to": { "company_name": "Big Company, LLC", "name": "John Doe", "phone": null, "street1": "5200 Harry Hines Blvd", "street2": null, "city": "Dallas", "province": "TX", "postal_code": "75235", "country": "US" }, "tracking_number": "9261299997140101431920", "value": 29.95, "weight": 0.895 } }
POST /reshipments
{ "reshipment": { "contents": "Leggings", "returns": [ 12001, 12002, 12003 ], "to": { "company_name": "Big Company, LLC", "name": "John Doe", "phone": null, "street1": "5200 Harry Hines Blvd", "street2": null, "city": "Dallas", "province": "TX", "postal_code": "75235", "country": "US" }, "value": 29.95 } }
HTTP/1.1 201 Created
{ "reshipment": { "contents": "Leggings", "created": "2016-06-30 12:34:55", "estimated_reship_fee": 0, "id": 1001, "reship_fee": 0, "returns": [ 12001, 12002, 12003 ], "service": null, "status": "Pending", "tracking_number": null, "value": 29.95, "weight": 0 } }
PUT /reshipments/1001
{ "reshipment": { "status": "Approved" } }
HTTP/1.1 200 OK
{ "reshipment": { "contents": "Leggings", "created": "2016-06-30 12:34:55", "estimated_reship_fee": 14.2, "id": 1001, "reship_fee": 0, "returns": [ 12001, 12002, 12003 ], "service": null, "status": "Approved", "to": { "company_name": "Big Company, LLC", "name": "John Doe", "phone": null, "street1": "5200 Harry Hines Blvd", "street2": null, "city": "Dallas", "province": "TX", "postal_code": "75235", "country": "US" }, "tracking_number": null, "value": 29.95, "weight": 0.895 } }
DELETE /reshipments/1001
HTTP/1.1 20O OK