Skip to main content

Örnek Sipariş Gövdesi

Yemeksepeti'nden BiSU'a gelen webhook isteğinden örnek bir siparişin istek gövdesi şu şekildedir:

{
"order_id": "73f70594-c6ec-4d63-944e-2855af0ecb31",
"external_order_id": "rjoi-jkqd",
"order_code": "10",
"client": {
"id": "21591",
"chain_id": "c56febd4-5435-4b83-a769-3be4fe9b01b8",
"name": "BiSU Hızlı Market - rjoi, 4CTQSK",
"country_code": "tr",
"store_id": "rjoi",
"external_partner_config_id": "rjoi"
},
"customer": {
"_id": "trc0xrwk",
"national_id": "",
"tax_id": "",
"first_name": "Ali",
"last_name": "Veli",
"phone_number": "+905455555555",
"delivery_address": {
"country": "",
"city": "",
"street": "Çankaya Cd.",
"number": "No:8",
"latitude": 41.01298445,
"longitude": 28.63037145,
"company": "",
"block": "",
"building": "",
"apartment": "",
"entrance": "61",
"intercom": "",
"floor": "15",
"suburb": "Adnan Kahveci Beylikdüzü",
"zipcode": "34528",
"instructions": "61 | ADNAN KAHVECI MAHALLESI CANKAYA CADDESI KENAN APT D:61
Temassız teslimat - bu siparişi müşterinin kapısına bırakın",
"formattedAddress": ""
}
},
"comment": "Online Kredi/Banka Kartı",
"items": [
{
"_id": "8627be2c-8f79-46f4-b7e6-49ac62b8faa8",
"sku": "IbZOvZ8RBFv",
"barcode": [
"19980000002065"
],
"name": "Kayla Damacana Su 19 L",
"pricing": {
"pricing_type": "UNIT",
"unit_price": 51,
"vat_percent": 0,
"total_price": 102,
"quantity": 2,
"min_quantity": 0,
"max_quantity": 2
},
"original_pricing": {
"pricing_type": "UNIT",
"unit_price": 51,
"vat_percent": 0,
"total_price": 102,
"quantity": 2,
"min_quantity": 0,
"max_quantity": 2
},
"container_deposit": 0,
"discount": 0,
"instructions": "",
"status": "NOT_PROCESSED"
}
],
"order_type": "DELIVERY",
"transport_type": "VENDOR_DELIVERY",
"payment": {
"sub_total": 102,
"order_total": 102,
"delivery_fee": 0,
"service_fee": 0,
"difference_to_minimum": 0,
"discounts": [],
"discount": 0,
"container_charge": 0,
"total_taxes": 0,
"type": "PAID"
},
"cancellation": {
"reason": "",
"cancelled_by": ""
},
"status": "RECEIVED",
"sys": {
"created_at": "2023-08-11T10:18:04.576186056Z",
"created_by": "Order Fulfilment",
"updated_at": "2023-08-11T10:18:04.576280075Z",
"updated_by": "Order Fulfilment",
"webhook_status": ""
},
"accepted_for": "2023-08-11T11:28:59Z",
"isPreorder": false
}