I need you to create a model in C# about this document and for an integrator who joined…
- User
I need you to create a model in C# about this document and for an integrator who joined this year:
Get Order Details GET https://openapi.didi-food.com/v1/order/order/detail
This Get Order Details endpoint allows a developer to pull the details of a single order.
NOTE: We’ll send new order notification to the webhook provided by the Integrator to receive any new event from DiDiFood. Please keep differentiate them with type. For more details please check the documentation in Order Webhooks.
Request Path Parameter Name Type Description Required Example auth_token string The auth_token for the shop. Yes ZGQ5ZjVlZGUyYmFhNDM2ZmE0ZDA5OTE5ZjI1YzBhNjU= order_id long The ID of the order in DiDiFood’s system. Yes 5764607653830199020 Response Body Parameters Name Type Description order_id long 19-digit unique identification number order in DiDiFood system that is used for tracking and after sales services status int The current state of the order. Check the table below for details. shop_accept_status int The status of the order before_status int The status of the order before the one displayed in status. Check the table below for details order_index int A handshake number (which is much simplier than the 19 digit order_id) of the order that is used to match the number in the courier APP. This number will be repeated in every Store, every day starting from 1 until the last secuence number of the order of the day in DiDiFood remark string Instructions from a consumer in regards to the preparation of the order. This function can be enabled or unenabled in the DiDiStore application city_id int The ID of the city in DiDi’s system country string The identification of the country of the order timezone string The identification of the time zone of the order pay_type int The payment method chosen by the consumer to DiDiFood. It is important to highlight that when they pay cash it doesn't mean that the store needs to receive cash. It is essencial to combine the results of pay_type 2 with values > 0 under shop_paid_money for DiDiFood delivery and pay_type 2 with values > 0 under customer_need_paying_money for Store delivery, to determine whether a Store should receive any cash from the courier or the consumer depending on the delivery type. Map directly the values received in the values of shop_paid_money or customer_need_paying_money to avoid any discrepancy in the store payment reconciliation with DiDiFood. Values for pay_type: 1-Online payment; 2-Cash; 3-POS (Payment method that requires the courier to take a POS machine to receive the payment from consumer); 4: Wallet (when DiDi’s wallet/99Pay is selected); 5: PayPay without secret; 6: PayPay with secret delivery_type int How the order will be delivered. This depends on the agreement of the store with DiDiFood. Values for delivery_type: 1-Delivery done by DiDi; 2-Delivery done by the store expected_cook_eta int It is recommended to inform the shop prepared before this time. After this time, the rider can report the meal timeout. Unit: second expected_arrived_eta int The time DiDiFood that the order will be delivered to the consumer. Unit: seconds create_time int When the order was placed. Unit: unix_timestamp pay_time int When the order was paid. Unit: unix_timestamp complete_time int When the order was completed. Unit: unix_timestamp cancel_time int When the order was canceled. Unit: unix_timestamp shop_confirm_time int When the order was confirmed by the shop. Unit: unix_timestamp price array A structure with all the order’s prices. Check below for all the information sent. Note: Price is always an integer value (never decimals) because the price is set in the lowest denomination (e.g. cents for MXN currency, not Peso) shop struct A structure with the shop information. Check below for all the information sent. receive_address struct A structure with the customer information. Check below for all the information sent order_items struct A structure with the item information. Check below for all the information sent promotions array A structure with all promotion information of the whole order. Check below for all the information sent Order Status DiDi Status 100 Order created 200 Order accepted (The store sent confirmation) 400 The rider took the order for delivery 500 The rider arrived at the customer's location 600 Order finished, completed 901, 902 Cancelation -- Cancelled by the consumer 921, 923 Cancelation -- Cancelled by the store (after receiving the order) 922 Cancelation -- Cancelled by the store due to timeout (Not confirmed order acceptance within the permitted timeframe) 961 Cancelation -- Cancelled by DiDiFood customer service due to request of the consumer 971, 981 Cancelation -- Cancelled by courier Response Body Parameters - Price Note: Price is always an integer value up to 2 decimals. The price is set in the lowest denomination of the currency of the applicable country. Mexico and Peru allows decimals , therefore you can receive prices of 123.45 as 12345. Colombia and Costa Rica, decimals are not allowed, you'll never receive prices like 123.45, but you will receive prices like 123.00 as 12300.
- Assistant