Orders
Authorizations
Query parameters
pageinteger · int32OptionalDefault:
The page number to request (1 based)
1
Example: 1
sizeinteger · int32OptionalDefault:
The number of results to return in a page
100
Example: 10
personIdstring · uuidOptionalExample:
The ID of the person to return orders for
d7d0d906-425f-402f-bde1-39031c67c40b
startDatestring · date-timeOptionalExample:
UTC Date-time to filter orders created after (ISO-8601 without timezone)
2007-12-03T10:15:30
endDatestring · date-timeOptionalExample:
UTC Date-time to filter orders created before (ISO-8601 without timezone)
2007-12-03T10:15:30
Responses
200
OK
application/json
400
Bad request
application/json
403
Forbidden
*/*
404
Resource not found
application/json
get
GET /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-07-25T00:36:47.866Z"
}
]
}
}
]
}
]
Authorizations
Path parameters
orderIdstring · uuidRequired
Responses
200
OK
application/json
400
Bad request
application/json
403
Forbidden
*/*
404
Resource not found
application/json
get
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-07-25T00:36:47.866Z"
}
]
}
}
]
}
]
Authorizations
Body
Request body
personIdstring · uuidRequired
Responses
200
OK
application/json
400
Bad request
application/json
403
Forbidden
*/*
404
Resource not found
application/json
post
POST /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