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_idpathstringRequiredThe 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)RequiredArray of order line items.

LineItem Object

FieldTypeRequiredDescription
idstringRequiredThe ID of the line item.
replacement_statusstringOptionalThe current status of the replacement for this item if one exists.
statusstringRequiredThe current status of this item.
certified_deliverybooleanOptionalWhether the line item requires certified delivery.
itemOrderItemRequiredThe order line item.
replacementOrderItemOptionalThe replacement for this item if one exists.

OrderItem Object

FieldTypeRequiredDescription
namestringRequiredThe name of the item.
image_urlstringOptionalThe URL of the item image.
quantitystringRequiredThe number of items.
cost_unitstringRequiredThe 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