The customer can configure to receive updates at different stages of the
QR Code generation process and transaction status. There are three options for
settings:
- After generating a QR Code.
- After paying a deposit via QR Code.
- Requested withdrawal status (success or failure).
Customer may provide separate webhook URLs for each event or a single
URL that receives all updates.
Configuration Example
Body example:
{
"id": "ID_TRANSACTION",
"type": "deposit OR withdraw",
"action": "Action status",
"partner_id": "Free string that must be sent to Pay2Free along with the URL. This ID exists so that the partner can identify which Merchant the transaction is from.”
}
Client URL: Url to be provided by the customer
HTTP Method: POST
Deposit:
- action > (status)
- requested: QRCode generation
curl --location 'https://{YOUR_URL}.com/deposit' \
--header 'Content-Type: application/json' \
--data '{
"id": "125346",
"type": "deposit",
"action": "requested",
"partner_id": "4589556"
}'
- updated: Change in QRCode (Payment Received)
curl --location 'https://{YOUR_URL}.com/deposit' \
--header 'Content-Type: application/json' \
--data '{
"id": "125346",
"type": "deposit",
"action": "updated",
"partner_id": "4589556"
}'
Withdraw:
- action > (status)
- updated: Change in withdrawal status (Withdrawal made successful)
curl --location 'https://{YOUR_URL}.com/withdraw' \
--header 'Content-Type: application/json' \
--data '{
"id": "658975",
"type": "withdraw",
"action": "updated",
"partner_id": "356896"
}'
- updated: Change in withdrawal status (Withdrawal failed)
curl --location 'https://{YOUR_URL}.com/withdraw' \
--header 'Content-Type: application/json' \
--data '{
"id": "658975",
"type": "withdraw",
"action": "updated",
"partner_id": "356896"
}'