Overview
This endpoint can be used to create a new order. Endpoint:/api/v1/orders
Method: POST
After the order is created, the customer will receive an email containing their return link. You do not need to send it to them.
Request
The unique number or reference code for the order.Minimum character length:
2
Maximum character length: 50
The number of days from now when a return can no longer be scheduled.If not supplied, then the organization default will be used.Minimum:
10
Maximum: 365
An
array
of line items that are being returned.An order may contain up to 100
line items.The customer name.For example, “John Smith” or “Acme Products”.Minimum character length:
2
Maximum character length: 50
The customer email address.Carriers may send one or more shipment tracking notifications to this email address.Minimum character length:
6
Maximum character length: 100
The customer phone number.This must be formatted using the E.164 standard.Minimum character length:
7
Maximum character length: 30
Line 1 of the customer address.Minimum character length:
2
Maximum character length: 35
Line 2 of the customer address.Minimum character length:
2
Maximum character length: 35
The customer address’ town or city.Minimum character length:
2
Maximum character length: 35
The customer address’ state, province, or region.Minimum character length:
2
Maximum character length: 30
The customer address’ post or zip code.Minimum character length:
2
Maximum character length: 16
A Country enum representing the customer address’ country.This must match your organization’s country.
Response
If the order is successfully created, the API will return a201 Created
status code.
The response will contain the following content:
The ID of the newly created order.
The self-expiring link used to schedule a return.