Core Business Process Description
Deposit process#
1.
The merchant calls POST /api/pay/unifiedOrder to create a deposit order.
2.
TarsPay returns payUrl and payData; the merchant should direct the payer to it as is.
3.
After the payer completes the payment, TarsPay sends an order status callback to the notifyUrl in the order request.
4.
The merchant verifies the signature, reconciles the order, completes idempotent processing and returns plain text OK.
5.
If no callback is received or a compensating check is needed, call POST /api/payInInfo to query the order.
Deposit rules#
The currency is fixed to ARS.
amount must be a multiple of 100.
See the Attachment Code Table for the available wayCode values.
returnUrl is only used for front-end redirection and cannot replace the asynchronous notification.
Withdraw process#
1.
The merchant calls POST /api/payOut/unifiedOrder to create a withdraw order.
2.
wayCode supports CVU or CBU; see the Attachment Code Table for the values.
3.
code = 0 only means the order has been accepted or queued.
4.
The merchant obtains the final result through the order status callback or POST /api/payOutInfo.
Withdraw rules#
The currency is fixed to ARS.
amount only supports positive integers; decimal points are not supported.
customerAccountNumber must be a 22-digit CVU or CBU.
The final status is based on the state returned by the callback or the order query.
Callback handling#
1.
Read the raw JSON request body and the X-RESP-SIGNATURE header.
2.
Verify the callback signature with the signature scheme configured for the merchant.
3.
Check mchNo, the order numbers, the currency and the amount.
4.
Process idempotently by order number and order status.
5.
Execute the full success business logic only when state = 2; handle other states according to the Attachment Code Table.
6.
Return plain text OK after processing.
The same order may receive duplicate notifications. Never ship goods, credit or refund repeatedly because of callback retries.Modified at 2026-11-05 09:26:32