SERVER_HOST:

Prod: https://server.chocodostavka.kz

Dev: https://dev-server.chocodostavka.kz

Статусы заказа:

Сделайте запрос методом GET по ссылке: {SERVER_HOST}/api-gate/v0/deliveries/orders/<order_id>

Headers:

-header 'Authorization: JWT {Token}' \\
-header 'Content-Type: application/json' \\

Response:

Status: 200 Ok

Data:

{ 
   "id": 11,
   "merchant_order_id": 1021,
   "product_name": "Бутылочка дорогого вина",
   "status": 1,
   "courier_name": "Роман",
   "courier_phone": "+77076013366",
   "price": 1250,
   "was_returned": false,
   "extra_info": "",
	 "sms_code": "4321",
   "tracking_short_link": "<https://s.choco.kz/rweEA>",
   "tracking_uuid": "a273356d-9cfc-4f37-b89f-0070052ab85a",
   "callback_url": "<callback_url>",
   "from": {
       "address": {
           "apartment": "",
           "entrance": "",
           "floor": "",
           "intercom": "",
           "extra_info": "Заезд со стороны Достык",
           "city": "Алматы, Казахстан",
           "street": "Аль-Фараби",
           "building": "12Б",
           "longitude": 76.88137,
           "latitude": 43.226345,
           "geo_object": "{\\"metaDataProperty\\": {\\"GeocoderMetaData\\": {\\"precision\\": \\"exact\\", \\"text\\": \\"Казахстан, Алматы, улица Байзакова, 280\\", \\"kind\\": \\"house\\", \\"Address\\": {\\"country_code\\": \\"KZ\\", \\"formatted\\": \\"Казахстан, Алматы, улица Байзакова, 280\\", \\"Components\\": [{\\"kind\\": \\"country\\", \\"name\\": \\"Казахстан\\"}, {\\"kind\\": \\"province\\", \\"name\\": \\"Алматы\\"}, {\\"kind\\": \\"locality\\", \\"name\\": \\"Алматы\\"},{\\"kind\\": \\"street\\", \\"name\\": \\"улица Байзакова\\"}, {\\"kind\\": \\"house\\", \\"name\\": \\"280\\"}]}, \\"AddressDetails\\": { \\"Country\\": {\\"AddressLine\\": \\"Казахстан, Алматы, улица Байзакова, 280\\", \\"CountryNameCode\\": \\"KZ\\", \\"CountryName\\": \\"Казахстан\\", \\"AdministrativeArea\\": {\\"AdministrativeAreaName\\": \\"Алматы\\",\\"Locality\\": {\\"LocalityName\\": \\"Алматы\\", \\"Thoroughfare\\": { \\"ThoroughfareName\\": \\"улица Байзакова\\", \\"Premise\\": {\\"PremiseNumber\\": \\"280\\"}}}}}}}},\\"description\\": \\"Алматы, Казахстан\\", \\"name\\": \\"улица Байзакова, 280\\",\\"boundedBy\\": {\\"Envelope\\": {\\"lowerCorner\\": \\"76.910943 43.234234\\", \\"upperCorner\\": \\"76.919154 43.240237\\"}},\\"Point\\": {\\"pos\\": \\"76.915048 43.237235\\"}, \\"uriMetaData\\": {\\"URIs\\": [{\\"uri\\": \\"ymapsbm1://geo?ll=76.915%2C43.237&spn=0.001%2C0.001&text=%D2%9A%D0%B0%D0%B7%D0%B0%D2%9B%D1%81%D1%82%D0%B0%D0%BD%2C%20%D0%90%D0%BB%D0%BC%D0%B0%D1%82%D1%8B%2C%20%D0%91%D0%B0%D0%B9%D0%B7%D0%B0%D2%9B%D0%BE%D0%B2%20%D0%BA%D3%A9%D1%88%D0%B5%D1%81%D1%96%2C%20280\\"}],\\"URI\\": {\\"uri\\": \\"ymapsbm1://geo?ll=76.915%2C43.237&spn=0.001%2C0.001&text=%D2%9A%D0%B0%D0%B7%D0%B0%D2%9B%D1%81%D1%82%D0%B0%D0%BD%2C%20%D0%90%D0%BB%D0%BC%D0%B0%D1%82%D1%8B%2C%20%D0%91%D0%B0%D0%B9%D0%B7%D0%B0%D2%9B%D0%BE%D0%B2%20%D0%BA%D3%A9%D1%88%D0%B5%D1%81%D1%96%2C%20280\\"}}}"
       },
       "order_picking_time": 1,
       "contact_name": "Алишер",
       "phone_number": "+77076013399",
       "id": 36
   },
   "to": {
           "address": {
               "apartment": "",
               "entrance": "",
               "floor": "",
               "intercom": "",
               "extra_info": "Заезд со стороны Тлендиева",
               "city": "Алматы, Казахстан",
               "street": "проспект Абая",
               "building": "18/1 блок 5",
               "longitude": 76.949885,
               "latitude": 43.254887,
               "geo_object": "{\\"metaDataProperty\\": {\\"GeocoderMetaData\\": {\\"precision\\": \\"exact\\", \\"text\\": \\"Казахстан, Алматы, улица Байзакова, 280\\", \\"kind\\": \\"house\\", \\"Address\\": {\\"country_code\\": \\"KZ\\", \\"formatted\\": \\"Казахстан, Алматы, улица Байзакова, 280\\", \\"Components\\": [{\\"kind\\": \\"country\\", \\"name\\": \\"Казахстан\\"}, {\\"kind\\": \\"province\\", \\"name\\": \\"Алматы\\"}, {\\"kind\\": \\"locality\\", \\"name\\": \\"Алматы\\"},{\\"kind\\": \\"street\\", \\"name\\": \\"улица Байзакова\\"}, {\\"kind\\": \\"house\\", \\"name\\": \\"280\\"}]}, \\"AddressDetails\\": { \\"Country\\": {\\"AddressLine\\": \\"Казахстан, Алматы, улица Байзакова, 280\\", \\"CountryNameCode\\": \\"KZ\\", \\"CountryName\\": \\"Казахстан\\", \\"AdministrativeArea\\": {\\"AdministrativeAreaName\\": \\"Алматы\\",\\"Locality\\": {\\"LocalityName\\": \\"Алматы\\", \\"Thoroughfare\\": { \\"ThoroughfareName\\": \\"улица Байзакова\\", \\"Premise\\": {\\"PremiseNumber\\": \\"280\\"}}}}}}}},\\"description\\": \\"Алматы, Казахстан\\", \\"name\\": \\"улица Байзакова, 280\\",\\"boundedBy\\": {\\"Envelope\\": {\\"lowerCorner\\": \\"76.910943 43.234234\\", \\"upperCorner\\": \\"76.919154 43.240237\\"}},\\"Point\\": {\\"pos\\": \\"76.915048 43.237235\\"}, \\"uriMetaData\\": {\\"URIs\\": [{\\"uri\\": \\"ymapsbm1://geo?ll=76.915%2C43.237&spn=0.001%2C0.001&text=%D2%9A%D0%B0%D0%B7%D0%B0%D2%9B%D1%81%D1%82%D0%B0%D0%BD%2C%20%D0%90%D0%BB%D0%BC%D0%B0%D1%82%D1%8B%2C%20%D0%91%D0%B0%D0%B9%D0%B7%D0%B0%D2%9B%D0%BE%D0%B2%20%D0%BA%D3%A9%D1%88%D0%B5%D1%81%D1%96%2C%20280\\"}],\\"URI\\": {\\"uri\\": \\"ymapsbm1://geo?ll=76.915%2C43.237&spn=0.001%2C0.001&text=%D2%9A%D0%B0%D0%B7%D0%B0%D2%9B%D1%81%D1%82%D0%B0%D0%BD%2C%20%D0%90%D0%BB%D0%BC%D0%B0%D1%82%D1%8B%2C%20%D0%91%D0%B0%D0%B9%D0%B7%D0%B0%D2%9B%D0%BE%D0%B2%20%D0%BA%D3%A9%D1%88%D0%B5%D1%81%D1%96%2C%20280\\"}}}"},
           "contact_name": "Вася Иванов",
           "phone_number": "+77076012246",
           "id": 37
   }}