Withdraw
Send USDT or Matic back to your whitelisted address
This endpoint allows you to withdraw USDT or Matic from your kamiPay wallet to a previously whitelisted address.
Instructions are simple, just add the chain, token, amount, the address from and address to. If the addresses are not previously mapped to your user, the endpoint will fail with status 400.
Request Body
Name | Type | Description |
---|---|---|
chain | string | Required. Indicates the blockchain network in use. Currently only 'polygon' is supported. |
token | string | Required. Represents the token to withdraw: 'usdt' or 'matic'. |
amount | float | Required. Specifies the amount to withdraw, expressed as a float. |
from_address | string | Required. Represents the sending wallet's address. |
to_address | string | Required. Represents the receiving wallet's address. Must be previously whitelisted. |
The receiving address must be previously whitelisted for your account. Non-whitelisted addresses will result in a 400 error.
Example Request
Response
Withdrawal transactions are processed on the blockchain and may take some time to complete depending on network conditions.
Always double-check the receiving address before initiating a withdrawal, as blockchain transactions cannot be reversed once confirmed.