Orders
Create and manage orders
GET/v1/orders
Get All Orders
Get all fulfillment orders for a service integration store.
Authorization
x-api-key
Required<token>
The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]
In: header
Status code | Description |
---|---|
200 | Get all fulfillment orders |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
POST/v1/orders
Create Order
Create a new fulfillment order. This will automatically create a new order in Roastify with a 'Created' status.
Authorization
x-api-key
Required<token>
The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]
In: header
Request Body
retailCosts
Requiredobject
Retail costs
toAddress
Requiredobject
Recipient information
items
Requiredarray of object
List of items in the order
Status code | Description |
---|---|
201 | Succesful order. Returns the orderId of the new order |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
GET/v1/orders/{orderId}
Get Order
Get an order by orderId
Authorization
x-api-key
Required<token>
The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]
In: header
Path Parameters
orderId
Requiredstring
The Id of the order
Example:"1ef87e47-266e-466f-ab06-a64994aefbb0"
Minimum length: 1
Status code | Description |
---|---|
200 | Get an order by orderId |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
PUT/v1/orders/{orderId}
Update Order
Update an Order by orderId
Authorization
x-api-key
Required<token>
The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]
In: header
Request Body
retailCosts
Requiredobject
Retail costs
toAddress
Requiredobject
Recipient information
items
Requiredarray of object
List of items in the order
Path Parameters
orderId
Requiredstring
The Id of the order
Example:"1ef87e47-266e-466f-ab06-a64994aefbb0"
Minimum length: 1
Status code | Description |
---|---|
204 | Order updated successfully |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
GET/v1/orders/{orderId}/events
Get Order Events
Get all order events by orderId
Authorization
x-api-key
Required<token>
The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]
In: header
Path Parameters
orderId
Requiredstring
The Id of the order
Example:"1ef87e47-266e-466f-ab06-a64994aefbb0"
Minimum length: 1
Status code | Description |
---|---|
200 | Get all fulfillment order events by order Id |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
Order events
GET/v1/orders/{orderId}/shipping
Get Order Shipping
Get order shipping details by orderId
Authorization
x-api-key
Required<token>
The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]
In: header
Path Parameters
orderId
Requiredstring
The Id of the order
Example:"1ef87e47-266e-466f-ab06-a64994aefbb0"
Minimum length: 1
Status code | Description |
---|---|
200 | Get order shipping details by order Id |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
Order shipping details