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:
2Maximum character length: 50The number of days from now when a return can no longer be scheduled.If not supplied, then the organization default will be used.Minimum:
10Maximum: 365An
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:
2Maximum character length: 50The customer email address.Carriers may send one or more shipment tracking notifications to this email address.Minimum character length:
6Maximum character length: 100Line 1 of the customer address.Minimum character length:
2Maximum character length: 35Line 2 of the customer address.Minimum character length:
2Maximum character length: 35The customer address’ town or city.Minimum character length:
2Maximum character length: 35The customer address’ state, province, or region.Minimum character length:
2Maximum character length: 30The customer address’ post or zip code.Minimum character length:
2Maximum character length: 16A 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.