Перейти к основному содержимому

receipts.get_all

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

ИмяТипОписание
idIntegerИдентификатор запроса.
countIntegerКоличество чеков. Максимальное значение - 50
fromtimestampДата начала
totimestampДата окончания
offsetIntegerКоличество последующих пропускаемых чеков. Пропускает от начала даты

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

{
"id": Integer,
"method": "receipts.get_all",
"params": {
"count": Integer
"from": timestamp,
"to": timestamp,
"offset": Integer
}
}

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

POST /api HTTP/1.1
Host: checkout.test.paycom.uz
X-Auth: 100fe486b33784292111b7dc:mjES8ycLucnvygt4dPwerK2vj45Eensn3ZPr
Cache-Control: no-cache

{
"id": 123,
"method": "receipts.get_all",
"params": {
"count": 2,
"from": 1636398000000,
"to": 1636398000000,
"offset": 0
}
}

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

{
"jsonrpc": "2.0",
"id": 123,
"result": [
{
"_id": "618a5b9f1045eb4efde669a4",
"create_time": 1636457473995,
"pay_time": 1636457474283,
"cancel_time": 0,
"state": 4,
"type": 2,
"external": false,
"operation": -1,
"category": null,
"error": null,
"description": "",
"detail": null,
"amount": 100000,
"currency": 860,
"commission": 0,
"account": [
{
"name": "loan_id",
"title": {
"ru": "Логин",
"uz": "Login",
"en": "Login"
},
"value": "2",
"main": true
},
{
"name": "transaction",
"title": {
"ru": "Номер чека",
"uz": "Chek raqami"
},
"value": 1544,
"main": false
}
],
"card": {
"number": "8600069195406311",
"expire": "9903"
},
"merchant": {
"_id": "5e730e8e0b852a417aa49ceb",
"name": "test",
"organization": "ЧП «test test»",
"address": "",
"business_id": "5e730e740b852a417aa49cea",
"epos": {
"merchantId": "106600000050000",
"terminalId": "20660000"
},
"date": 1584598670296,
"logo": null,
"type": {
"ru": "Internet",
"uz": "Internet"
},
"terms": null
},
"meta": {
"source": "subscribe",
"owner": "5e730e8e0b852a417aa49ceb"
},
"processing_id": 0
},
{
"_id": "618a5a881045eb4efde669a3",
"create_time": 1636457352583,
"pay_time": 1636457352898,
"cancel_time": 0,
"state": 4,
"type": 2,
"external": false,
"operation": -1,
"category": null,
"error": null,
"description": "",
"detail": null,
"amount": 100000,
"currency": 860,
"commission": 0,
"account": [
{
"name": "loan_id",
"title": {
"ru": "Логин",
"uz": "Login",
"en": "Login"
},
"value": "1",
"main": true
},
{
"name": "transaction",
"title": {
"ru": "Номер чека",
"uz": "Chek raqami"
},
"value": 1543,
"main": false
}
],
"card": {
"number": "8600069195406311",
"expire": "9903"
},
"merchant": {
"_id": "5e730e8e0b852a417aa49ceb",
"name": "test",
"organization": "ЧП «test test»",
"address": "",
"business_id": "5e730e740b852a417aa49cea",
"epos": {
"merchantId": "106600000050000",
"terminalId": "20660000"
},
"date": 1584598670296,
"logo": null,
"type": {
"ru": "Internet",
"uz": "Internet"
},
"terms": null
},
"meta": {
"source": "subscribe",
"owner": "5e730e8e0b852a417aa49ceb"
},
"processing_id": 0
}
]
}