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 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 request 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 simple 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.
You 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": "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
}