Login | Sign Up
  • FA
  • EN

API Docs

POST /api/v1/payments/deposit

Creates a deposit request for the authenticated user to add funds to their account.


Permissions

PermissionDescription
payments.view_ownAccess the payment system
payments.depositDeposit money into own account

Request Body Parameters

NameTypeRequiredDescriptionExample
amountdecimalYesAmount to credit, in Tooman. Minimum 1700000
descriptionstringNoDescription for the deposit (max 2000 characters)"Top-up"

amount is what the user's balance is credited with. The gateway's fee is charged on top of it, so the figure the user actually pays is payable_amount — see the gateway fee.


Request Example

{
  "amount": 700000,
  "description": "Top-up"
}

Response

201 Created

Returns a payment gateway link for the user to complete the deposit process, along with the amounts involved. All amounts are in Tooman, and amount + gateway_fee == payable_amount.

FieldTypeDescription
linkstringGateway URL to redirect the user to
amountnumberAmount the user's balance will be credited with
gateway_feenumberGateway fee the user pays on top of amount
payable_amountnumberTotal the user is charged at the gateway

Example

{
  "link": "https://gateway.zibal.ir/start/123456789",
  "amount": 700000,
  "gateway_fee": 7786,
  "payable_amount": 707786
}

Error Responses

StatusDescriptionReference
500Payment service provider error ({ "message": "Payment service provider error.", "error": "..." })N/A
422Validation errorValidation error
401UnauthorizedAuthentication error
Dambel

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub