Orders
Authorizations
AuthorizationstringRequired
Prefix the value with "ApiKey" to indicate the custom authorization type
Query parameters
pageinteger · int32OptionalDefault:
The page number to request (1 based)
1Example: 1sizeinteger · int32OptionalDefault:
The number of results to return in a page
100Example: 10personIdstring · uuidOptionalExample:
The ID of the person to return orders for
d7d0d906-425f-402f-bde1-39031c67c40bstartDatestring · date-timeOptionalExample:
UTC Date-time to filter orders created after (ISO-8601 without timezone)
2007-12-03T10:15:30endDatestring · date-timeOptionalExample:
UTC Date-time to filter orders created before (ISO-8601 without timezone)
2007-12-03T10:15:30Responses
200
OK
application/json
400
Bad request
application/json
403
Forbidden
*/*
404
Resource not found
application/json
get
/api/ordersGET /api/orders HTTP/1.1
Host: apipub.firstbasehq.com
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"personId": "d7d0d906-425f-402f-bde1-39031c67c40b",
"status": "COMPLETED",
"orderItems": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"skuId": "123e4567-e89b-12d3-a456-426614174000",
"title": "iPad Air - Silver, 64GB, WiFi",
"status": "PROCESSING",
"shipment": {
"trackingUrl": "text",
"trackingCode": "1Z00000000",
"carrier": "UPS",
"status": "DELIVERED",
"trackingHistory": [
{
"status": "IN_TRANSIT",
"timestamp": "2025-12-06T01:27:48.121Z"
}
]
}
}
]
}
]Authorizations
AuthorizationstringRequired
Prefix the value with "ApiKey" to indicate the custom authorization type
Path parameters
orderIdstring · uuidRequired
Responses
200
OK
application/json
400
Bad request
application/json
403
Forbidden
*/*
404
Resource not found
application/json
get
/api/orders/{orderId}GET /api/orders/{orderId} HTTP/1.1
Host: apipub.firstbasehq.com
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"personId": "d7d0d906-425f-402f-bde1-39031c67c40b",
"status": "COMPLETED",
"orderItems": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"skuId": "123e4567-e89b-12d3-a456-426614174000",
"title": "iPad Air - Silver, 64GB, WiFi",
"status": "PROCESSING",
"shipment": {
"trackingUrl": "text",
"trackingCode": "1Z00000000",
"carrier": "UPS",
"status": "DELIVERED",
"trackingHistory": [
{
"status": "IN_TRANSIT",
"timestamp": "2025-12-06T01:27:48.121Z"
}
]
}
}
]
}
]Authorizations
AuthorizationstringRequired
Prefix the value with "ApiKey" to indicate the custom authorization type
Body
Request body
personIdstring · uuidRequired
Responses
200
OK
application/json
400
Bad request
application/json
403
Forbidden
*/*
404
Resource not found
application/json
post
/api/ordersPOST /api/orders HTTP/1.1
Host: apipub.firstbasehq.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 485
{
"shippingAddress": {
"addressLine1": "text",
"addressLine2": "text",
"administrativeArea": "text",
"countryCode": "text",
"dependentLocality": "text",
"locality": "text",
"postalCode": "text",
"sortingCode": "text",
"phoneNumber": "text",
"integrations": {
"provider": "MERGE",
"mergeTenant": "US",
"integrationAddressId": "text"
}
},
"personId": "123e4567-e89b-12d3-a456-426614174000",
"skus": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"expeditedShippingOption": "EXPEDITED_STANDARD",
"preferredCondition": "NEW"
}
]
}[
{
"orderId": "123e4567-e89b-12d3-a456-426614174000",
"itemIds": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
]Last updated