Skip to content

Instantly share code, notes, and snippets.

@nickrobinson
Last active September 20, 2024 13:20
Show Gist options
  • Save nickrobinson/6ec51a9a41cea5b143a429505a86d149 to your computer and use it in GitHub Desktop.
Save nickrobinson/6ec51a9a41cea5b143a429505a86d149 to your computer and use it in GitHub Desktop.
Order Forking Logs
{
"update_order_request": {
"order": {
"id": "K9WOXThW3nIBbdyReXCb54XUITJZY",
"line_items": {
"uid": "2ed1ea4e-294f-4609-88ce-d7f957a5efb3",
"line_item_extensions": {
"checkoutfe": {
"event": {
"uid": "48569686-b135-4139-8d6e-467e1352dd1c",
"event_token_pair": {
"client_token": "48569686-b135-4139-8d6e-467e1352dd1c"
},
"event_type": "FIRE",
"created_at": "2024-09-20T00:08:44-04:00",
"creator_details": {
"employee": {
"employee_token": "TMySt6_fxR2H00ru",
"first_name": "[FILTERED]",
"last_name": "[FILTERED]"
}
}
}
}
}
},
"version": 4,
"client_timestamps": {
"updated_at": "2024-09-20T00:08:44-04:00"
}
},
"idempotency_key": "6febb97e-1176-4662-8ddc-6b212be802a6",
"order_id": "K9WOXThW3nIBbdyReXCb54XUITJZY",
"precalculated_order": "true"
},
"existing_payment_id": "nD6n3SrrYXjSVsVNX9z7zNwd47JZY",
"update_existing_payment_request": {
"payment": {
"id": "nD6n3SrrYXjSVsVNX9z7zNwd47JZY",
"amount_money": {
"amount": 1391,
"currency": "USD"
}
},
"idempotency_key": "6febb97e-1176-4662-8ddc-6b212be802a6",
"payment_id": "nD6n3SrrYXjSVsVNX9z7zNwd47JZY"
},
"ordersfe_client_support": {
"supported_features": [
"AUTHENTICATED_ORDERS",
"SQUARE_DELIVERY",
"CAVIAR_PICKUP",
"CAVIAR_MANAGED_DELIVERY",
"SQUARE_PICKUP",
"WEEBLY_DELIVERY",
"WEEBLY_DIGITAL",
"WEEBLY_PICKUP",
"WEEBLY_SHIPMENT",
"FRACTIONAL_QUANTITIES",
"MULTIPLE_ACTIVE_FULFILLMENTS",
"WEEBLY_OPEN_TAB",
"SQUARE_SIMPLE",
"FLAT_AMOUNT_TAXES",
"PAYMENTS",
"UNPAID_ORDERS",
"KDS_USER"
],
"supported_groups": [
"ACTIVE",
"IN_PROGRESS",
"NEW",
"READY",
"COMPLETED",
"ARRIVED",
"UPCOMING",
"FULFILLMENT_CANCELED",
"VOIDED"
],
"supported_actions": [
"ACCEPT",
"MARK_DELIVERED",
"MARK_IN_PROGRESS",
"MARK_PICKED_UP",
"MARK_READY",
"MARK_SHIPPED",
"COMPLETE",
"CANCEL",
"CANCEL_WITH_AUTHORIZED_PAYMENT"
],
"supported_fulfillment_api_actions": "UPDATE_ORDER_RECIPIENT"
}
}
{
"create_payment_request": {
"source_id": "[FILTERED]",
"idempotency_key": "F652464B-5530-4C77-9E26-13CB7F402F30",
"amount_money": {
"amount": 0,
"currency": "USD"
},
"autocomplete": "false",
"location_id": "LC91FFM3DKRRJ",
"order_id": "pQtsAkjhR3RPrBBfhf64EBFxscUZY",
"accept_partial_authorization": "false",
"revenue_association_tags": "REGISTER_POS",
"geo_location": {
"coordinates": {
"filtered": "[FILTERED]"
},
"altitude_meters": 46.08941841125488,
"uncertainty_meters": 35
},
"cash_details": {
"buyer_supplied_money": {
"amount": 0,
"currency": "USD"
}
},
"square_product": "REGISTER",
"device_details": {
"device_id": "[FILTERED]",
"device_name": "Baird ipad",
"device_installation_id": "[FILTERED]",
"device_credential": {}
},
"peripheral_metadata": {
"app_release": "6.51.2",
"app_version": "6512002",
"source_device_installation_id": "C072A644-2849-4222-B49F-82AC347D1A05",
"connected_peripherals": [
{
"unique_identifier": "241CS15513000685",
"device_type": "Stand",
"connection_type": "USB",
"manufacturer_name": "Square, Inc.",
"model_name": "Square Stand"
},
{
"unique_identifier": "241CS15513000685",
"device_type": "Card Reader",
"connection_type": "USB",
"manufacturer_name": "Square",
"model_name": "S3a"
},
{
"unique_identifier": "00:1D:12:C6:3C:44",
"device_type": "Printer",
"connection_type": "NETWORK",
"manufacturer_name": "Star",
"model_name": "TSP143III"
}
]
},
"is_offline_request": "false"
},
"order_version": 1,
"client_support": {},
"update_order_request": {
"order": {
"id": "pQtsAkjhR3RPrBBfhf64EBFxscUZY",
"location_id": "LC91FFM3DKRRJ",
"line_items": [
{
"uid": "e758cc20-4622-4968-a6f9-0c722e79fe27",
"total_tax_money": {
"amount": 0
},
"total_discount_money": {
"amount": 300
},
"total_money": {
"amount": 0
},
"applied_taxes": {
"uid": "9b44cd66-d9cf-4147-8dfd-395604ae8340",
"applied_money": {
"amount": 0
}
},
"applied_discounts": {
"uid": "52CDAE97-84CC-4C7E-93A3-03A89DABB16C",
"discount_uid": "127A84DA-FCB4-42CC-8D02-CDFC134D3585",
"applied_money": {
"amount": 300,
"currency": "USD"
}
},
"line_item_extensions": {
"checkoutfe": {
"event": {
"uid": "8525AA7D-105C-429F-AAB1-7F4C21A94A6B",
"event_token_pair": {
"client_token": "8525AA7D-105C-429F-AAB1-7F4C21A94A6B"
},
"event_type": "DISCOUNT",
"created_at": "2024-09-20T00:10:48.000Z"
}
}
},
"total_service_charge_money": {
"amount": 0,
"currency": "USD"
},
"combo_applied_money": {
"amount": 0,
"currency": "USD"
}
},
{
"uid": "28356107-44d8-4184-969d-20d969d18cb8",
"total_tax_money": {
"amount": 0
},
"total_discount_money": {
"amount": 2100
},
"total_money": {
"amount": 0
},
"applied_taxes": {
"uid": "9b44cd66-d9cf-4147-8dfd-395604ae8340",
"applied_money": {
"amount": 0
}
},
"applied_discounts": {
"uid": "2E172743-FE7A-4FFE-8D6A-2DDB934DA374",
"discount_uid": "127A84DA-FCB4-42CC-8D02-CDFC134D3585",
"applied_money": {
"amount": 2100,
"currency": "USD"
}
},
"line_item_extensions": {
"checkoutfe": {
"event": {
"uid": "071DC1BE-BB7B-4BCD-BB0F-FD1D3D4CBA3A",
"event_token_pair": {
"client_token": "071DC1BE-BB7B-4BCD-BB0F-FD1D3D4CBA3A"
},
"event_type": "DISCOUNT",
"created_at": "2024-09-20T00:10:48.000Z"
}
}
},
"total_service_charge_money": {
"amount": 0,
"currency": "USD"
},
"combo_applied_money": {
"amount": 0,
"currency": "USD"
}
}
],
"taxes": {
"uid": "9b44cd66-d9cf-4147-8dfd-395604ae8340",
"applied_money": {
"amount": 0
},
"tax_extensions": {
"pos_tax_extension": {
"applied_to_money": {
"amount": 0,
"currency": "USD"
},
"after_application_total_money": {
"amount": 0,
"currency": "USD"
}
}
}
},
"discounts": {
"uid": "127A84DA-FCB4-42CC-8D02-CDFC134D3585",
"catalog_object_id": "M26Z4UNUPJGAYDFTO37AG3H6",
"catalog_version": 1719255009678,
"name": "\\360\\237\\224\\245HUMBLE\\360\\237\\224\\245 SHIFT MEAL & COFFEE ",
"percentage": "100",
"applied_money": {
"amount": 2400,
"currency": "USD"
},
"type": "FIXED_PERCENTAGE",
"scope": "ORDER",
"quantity": "1",
"modify_tax_basis": "MODIFY_TAX_BASIS",
"apply_per_quantity": "false",
"application_method": "MANUALLY_APPLIED"
},
"version": 1,
"total_tax_money": {
"amount": 0
},
"total_discount_money": {
"amount": 2400
},
"total_money": {
"amount": 0
},
"net_amounts": {
"total_money": {
"amount": 0
},
"tax_money": {
"amount": 0
},
"discount_money": {
"amount": 2400
}
},
"net_amount_due_money": {
"amount": 0
},
"client_timestamps": {
"updated_at": "2024-09-20T00:10:50Z"
}
},
"fields_to_clear": "note",
"idempotency_key": "F652464B-5530-4C77-9E26-13CB7F402F30",
"order_id": "pQtsAkjhR3RPrBBfhf64EBFxscUZY",
"precalculated_order": "true"
},
"payment_is_pre_auth": "false",
"ordersfe_client_support": {
"supported_features": [
"WEEBLY_DIGITAL",
"WEEBLY_PICKUP",
"WEEBLY_SHIPMENT",
"CAVIAR_PICKUP",
"CAVIAR_MANAGED_DELIVERY",
"SQUARE_PICKUP",
"FRACTIONAL_QUANTITIES",
"MULTIPLE_ACTIVE_FULFILLMENTS",
"PAYMENTS",
"WEEBLY_OPEN_TAB",
"WEEBLY_DELIVERY",
"CROSS_LOCATION_FULFILLMENTS",
"FLAT_AMOUNT_TAXES",
"AUTHENTICATED_ORDERS",
"UNPAID_ORDERS",
"SQUARE_DELIVERY",
"SQUARE_SIMPLE"
],
"supported_groups": [
"ACTIVE",
"ARRIVED",
"UPCOMING",
"FULFILLMENT_CANCELED",
"VOIDED",
"COMPLETED"
],
"supported_actions": [
"ACCEPT",
"MARK_IN_PROGRESS",
"MARK_PICKED_UP",
"MARK_READY",
"MARK_SHIPPED",
"MARK_DELIVERED",
"COMPLETE",
"CANCEL",
"CANCEL_WITH_AUTHORIZED_PAYMENT",
"CANCEL_WITH_AUTHORIZED_PAYMENT"
],
"supported_fulfillment_api_actions": "UPDATE_ORDER_RECIPIENT"
}
}
{
"create_payment_request": {
"source_id": "[FILTERED]",
"idempotency_key": "1E349605-F603-45DB-8DAF-1FC5E6FDF45D",
"amount_money": {
"amount": 0,
"currency": "USD"
},
"autocomplete": "false",
"location_id": "LG2Q8QR167JGG",
"order_id": "Q18dn89YUNDu83WTUgHDVpWDb4YZY",
"accept_partial_authorization": "false",
"revenue_association_tags": "REGISTER_POS",
"geo_location": {
"coordinates": {
"filtered": "[FILTERED]"
},
"altitude_meters": 256.6510753631592,
"uncertainty_meters": 35
},
"cash_details": {
"buyer_supplied_money": {
"amount": 0,
"currency": "USD"
}
},
"square_product": "REGISTER",
"device_details": {
"device_id": "[FILTERED]",
"device_name": "iPad",
"device_installation_id": "[FILTERED]",
"device_credential": {
"token": "WTGBDHEY50CTS",
"name": "[FILTERED]"
}
},
"peripheral_metadata": {
"app_release": "6.51.2",
"app_version": "6512002",
"source_device_installation_id": "D3AD42BC-D5AB-4128-BAE9-2C17BC0DC403",
"connected_peripherals": [
{
"unique_identifier": "00:11:62:32:B7:DF",
"device_type": "Printer",
"connection_type": "NETWORK",
"manufacturer_name": "Star",
"model_name": "MCP31"
},
{
"unique_identifier": "69:35:1C:3B:90:2E",
"device_type": "Printer",
"connection_type": "NETWORK",
"manufacturer_name": "Fresh",
"model_name": "KDS"
},
{
"unique_identifier": "00:11:62:40:F8:F6",
"device_type": "Printer",
"connection_type": "NETWORK",
"manufacturer_name": "Star",
"model_name": "SP742"
},
{
"unique_identifier": "00:11:62:40:F8:E9",
"device_type": "Printer",
"connection_type": "NETWORK",
"manufacturer_name": "Star",
"model_name": "SP742"
}
]
},
"team_member_id": "TMi76ezgSsEFD6Vc",
"is_offline_request": "false"
},
"order_version": 1,
"client_support": {},
"update_order_request": {
"order": {
"id": "Q18dn89YUNDu83WTUgHDVpWDb4YZY",
"location_id": "LG2Q8QR167JGG",
"line_items": {
"uid": "ABF9551B-2802-4403-ABE3-9786CCDF9BBA",
"total_tax_money": {
"amount": 0
},
"total_discount_money": {
"amount": 1000
},
"total_money": {
"amount": 0
},
"applied_taxes": {
"uid": "7210C3A7-4AF5-40D5-B4BB-53F7E9C61CEA",
"applied_money": {
"amount": 0
}
},
"applied_discounts": {
"uid": "FE6FED46-0021-493F-A0E9-BB335B2200C7",
"discount_uid": "2E9F50A6-28DE-40AF-98C7-042A331D6CDA",
"applied_money": {
"amount": 1000,
"currency": "USD"
}
},
"line_item_extensions": {
"checkoutfe": {
"event": {
"uid": "CD0BC8C9-4E87-42D0-B7F1-47A63AC95BC6",
"event_token_pair": {
"client_token": "CD0BC8C9-4E87-42D0-B7F1-47A63AC95BC6"
},
"event_type": "DISCOUNT",
"created_at": "2024-09-19T19:40:07.000Z",
"creator_details": {
"employee": {
"employee_token": "TMU1TRYVliU-oSRS",
"read_only_full_name": "[FILTERED]",
"first_name": "[FILTERED]",
"last_name": "[FILTERED]"
}
}
}
}
}
},
"taxes": {
"uid": "E894FBE2-758F-4358-A539-8A0D9FAEF19D",
"applied_money": {
"amount": 0
},
"tax_extensions": {
"pos_tax_extension": {
"applied_to_money": {
"amount": 0,
"currency": "USD"
},
"after_application_total_money": {
"amount": 0,
"currency": "USD"
}
}
}
},
"discounts": {
"uid": "2E9F50A6-28DE-40AF-98C7-042A331D6CDA",
"catalog_object_id": "2JIEESDKDUW5MFGGKRRFPHFO",
"catalog_version": 1726767118972,
"name": "Staff Meal",
"percentage": "100",
"applied_money": {
"amount": 1000,
"currency": "USD"
},
"type": "FIXED_PERCENTAGE",
"scope": "ORDER",
"quantity": "1",
"maximum_amount_money": {
"amount": 1000,
"currency": "USD"
},
"modify_tax_basis": "MODIFY_TAX_BASIS",
"apply_per_quantity": "false",
"application_method": "MANUALLY_APPLIED"
},
"version": 1,
"total_tax_money": {
"amount": 0
},
"total_discount_money": {
"amount": 1000
},
"total_money": {
"amount": 0
},
"net_amounts": {
"total_money": {
"amount": 0
},
"tax_money": {
"amount": 0
},
"discount_money": {
"amount": 1000
}
},
"net_amount_due_money": {
"amount": 0
},
"client_timestamps": {
"updated_at": "2024-09-19T19:40:21Z"
}
},
"fields_to_clear": "order_extensions.pos_order_extension.open_ticket.predefined_ticket.ticket_template.ticket_group",
"idempotency_key": "1E349605-F603-45DB-8DAF-1FC5E6FDF45D",
"order_id": "Q18dn89YUNDu83WTUgHDVpWDb4YZY",
"precalculated_order": "true"
},
"payment_is_pre_auth": "false",
"ordersfe_client_support": {
"supported_features": [
"CAVIAR_PICKUP",
"CAVIAR_MANAGED_DELIVERY",
"SQUARE_PICKUP",
"WEEBLY_PICKUP",
"WEEBLY_DIGITAL",
"WEEBLY_SHIPMENT",
"FRACTIONAL_QUANTITIES",
"MULTIPLE_ACTIVE_FULFILLMENTS",
"PAYMENTS",
"WEEBLY_DELIVERY",
"WEEBLY_OPEN_TAB",
"CROSS_LOCATION_FULFILLMENTS",
"AUTHENTICATED_ORDERS",
"UNPAID_ORDERS",
"SQUARE_DELIVERY",
"SQUARE_SIMPLE",
"FLAT_AMOUNT_TAXES"
],
"supported_groups": [
"ACTIVE",
"IN_PROGRESS",
"NEW",
"READY",
"COMPLETED",
"ARRIVED",
"UPCOMING",
"FULFILLMENT_CANCELED",
"VOIDED"
],
"supported_actions": [
"ACCEPT",
"MARK_IN_PROGRESS",
"MARK_READY",
"MARK_PICKED_UP",
"MARK_SHIPPED",
"MARK_DELIVERED",
"COMPLETE",
"CANCEL",
"CANCEL_WITH_AUTHORIZED_PAYMENT",
"CANCEL_WITH_AUTHORIZED_PAYMENT"
],
"supported_fulfillment_api_actions": "UPDATE_ORDER_RECIPIENT"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment