Get an order
GET/v1/orders/{id}
Returns the order object.
Permissions: Secret key with checkout:write.
Guide
Checkout and ordersPath parameters#
idstring (uuid)Required
Response fields#
Returns 200 with Order
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.
Error descriptions#
404Not found
not_found
No order with this id in your brand.
Any endpoint can also return the common errors.