Appearance
Account2Card
Method used to transfer money from a company's bank account to a user's bank card. It allows businesses to quickly and securely deposit funds onto a user's card
Authentication: api-key
Content-Type : application/json
Error response
json
{
"result": null,
"error": {
"code": "processing_error",
"message": "processing_error",
"data": "CARD_TYPE_NOT_SUPPORTED"
}
}1. Perform transaction
Endpoint details
Method:
POST
URL: BASE_URL/merchant/a2c/performTransaction
Request example
json
//Body
{
"amountInTiyin":2500000,
"userId":"string",
"cardId": "string",
"externalId": "string"
}Response example
json
//Body
//Body
{
"transactionId": "9bd1a92b-5cce-47c8-a2df-99a20836ab9e",
"status": "0",
"statusText": "SUCCESS",
}2. Check status transaction
Endpoint details
Method:
GET
URL: BASE_URL/merchant/a2c/checkTransaction/
Request example
BASE_URL/merchant/a2c/checkTransaction/{TransactionId}
Response example
json
{
"status": "0",
"statusText": "SUCCESS",
"amountInTiyin": 2500000
}3. Check statust transaction by externalId
Endpoint details
Method:
GET
URL: BASE_URL/merchant/a2c/checkTransaction/byExternalId/{external_id}/
Response example
json
{
"status": "0",
"statusText": "SUCCESS",
"amountInTiyin": 2500000
}4. Get account balance
Method returns account deposit balance.
Request example
Method:
GET
URL: BASE_URL/merchant/a2c/balance/
Headers:
plaintext
api-key: kfggfgf.given_api_key_by_paylovResponse example
json
{
"balance": 50000
}💡 Note: balance in tiyin 50000 = 500.00 UZS