You can extend your integration and automate some actions.
For example, if you didn't get a postback for some reason and don't have payment status you can request information using this method
http://cent.app/api/v1/bill/payments?id=XVmbAYjjvG
In response you will get a list of payments for the given bill ID
{
"data": [
{
"id": "DR2PwBNdmw",
"bill_id": "XVmbAYjjvG",
"status": "SUCCESS",
"amount": 16,
"currency_in": "RUB",
"from_card": "553691******8680",
"created_at": "2021-08-11 19:42:27"
}
],
"success": true
}
If you need information about all payments for a period of time, you can request a list of bills using
http://cent.app/api/v1/bill/search?start_date=2021-08-10&finish_date=2021-08-11
Response will contain a list of bills
{
"data": [
{
"id": "rP2B4qA1vE",
"status": "NEW",
"type": "MULTI",
"amount": 16,
"currency_in": "RUB",
"created_at": "2021-08-11 19:36:57"
},
{
"id": "XVmbAYjjvG",
"status": "NEW",
"type": "MULTI",
"amount": 16,
"currency_in": "RUB",
"created_at": "2021-08-11 19:36:31"
},
{
"id": "oa3QqP8j0A",
"status": "NEW",
"type": "MULTI",
"amount": 10,
"currency_in": "EUR",
"created_at": "2021-08-11 19:33:03"
}
],
"success": true
}
And not you can request payments for each bill using
http://cent.app/api/v1/bill/payments?id=bill_id
You can also check your balance using this API method
https://cent.app/api/v1/merchant/balance
The reponse will look like this
{
"success": "true",
"balances": [
{
"currency": "RUB",
"balance_available": "0.12000000",
"balance_locked": "0.00000000",
"balance_hold": "0.00000000"
}
]
}
If you want to request a withdrawal using API, we have a method for this
https://cent.app/api/v1/payout/personal/create
In the reuest you need to send payout_account_id and you can find it on the page https://cent.app/merchant/withdraw/methods.
The request is very simle and you only need to send payout_account_id and amount.
You send this parameters to
https://cent.app/api/v1/payout/personal/create
and in response you will information about created withdrawal request.
Next you can track it status using this API
https://cent.app/api/v1/payout/status?id=Z0maWVk7l9
Response contains information about amount and status
{
"id": "Z0maWVk7l9",
"status": "SUCCESS",
"amount": "150.00000000",
"commission": "50.00000000",
"currency": "RUB",
"account_identifier": "411111******1234",
"created_at": "2021-09-06 06:43:40",
"success": true
}
If you don't have withdrawal ID, you can get a list of all withdrawals.
Ypu can send request with start date and end date to URL
https://cent.app/api/v1/payout/search
In response you will get a list of all withdrawals with statuses
{
"data": [
{
"id": "4NvoJw17AD",
"status": "SUCCESS",
"amount": "60.00000000",
"commission": "10.00000000",
"currency": "RUB",
"account_identifier": "+79998887766",
"created_at": "2021-09-16 11:08:00"
},
{
"id": "JDmGW9VmQ0",
"status": "SUCCESS",
"amount": "110.00000000",
"commission": "10.00000000",
"currency": "RUB",
"account_identifier": "+79998887766",
"created_at": "2021-09-06 07:01:06"
},
{
"id": "ZqmaWVk7l9",
"status": "SUCCESS",
"amount": "150.00000000",
"commission": "50.00000000",
"currency": "RUB",
"account_identifier": "411111******1234",
"created_at": "2021-09-06 06:43:40"
},
{
"id": "QX2X83r25a",
"status": "SUCCESS",
"amount": "110.00000000",
"commission": "10.00000000",
"currency": "RUB",
"account_identifier": "+79998887766",
"created_at": "2021-09-01 17:56:23"
},
{
"id": "nrmdPggmVL",
"status": "SUCCESS",
"amount": "110.00000000",
"commission": "10.00000000",
"currency": "RUB",
"account_identifier": "+79998887766",
"created_at": "2021-09-01 17:56:04"
},
{
"id": "5PvgD6km09",
"status": "DECLINED",
"amount": "50.00000000",
"commission": "1.45000000",
"currency": "RUB",
"account_identifier": "+79998887766",
"created_at": "2021-08-19 14:05:00"
},
{
"id": "Gxm9r8V28A",
"status": "DECLINED",
"amount": "50.00000000",
"commission": "50.00000000",
"currency": "RUB",
"account_identifier": "+79998887766",
"created_at": "2021-08-19 14:00:18"
},
{
"id": "W4ovy4Q7e8",
"status": "DECLINED",
"amount": "100.00000000",
"commission": "99.00000000",
"currency": "RUB",
"account_identifier": "411111******1234",
"created_at": "2021-05-06 16:08:04"
}
],
"success": true
}