receipts get all
# send request to payme api
from pprint import pprint
from payme.receipts.subscribe_receipts import PaymeSubscribeReceipts
rclient = PaymeSubscribeReceipts(
base_url="https://checkout.test.paycom.uz/api/",
paycom_id="5e730e8e0b852a417aa49ceb",
paycom_key="#MWnwHNYATJo%W@XvO5nISiY&mG7PEuzDX18"
)
resp = rclient._reciepts_get_all(
count=2,
_from=1636398000000,
to=1636398000000,
offset=0
)
pprint(resp)
# response from payme api
{
"jsonrpc": "2.0",
"id": 123,
"result": [
{
"_id": "6311946bc4420cbf2712a247",
"create_time": 1662096491076,
"pay_time": 0,
"cancel_time": 0,
"state": 0,
"type": 2,
"external": false,
"operation": -1,
"category": null,
"error": null,
"description": "",
"detail": null,
"amount": 400000,
"currency": 860,
"commission": 0,
"account": [
{
"name": "transaction",
"title": {
"ru": "Номер чека",
"uz": "Chek raqami"
},
"value": 2325,
"main": true
}
],
"card": null,
"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": null
},
{
"_id": "63119303c4420cbf2712a245",
"create_time": 1662096131667,
"pay_time": 0,
"cancel_time": 1662096182979,
"state": 50,
"type": 2,
"external": false,
"operation": -1,
"category": null,
"error": null,
"description": "",
"detail": null,
"amount": 400000,
"currency": 860,
"commission": 0,
"account": [
{
"name": "transaction",
"title": {
"ru": "Номер чека",
"uz": "Chek raqami"
},
"value": 2324,
"main": true
}
],
"card": null,
"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",
"source_cancel": "subscribe"
},
"processing_id": null
}
]
}
Last updated