Order Status By External Order Id
GET/v2/external-order-id/:id
Shows information about an existing order and its products by provided external order id. This endpoint allows API users to get current information on the fulfillment status of their orders.
Request
Path Parameters
ID of the order provided to Bonsai by the party who placed the order. This can be anything you like, but should be unique per order.
Responses
- 200
- 400
- 401
- 404
- 5XX
Success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- Array [
- ]
- ]
data object
Public ID of the order.
Customer order number.
ID of the order provided to Bonsai by the party who placed the order. This can be anything you like, but should be unique per order.
Possible values: [pending
, fulfilled
, Partially Fulfilled
, cancelled
, sent to merchant
, failed (merchant)
, failed (unknown)
, failed (payment)
, cancelled (payment)
, failed (payment validation)
, payment successful
, failed (inventory)
, failed (inventory - related)
]
Fulfillment status of the order
products object[]
Product ID.
The ID of the product variant.
Possible values: >= 1
Quantity of the product variant.
The merchant order ID. External to Bonsai. Empty if the order has not yet been placed on external merchant system.
Possible values: [pending
, fulfilled
, Partially Fulfilled
, cancelled
, sent to merchant
, failed (merchant)
, failed (unknown)
, failed (payment)
, cancelled (payment)
, failed (payment validation)
, payment successful
, failed (inventory)
, failed (inventory - related)
]
Fulfillment status of the individual product variant in the order.
Possible values: [unpaid
, paid
, refunded
, partially refunded
]
Payment status for the related order.
shippingTracking object[]
The name of the shipping carrier.
The tracking number for the shipment.
The URL to track the shipment.
products object[]
Product ID.
The ID of the product variant.
Possible values: >= 1
Quantity of the product variant.
customer objectrequired
Customer email
Customer's first name
Customer's last name
Note containing extra information for our team
{
"data": {
"id": "cldbvy7gt0006hpzo9nyw72ks",
"orderNumber": 238636,
"externalId": "51cf91c1-da4a-42c4-81d3-3ec3e3268655",
"fulfillmentStatus": "fulfilled",
"products": [
{
"id": "clad6pg5z00eu012gfz7hfm92",
"variantId": "M00679529706740",
"quantity": 1,
"merchantOrderId": "T8745295",
"fulfillmentStatus": "fulfilled",
"paymentStatus": "paid"
}
],
"shippingTracking": [
{
"carrier": "USPS",
"trackingNumber": "9400100000000000069420",
"trackingUrl": "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=9400100000000000069420",
"products": [
{
"id": "clad6pg5z00eu012gfz7hfm92",
"variantId": "M00679529706740",
"quantity": 1
}
]
}
],
"customer": {
"email": "qa@shopbonsai.ca",
"firstName": "string",
"lastName": "string"
},
"note": "Fulfil only if white colour was selected. Or reach out to our support"
}
}
400 - Bad request
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
{
"errors": [
{
"status": 400,
"detail": "",
"title": "Bad input request"
}
]
}
401 - Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
Unique identifier for error. Can be used for tracing across services.
HTTP status code.
Unique code for specific error.
Short description what the error entails.
detail objectrequired
Useful details related to the error
{
"errors": [
{
"id": "123e4567-e89b-12d3-a456-426655440000",
"status": 401,
"code": "AUTHENTICATION_FAILED",
"title": "Authentication failed",
"detail": {
"authentication_expected": "Authorization header"
}
}
]
}
404 - Not found
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
Unique identifier for error. Can be used for tracing across services.
HTTP status code.
Unique code for specific error.
Short description what the error entails.
detail objectrequired
Useful details related to the error
{
"errors": [
{
"id": "123e4567-e89b-12d3-a456-426655440000",
"status": 404,
"code": "CUSTOMER_ORDER_NOT_FOUND",
"title": "Customer order has not been found",
"detail": {
"customer_order_id": "cldbvy7gt0006hpzo9nyw72ks"
}
}
]
}
500 - Unknown error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
{
"errors": [
{
"status": 500,
"detail": "",
"title": "Unknown error"
}
]
}