Skip to content

Collection Webhook

WARNING

This endpoint is provided by the merchant. The platform calls it when a collection succeeds or fails. When receiving a server-to-server notification, respond with HTTP 200; otherwise the platform retries up to 5 times. ⚠️ Note: Customers may pay only part of the amount; always verify the actual paid amount ⚠️Respond within 3 seconds; slower responses are treated as callback failures.

Best practices

  1. Treat payment as successful only when status==200 && orderStatus="SUCCESS" && amount equals the order amount
  2. Partial payment: status==200 && orderStatus="PART_SUC" (actual paid amount differs from order amount). Handle according to your business logic
  3. Refund: status==200 && orderStatus="REFUND" (often from complaints or bank risk returns). A success callback is usually sent earlier
  4. If your business handling fails, respond with HTTP 400 or 500 (non-200)
  5. The platform may send duplicate status callbacks; if already processed, still return HTTP 200
  6. Always verify callback IP and signature
  7. Keep callback response time as short as possible

Sandbox callback IP

13.214.67.82

Endpoint

POST /ds_callback_url

Request Parameters

FieldTypeRequiredDescription
statusintegerYesStatus — 200 success
msgstringYesMessage
memberIdstringYesMerchant ID
mchOrderNostringYesMerchant order number
platOrderNostringYesPlatform order number
orderStatusstring enumYesOrder status — PENDING, SUCCESS, FAILED, REFUND, PART_SUC
amountnumberYesActual paid amount
feenumberYesFee
signstringYesSignature
timeEndintegerYesCompletion time — Unix timestamp in seconds
trxIdstringNoE2e — Transaction reference
payerNamestringNoName — Payer name
taxNumberstringYesCpf/Cnpj — Payer tax number

Request Example

json
{
 "status": 200,
 "memberId": "16001",
 "mchOrderNo": "20220721144249483",
 "platOrderNo": "3KITxA1dEXhZ2IRXvwck",
 "orderStatus": "SUCCESS",
 "amount": 10000,
 "fee": 100,
 "msg": "success",
 "timeEnd": 1658387041,
 "trxId": "E00360305202006230714a597afa17c8",
 "payerName": "name",
 "taxNumber": "60712036351",
 "sign": "VJ0pQTRvHI7Tlc8TVodYOlDZzyxcDIJumD5pit+/eFcGYInT9ynePuyGXAqnoqrxeEvNbtN++DYd5J2oG16CIQU8qX9XFMj4o+DNPuUzNdaF06HhlkUxwPTTeSWCDOuw2XPtMRY0u8T/KA2PbzrX2lr4I6siICZaDHeocjO9PI0="
}

Transafe Developer Documentation