receipts.cancel

Параметры запроса

Параметр Тип Описание
id String ID Чека


Формат запроса

{
    id: String
}


Пример запроса

PPOST /api HTTP/1.1
Host: checkout.test.paycom.uz
X-Auth: 100fe486b33784292111b7dc:Rw712wMJspZBczFvrG09?bHkSNxnD4PY0n1C
Content-Type: application/json
Cache-Control: no-cache

{
    "id": 123,
    "method": "receipts.cancel",
    "params": {
        "id": "2e0b1bc1f1eb50d487ba268d"
    }
}


Формат ответа

{
    result: receipt
}


Пример ответа

{
    "jsonrpc": "2.0",
    "id": 123,
    "result": {
        "receipt": {
            "_id": "2e0b1bc1f1eb50d487ba268d",
            "create_time": 1482823890336,
            "pay_time": 1482823890564,
            "cancel_time": 0,
            "state": 21,
            "type": 1,
            "external": false,
            "operation": -1,
            "category": null,
            "error": null,
            "description": "",
            "detail": null,
            "amount": 2000,
            "commission": 0,
            "account": [
                {
                    "name": "order_id",
                    "title": "Код заказа",
                    "value": "124"
                }
            ],
            "card": null,
            "merchant": {
                "_id": "100fe486b33784292111b7dc",
                "name": "Online Shop LLC",
                "organization": "ЧП «Online Shop»",
                "address": "",
                "epos": {
                    "merchantId": "106600000050000",
                    "terminalId": "20660000"
                },
                "date": 1480582278779,
                "logo": null,
                "type": "Shop",
                "terms": null
            },
            "meta": null
        }
    }
}