Get an order
/meals/v1/order/{order_id}/get/documentorder:readReturns one order your company placed, with its line_items. While the payment is pending
the answer carries the Stripe payment again, so a page can take the payment after a reload:
confirm it with Stripe.js using stripe_publishable_key and
stripe_payment_intent.stripe_payment_intent_client_secret. The order is paid when
order_financial_status is paid or the order.paid event arrives.
Answers 404 for an order that does not exist or belongs to another company or mode, and 409 connection_not_active once the customer revoked the connection: you can no longer read their
orders. Needs the order:read scope.
Path parameters
order_idstringrequiredThe ID of the order, as
createanswered it.Min length 1 · Max length 200 · Pattern ^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$
Response 200
is_shipping_cost_waivedbooleanWhether the shipping cost is waived.
Default false
line_itemsarray of OrderLineItemOutputnullableThe line items of the order. Only when you read one order;
nullin lists.Show child attributesHide child attributes
additional_informationstringnullableAdditional information about the line item.
line_item_created_atstring (date-time)requiredWhen the line item was created, in UTC.
line_item_currencystringrequiredThe currency of the line item, for example
CAD.line_item_delivery_notesstringnullableThe notes about the delivery of the line item.
line_item_delivery_statusenumrequiredHow far the delivery of the line item is:
draft,pending payment,not yet shipped,shipped,delivered,delivery failed,cancelledordo not process.draftpending paymentnot yet shippedshippeddelivereddelivery failedcancelleddo not process
line_item_financial_statusenumrequiredThe payment status of the line item:
draft,pending,failed payment,paid,cancelled,partially refunded,refundedorchargeback.draftpendingfailed paymentpaidcancelledpartially refundedrefundedchargeback
line_item_fulfilled_quantityintegerrequiredHow many units are fulfilled.
line_item_fulfillment_statusenumrequiredHow far the kitchen is with the line item:
draft,pending payment,not started,preparing meals,partially completed,completed,cancelledordo not process.draftpending paymentnot startedpreparing mealspartially completedcompletedcancelleddo not process
line_item_hashstringrequiredThe hash that identifies the line item.
line_item_productOrderLineItemProductrequiredThe product, as it was when the order was placed.
Show child attributesHide child attributes
product_idstringrequiredThe ID of the product.
product_namestringrequiredThe name of the product.
product_priceintegerrequiredThe price of one unit, an integer number of cents, in the currency of the line item (
line_item_currency).
line_item_quantityintegerrequiredHow many units were ordered.
line_item_refunded_quantityintegerHow many units are refunded.
Default 0
line_item_updated_atstring (date-time)requiredWhen the line item was last updated, in UTC.
metadataobjectYour own key-value data, as you sent it.
order_admin_waived_amountintegerThe amount an administrator waived, in cents.
Default 0
order_cancellation_notesstringnullableThe notes about the cancellation of the order.
order_completed_atstring (date-time)nullableWhen the kitchen completed the order, in UTC.
order_contact_emailstringnullableThe email address of the customer for this order.
order_contact_phonestringnullableThe phone number of the customer for this order.
order_created_atstring (date-time)requiredWhen the order was placed, in UTC.
order_credits_claimed_amountintegerThe credits used, in cents.
Default 0
order_currencystringrequiredThe currency of every amount, for example
CAD.order_customer_notesstringnullableThe notes for the kitchen.
order_cutoff_datestring (date-time)nullableWhen ordering for the delivery date closes, in UTC.
order_delivery_datestring (date-time)nullableThe delivery date, as midnight of the day in the vendor's timezone, in UTC.
order_delivery_notesstringnullableThe notes about the delivery of the order.
order_delivery_statusenumrequiredHow far the delivery is:
draft,pending payment,not yet shipped,shipped,delivered,delivery failed,cancelledordo not process.draftpending paymentnot yet shippedshippeddelivereddelivery failedcancelleddo not process
order_discount_amountintegerThe discount code amount in cents.
Default 0
order_financial_statusenumrequiredThe payment status:
draft,pending,failed payment,paid,cancelled,partially refunded,refundedorchargeback.draftpendingfailed paymentpaidcancelledpartially refundedrefundedchargeback
order_fulfillment_statusenumrequiredHow far the kitchen is:
draft,pending payment,not started,preparing meals,partially completed,completed,cancelledordo not process.draftpending paymentnot startedpreparing mealspartially completedcompletedcancelleddo not process
order_idstringrequiredThe ID of the order.
order_insurance_claim_amountintegerThe insurance claim amount in cents.
Default 0
order_organization_discount_amountintegerThe organization discount in cents.
Default 0
order_paidintegernullableThe amount paid, in cents.
order_paid_atstring (date-time)nullableWhen the order was paid, in UTC.
nulluntil then.order_paid_out_of_bandintegernullableThe amount paid outside the system, in cents.
order_paid_through_organizationintegernullableThe amount paid through an organization, in cents.
order_paid_through_pointsintegernullableThe amount paid with loyalty points, in cents.
order_points_claimed_amountintegerThe loyalty points used, in cents.
Default 0
order_production_datestring (date-time)nullableWhen the kitchen starts preparing the order, in UTC.
order_refund_amountintegernullableThe amount refunded, in cents.
order_service_chargesarray of OrderServiceChargeThe service charges, added after tax. The total includes them.
Show child attributesHide child attributes
service_charge__centsintegerrequiredThe amount of the charge, in cents.
service_charge__one_word_reasonstringrequiredThe reason as one upper-case word.
service_charge__reasonstringrequiredThe reason for the charge, as a sentence.
order_shipping_addressOrderAddressnullableWhere the order is delivered.
Show child attributesHide child attributes
citystringrequiredThe city.
countrystringrequiredThe two-letter country code.
line1stringrequiredThe first line of the street address.
line2stringnullableThe second line of the street address.
postal_codestringrequiredThe postal code.
statestringrequiredThe two-letter province code.
order_shipping_costintegerThe shipping cost in cents.
Default 0
order_tax_amountintegerThe tax in cents.
Default 0
order_total_price__AFTER_TAX_DISCOUNT_AND_SHIPPINGintegerrequiredWhat the customer pays, in cents.
order_total_price__BEFORE_TAX_DISCOUNT_AND_SHIPPINGintegerrequiredThe value of the line items in cents.
order_updated_atstring (date-time)nullableWhen the order was last updated, in UTC.
order_vendorOrderVendorrequiredThe vendor that prepares the order.
Show child attributesHide child attributes
is_archivedbooleanWhether the vendor is archived.
Default false
livemodebooleanWhether the vendor is live.
Default false
vendor_addressOrderAddressnullableThe address of the vendor.
Show child attributesHide child attributes
citystringrequiredThe city.
countrystringrequiredThe two-letter country code.
line1stringrequiredThe first line of the street address.
line2stringnullableThe second line of the street address.
postal_codestringrequiredThe postal code.
statestringrequiredThe two-letter province code.
vendor_customer_support_emailstringnullableThe email of the vendor customer support.
vendor_customer_support_phonestringnullableThe phone number of the vendor customer support.
vendor_faq_urlstringnullableThe URL of the vendor FAQ.
vendor_idstringrequiredThe ID of the vendor.
vendor_imagesarray of stringThe URLs of the vendor images.
vendor_logo_imagestringnullableThe URL of the vendor logo image.
vendor_long_descriptionstringnullableThe long description of the vendor.
vendor_namestringrequiredThe name of the vendor.
vendor_short_descriptionstringnullableThe short description of the vendor.
vendor_social_media_facebookstringnullableThe URL of the vendor Facebook page.
vendor_social_media_instagramstringnullableThe URL of the vendor Instagram page.
vendor_social_media_linkedinstringnullableThe URL of the vendor LinkedIn page.
vendor_social_media_twitterstringnullableThe URL of the vendor Twitter page.
vendor_timezonestringrequiredThe timezone of the vendor.
vendor_website_urlstringnullableThe URL of the vendor website.
referencestringnullableYour own reference for the order, if you sent one.
stripe_payment_intentOrderPaymentIntentnullableThe Stripe payment to confirm. Only while the payment is
pending;nullotherwise and in lists.Show child attributesHide child attributes
stripe_payment_intent_client_secretstringrequiredThe Stripe PaymentIntent client secret the page confirms the payment with.
stripe_payment_intent_statusstringrequiredThe status of the Stripe PaymentIntent, for example
requires_payment_method.
stripe_publishable_keystringnullableThe Stripe publishable key to confirm the payment with, or
nullwhen none is configured.userstring (uuid)requiredThe ID of the customer the order is for.
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
403 | scope_not_granted | This API key does not have the order:read scope. |
404 | not_found | The requested resource was not found. |
409 | connection_not_active | The connection is not active. |
422 | validation_error | path.order_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$' |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |