List orders
GET/v1/orders
Returns orders, newest first. Filter by member for an order history, or by external_order_id to check whether an order was credited before you retry it.
Permissions: Secret key with checkout:write.
Guide
Checkout and ordersQuery parameters#
member_idstring (uuid)Orders for one member.external_order_idstringExact match. Returns zero or one order.limitinteger1 to 100. Default 25.Min 1Max 100Default 25cursorstringnext_cursorfrom the previous page. See Pagination.
items is shortened above; the response has the full lines.
Response fields#
Returns 200 with list of Order
dataarray of OrderShow attributesOrder
idstring (uuid)unPLUG's id for the order.external_order_idstringNullableYour order id. Unique in your brand, forever.statusstringOne ofcredited,partially_refunded,refundedmember_idstring (uuid)Nullablenullfor a guest order, which earns nothing.location_idstring (uuid)channelstringapporwebfor orders you send. Points earned at the register also show up, as orders within_store. May grow.One ofapp,web,in_storefulfillmentstringNullablepickup,delivery,curbsideordine_in.placed_atstring (date-time)When the guest placed the order. The earn rate and bonuses in force at this time apply.currencystringUSD.subtotal_centsintegerSum of the lines, before discounts, tax and tip.Min 0discount_centsintegerAll discounts on the order, including the unPLUG redemption.Min 0tax_centsintegerRecorded for reports. They never earn.Min 0tip_centsintegerRecorded for reports. They never earn.Min 0total_centsintegerWhat the guest paid: subtotal minus discount, plus tax and tip.Min 0itemsarray of CartItemThe cart lines, same shape as preview.Show attributesCartItem
line_idstringYour id for the line, unique within the cart.pos_item_idstringSquare catalog item variation id.namestringquantityintegerMin 1unit_price_centsintegerInteger cents.Min 0pos_category_idsarray of stringmodifiersarray of objectShow attributesHide attributes
pos_modifier_idstringnamestringprice_centsintegerInteger cents.Min 0
points_earnedintegerPoints from the earn rate, on the subtotal after discounts, rounded down.bonus_pointsintegerExtra points from promotions in force atplaced_at.redemptionsarray of object[{ "id", "status" }]for each redemption the order used.Show attributesHide attributes
idstring (uuid)statusstring
memberobjectNullable{ "points_balance", "tier" }right after the order was credited. Only on the create response and theorder.creditedwebhook.Show attributesHide attributes
points_balanceintegertierTierRefShow attributesTierRef
idstring (uuid)namestring
created_atstring (date-time)When unPLUG recorded the order.
has_morebooleanTrue when another page exists.next_cursorstringNullablePass ascursorto get the next page.
Error descriptions#
400Bad request
invalid_param
limit is outside 1 to 100, or the cursor is not one we issued.
Any endpoint can also return the common errors.