Get Order

GET {{baseUrl}}/pos/orders/:id?raw=false&fields=id,updated_at

Get Order

Request Params

KeyDatatypeRequiredDescription
rawbooleanInclude raw response. Mostly used for debugging purposes
fieldsstringThe 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: fields=name,email,addresses.city<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded.

HEADERS

KeyDatatypeRequiredDescription
x-apideck-consumer-idstring(Required) ID of the consumer which you want to get or push data from
x-apideck-app-idstring(Required) The ID of your Unify application
x-apideck-service-idstringProvide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
Acceptstring

RESPONSES

status: OK

{&quot;status_code&quot;:200,&quot;status&quot;:&quot;OK&quot;,&quot;service&quot;:&quot;clover&quot;,&quot;resource&quot;:&quot;orders&quot;,&quot;operation&quot;:&quot;one&quot;,&quot;data&quot;:{&quot;location_id&quot;:&quot;12345&quot;,&quot;merchant_id&quot;:&quot;12345&quot;,&quot;id&quot;:&quot;12345&quot;,&quot;idempotency_key&quot;:&quot;random_string&quot;,&quot;order_number&quot;:&quot;1F&quot;,&quot;order_date&quot;:&quot;2022-08-12&quot;,&quot;closed_date&quot;:&quot;2022-08-13&quot;,&quot;reference_id&quot;:&quot;my-order-001&quot;,&quot;status&quot;:&quot;open&quot;,&quot;payment_status&quot;:&quot;open&quot;,&quot;currency&quot;:&quot;USD&quot;,&quot;title&quot;:&quot;ullamco tempor&quot;,&quot;note&quot;:&quot;id aliquip tempor&quot;,&quot;customer_id&quot;:&quot;12345&quot;,&quot;employee_id&quot;:&quot;12345&quot;,&quot;order_type_id&quot;:&quot;12345&quot;,&quot;table&quot;:&quot;1F&quot;,&quot;seat&quot;:&quot;23F&quot;,&quot;total_amount&quot;:275,&quot;total_tip&quot;:700,&quot;total_tax&quot;:275,&quot;total_discount&quot;:300,&quot;total_refund&quot;:0,&quot;total_service_charge&quot;:0,&quot;refunded&quot;:false,&quot;customers&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;first_name&quot;:&quot;Elon&quot;,&quot;middle_name&quot;:&quot;D.&quot;,&quot;last_name&quot;:&quot;Musk&quot;,&quot;phone_numbers&quot;:[{&quot;number&quot;:&quot;111-111-1111&quot;,&quot;id&quot;:&quot;12345&quot;,&quot;country_code&quot;:&quot;1&quot;,&quot;area_code&quot;:&quot;323&quot;,&quot;extension&quot;:&quot;105&quot;,&quot;type&quot;:&quot;primary&quot;}],&quot;emails&quot;:[{&quot;email&quot;:&quot;elon@musk.com&quot;,&quot;id&quot;:&quot;123&quot;,&quot;type&quot;:&quot;primary&quot;}]}],&quot;fulfillments&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;status&quot;:&quot;cancelled&quot;,&quot;type&quot;:&quot;shipment&quot;,&quot;pickup_details&quot;:{&quot;accepted_at&quot;:&quot;2020-09-30T07:43:32.000Z&quot;,&quot;auto_complete_duration&quot;:&quot;P1W3D&quot;,&quot;cancel_reason&quot;:&quot;Not hungry&quot;,&quot;expires_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;,&quot;schedule_type&quot;:&quot;scheduled&quot;,&quot;pickup_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;,&quot;pickup_window_duration&quot;:&quot;P1W3D&quot;,&quot;prep_time_duration&quot;:&quot;P1W3D&quot;,&quot;note&quot;:&quot;Pickup in the back.&quot;,&quot;placed_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;,&quot;rejected_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;,&quot;ready_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;,&quot;expired_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;,&quot;picked_up_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;,&quot;canceled_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;,&quot;is_curbside_pickup&quot;:true,&quot;curbside_pickup_details&quot;:{&quot;curbside_details&quot;:&quot;in Lorem elit&quot;,&quot;buyer_arrived_at&quot;:&quot;2016-09-04T23:59:33.123Z&quot;},&quot;recipient&quot;:{&quot;customer_id&quot;:&quot;12345&quot;,&quot;display_name&quot;:&quot;Elon Musk&quot;,&quot;address&quot;:{&quot;id&quot;:&quot;123&quot;,&quot;type&quot;:&quot;primary&quot;,&quot;string&quot;:&quot;25 Spring Street, Blackburn, VIC 3130&quot;,&quot;name&quot;:&quot;HQ US&quot;,&quot;line1&quot;:&quot;Main street&quot;,&quot;line2&quot;:&quot;apt #&quot;,&quot;line3&quot;:&quot;Suite #&quot;,&quot;line4&quot;:&quot;delivery instructions&quot;,&quot;street_number&quot;:&quot;25&quot;,&quot;city&quot;:&quot;San Francisco&quot;,&quot;state&quot;:&quot;CA&quot;,&quot;postal_code&quot;:&quot;94104&quot;,&quot;country&quot;:&quot;US&quot;,&quot;latitude&quot;:&quot;40.759211&quot;,&quot;longitude&quot;:&quot;-73.984638&quot;,&quot;county&quot;:&quot;Santa Clara&quot;,&quot;contact_name&quot;:&quot;Elon Musk&quot;,&quot;salutation&quot;:&quot;Mr&quot;,&quot;phone_number&quot;:&quot;111-111-1111&quot;,&quot;fax&quot;:&quot;122-111-1111&quot;,&quot;email&quot;:&quot;elon@musk.com&quot;,&quot;website&quot;:&quot;https://elonmusk.com&quot;,&quot;notes&quot;:&quot;Address notes or delivery instructions.&quot;,&quot;row_version&quot;:&quot;1-12345&quot;},&quot;phone_number&quot;:{&quot;number&quot;:&quot;111-111-1111&quot;,&quot;id&quot;:&quot;12345&quot;,&quot;country_code&quot;:&quot;1&quot;,&quot;area_code&quot;:&quot;323&quot;,&quot;extension&quot;:&quot;105&quot;,&quot;type&quot;:&quot;primary&quot;},&quot;email&quot;:{&quot;email&quot;:&quot;elon@musk.com&quot;,&quot;id&quot;:&quot;123&quot;,&quot;type&quot;:&quot;primary&quot;}}},&quot;shipment_details&quot;:{}}],&quot;line_items&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;name&quot;:&quot;New York Strip Steak&quot;,&quot;item&quot;:{&quot;id&quot;:&quot;12345&quot;},&quot;total_tax&quot;:2000,&quot;total_discount&quot;:3000,&quot;total_amount&quot;:27500,&quot;quantity&quot;:1,&quot;unit_price&quot;:27500.5,&quot;applied_taxes&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;tax_id&quot;:&quot;sales-tax&quot;,&quot;amount&quot;:27500,&quot;currency&quot;:&quot;USD&quot;}],&quot;applied_discounts&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;discount_id&quot;:&quot;12345&quot;,&quot;amount&quot;:27500,&quot;currency&quot;:&quot;USD&quot;}],&quot;modifiers&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;name&quot;:&quot;New York Strip Steak - no cheese&quot;,&quot;amount&quot;:27500,&quot;currency&quot;:&quot;USD&quot;,&quot;alternate_name&quot;:&quot;Modifier New&quot;,&quot;modifier_group_id&quot;:&quot;123&quot;}]}],&quot;payments&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;amount&quot;:27500,&quot;currency&quot;:&quot;USD&quot;}],&quot;service_charges&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;name&quot;:&quot;Charge for delivery&quot;,&quot;amount&quot;:27500,&quot;percentage&quot;:12.5,&quot;currency&quot;:&quot;USD&quot;,&quot;active&quot;:true,&quot;type&quot;:&quot;custom&quot;}],&quot;refunds&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;location_id&quot;:&quot;12345&quot;,&quot;amount&quot;:27500,&quot;currency&quot;:&quot;USD&quot;,&quot;reason&quot;:&quot;The reason for the refund being issued.&quot;,&quot;status&quot;:&quot;pending&quot;,&quot;tender_id&quot;:&quot;12345&quot;,&quot;transaction_id&quot;:&quot;12345&quot;}],&quot;taxes&quot;:[{&quot;id&quot;:&quot;state-sales-tax&quot;,&quot;name&quot;:&quot;State Sales Tax&quot;,&quot;amount&quot;:27500,&quot;currency&quot;:&quot;USD&quot;,&quot;percentage&quot;:15,&quot;scope&quot;:&quot;line_item&quot;,&quot;type&quot;:&quot;inclusive&quot;,&quot;auto_applied&quot;:true}],&quot;discounts&quot;:[{&quot;type&quot;:&quot;percentage&quot;,&quot;id&quot;:&quot;12345&quot;,&quot;product_id&quot;:&quot;12345&quot;,&quot;name&quot;:&quot;10% off&quot;,&quot;amount&quot;:27500,&quot;currency&quot;:&quot;USD&quot;,&quot;scope&quot;:&quot;order&quot;}],&quot;tenders&quot;:[{&quot;id&quot;:&quot;12345&quot;,&quot;name&quot;:&quot;10% off&quot;,&quot;type&quot;:&quot;cash&quot;,&quot;note&quot;:&quot;An optional note associated with the tender at the time of payment.&quot;,&quot;amount&quot;:27500,&quot;percentage&quot;:10,&quot;currency&quot;:&quot;USD&quot;,&quot;total_amount&quot;:275,&quot;total_tip&quot;:7,&quot;total_processing_fee&quot;:0,&quot;total_tax&quot;:-77459196,&quot;total_discount&quot;:3,&quot;total_refund&quot;:0,&quot;total_service_charge&quot;:0,&quot;buyer_tendered_cash_amount&quot;:27500,&quot;change_back_cash_amount&quot;:27500,&quot;card&quot;:{&quot;id&quot;:&quot;12345&quot;,&quot;bin&quot;:&quot;41111&quot;,&quot;card_brand&quot;:&quot;discover&quot;,&quot;card_type&quot;:&quot;credit&quot;,&quot;prepaid_type&quot;:&quot;prepaid&quot;,&quot;cardholder_name&quot;:&quot;John Doe&quot;,&quot;customer_id&quot;:&quot;12345&quot;,&quot;merchant_id&quot;:&quot;12345&quot;,&quot;exp_month&quot;:1,&quot;exp_year&quot;:2022,&quot;fingerprint&quot;:&quot; Intended as a POS-assigned identifier, based on the card number, to identify the card across multiple locations within a single application.&quot;,&quot;last_4&quot;:&quot;The last 4 digits of the card number.&quot;,&quot;enabled&quot;:true,&quot;billing_address&quot;:{&quot;id&quot;:&quot;123&quot;,&quot;type&quot;:&quot;primary&quot;,&quot;string&quot;:&quot;25 Spring Street, Blackburn, VIC 3130&quot;,&quot;name&quot;:&quot;HQ US&quot;,&quot;line1&quot;:&quot;Main street&quot;,&quot;line2&quot;:&quot;apt #&quot;,&quot;line3&quot;:&quot;Suite #&quot;,&quot;line4&quot;:&quot;delivery instructions&quot;,&quot;street_number&quot;:&quot;25&quot;,&quot;city&quot;:&quot;San Francisco&quot;,&quot;state&quot;:&quot;CA&quot;,&quot;postal_code&quot;:&quot;94104&quot;,&quot;country&quot;:&quot;US&quot;,&quot;latitude&quot;:&quot;40.759211&quot;,&quot;longitude&quot;:&quot;-73.984638&quot;,&quot;county&quot;:&quot;Santa Clara&quot;,&quot;contact_name&quot;:&quot;Elon Musk&quot;,&quot;salutation&quot;:&quot;Mr&quot;,&quot;phone_number&quot;:&quot;111-111-1111&quot;,&quot;fax&quot;:&quot;122-111-1111&quot;,&quot;email&quot;:&quot;elon@musk.com&quot;,&quot;website&quot;:&quot;https://elonmusk.com&quot;,&quot;notes&quot;:&quot;Address notes or delivery instructions.&quot;,&quot;row_version&quot;:&quot;1-12345&quot;},&quot;reference_id&quot;:&quot;card-001&quot;,&quot;version&quot;:&quot;230320320320&quot;},&quot;card_status&quot;:&quot;authorized&quot;,&quot;card_entry_method&quot;:&quot;swiped&quot;,&quot;payment_id&quot;:&quot;12345&quot;,&quot;location_id&quot;:&quot;12345&quot;,&quot;transaction_id&quot;:&quot;12345&quot;}],&quot;source&quot;:&quot;api&quot;,&quot;voided&quot;:false,&quot;voided_at&quot;:&quot;2020-09-30T07:43:32.000Z&quot;,&quot;custom_mappings&quot;:{},&quot;version&quot;:&quot;230320320320&quot;,&quot;updated_by&quot;:&quot;12345&quot;,&quot;created_by&quot;:&quot;12345&quot;,&quot;updated_at&quot;:&quot;2020-09-30T07:43:32.000Z&quot;,&quot;created_at&quot;:&quot;2020-09-30T07:43:32.000Z&quot;}}