Skip to main content

Get order items

GET /v2/post_checkout/orders/{order_id}/items

Retrieves the list of items in the order. Each item in the list includes item details of the ordered item, the current status of that item, and the current replacement for that item, if one exists. Item details include the name, quantity ordered, and cost unit.

The following table describes the list of valid item statuses:

StatusDescription
APPROVEDReplacement approved by customer.
FOUNDOriginal item requested found by shopper.
REJECTEDReplacement rejected by customer.
REPLACEDItem replaced.
TO_REFUNDItem to be refunded.
NOT_PICKEDNot picked yet.

Security

NameInDescription
AuthorizationheaderThe Authorization header with the bearer token acquired during authentication.

Parameters

NameInTypeRequiredDescription
order_idpathstringRequired

The ID of the order.

X-Treat-Ids-As-InternalheaderbooleanOptional

Request

None.

Request examples

curl --request GET \
--url 'https://connect.instacart.com/v2/post_checkout/orders/{order_id}/items' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'X-Treat-Ids-As-Internal: true'

Response

FieldTypeRequiredDescription
line_itemsArray(LineItem)Required

Array of order line items.

LineItem Object

FieldTypeRequiredDescription
idstringRequired

The ID of the line item.

replacement_statusstringOptional

The current status of the replacement for this item if one exists.

statusstringRequired

The current status of this item.

certified_deliverybooleanOptional

Whether the line item requires certified delivery.

itemOrderItemRequired

The order line item.

replacementOrderItemOptional

The replacement for this item if one exists.

OrderItem Object

FieldTypeRequiredDescription
namestringRequired

The name of the item.

image_urlstringOptional

The URL of the item image.

quantitystringRequired

The number of items.

cost_unitstringRequired

The unit of item quantity.

Response examples

200 Success

{
"line_items": [
{
"id": "qwertyuiop",
"replacement_status": "SUBSTITUTION_STATUS_UNSPECIFIED",
"status": "REPLACED",
"certified_delivery": false,
"item": {
"name": "Bananas",
"image_url": "fakeUrl.com",
"quantity": "30.0",
"cost_unit": "LB"
},
"replacement": {
"name": "Bananas",
"image_url": "fakeUrl.com",
"quantity": "30.0",
"cost_unit": "LB"
}
}
]
}

4XX Errors

Error responses return either a single error or multiple errors.

HTTP CodeCauseError MessageError CodeError Meta
404Order items not found"Resource not found"4000Not applicable