Skip to content

Данные по transaction_id

При создании заказа асинхронно, выдается уникальный transaction_id, по которому можно получить данные заказа (order_id) и его накладные (invoices)

Метод запроса: GET

bash
https://gateway.spark-dev.team/cabinet/api/client/v2/order/<transaction_id>/transaction
Пример ответа
json
{
    "data": {
        "order_id": 21,
        "errors": [],
        "transaction_id": "8a99aa0c-6538-415b-8dbe-8c5772ba804c",
        "invoices": [
            {
                "id": 61,
                "title": "Yaroslav Tarasenko",
                "invoice_number": "SP00000046",
                "track_number": null,
                "latitude": "52.285577",
                "longitude": "76.940722",
                "full_address": "Майры street 43 151"
            },
            {
                "id": 62,
                "title": "Yaroslav Tarasenko",
                "invoice_number": "SP00000047",
                "track_number": null,
                "latitude": "52.285577",
                "longitude": "76.940722",
                "full_address": "Mayra street 43 151"
            },
            {
                "id": 63,
                "title": "Yaroslav Tarasenko",
                "invoice_number": "SP00000048",
                "track_number": null,
                "latitude": "52.285577",
                "longitude": "76.940722",
                "full_address": "Mayra street 43 151"
            },
            {
                "id": 64,
                "title": "Yaroslav Tarasenko",
                "invoice_number": "DOP0000016",
                "track_number": null,
                "latitude": "52.285577",
                "longitude": "76.940722",
                "full_address": "Mayra street 43 151"
            }
        ]
    },
    "code": 0,
    "success": true,
    "message": "",
    "errors": []
}