Creating a payment application¶
Parameters¶
HTTP method |
Access rights |
URL | Note |
---|---|---|---|
POST | manage_payments | https://api.admitad.com/payments/request/{id}/ |
Returns the application, where id is currency ID (System currencies). |
POST | manage_payments | https://api.admitad.com/payments/request/{id}/settings/{settings}/ |
Returns the application, where id is the currency ID (System currencies), and where settings is the payment data ID (Payment data information). |
* Returns the result in the JSON format.
Example of use¶
Example of a request with utility ``curl``:
curl -L -H 'Authorization: Bearer access_token' -X POST https://api.admitad.com/payments/request/USD/settings/9/
Example of the response from the API server in the JSON format:
{
"status": "pending",
"comment": "",
"billing_info": {
"id": 9,
"name": "RUB #9"
},
"finally_currency": "RUB",
"datetime": "2012-05-27 19:45:07",
"currency": "EUR",
"conversion_rate": "82.72",
"payment_sum": "35742.00",
"cancel_bill_id": null,
"converted_payment_sum": "2956488.88",
"has_statement": false,
"id": 335,
"withdrawal_type": "webmoney"
},