Onramp

This section provides a list of possible events that can be received as webhooks for Onramp transactions.

To have the real-time updates between TransFi and Customers, we are configuring the webhook events to be sent to Customers on below events.


EventsEvent TypeStatusDescriptions
Payment InitiatedOrderinitiatedPost confirming the order details and payment method selection, the user will be redirecting to the payment checkout page
Payment AuthorisedOrderfund_settledUser has submitted the payment details on the payment checkout page and the confirmation is received from the bank
Payment UnauthorisedOrderfund_failedUser has submitted the payment details on the payment checkout page and the payment is declined from the bank
Crypto SettledOrderasset_settledUser has received the crypto
Crypto Settle FailedOrderasset_settle_failedUser has failed received the crypto
ExpiredOrderexpiredOrder expired due to inactivity

Sample Event For Order:

{
  "orgId": "OG-220927101501",
  "entityId": "OR-2302271108092",
  "entityType": "order",
  "status": "initiated",
  "user": {
    "userId": "UX-2302140112529",
    "firstName": "Nandy",
    "lastName": "Rajan",
    "country": "PH",
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "order": {
    "orderId": "OR-123456790",
    "type": "buy",
    "fiatTicker": "PHP",
    "cryptoTicker": "USDTTRC20",
    "fiatAmount": 1390,
    "cryptoAmount": 23.16390181,
    "walletAddress": "TBZmSS1Phxy8jJ9aK3Q6PyxYeNk2abcde",
    "paymentType": null,
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "partnerContext": {}
}
{
  "orgId": "OG-220927101501",
  "entityId": "OR-2302271108092",
  "entityType": "order",
  "status": "fund_settled",
  "user": {
    "userId": "UX-2302140112529",
    "firstName": "Nandy",
    "lastName": "Rajan",
    "country": "PH",
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "order": {
    "orderId": "OR-123456790",
    "type": "buy",
    "fiatTicker": "PHP",
    "cryptoTicker": "USDTTRC20",
    "fiatAmount": 1390,
    "cryptoAmount": 23.16390181,
    "walletAddress": "TBZmSS1Phxy8jJ9aK3Q6PyxYeNk2abcde",
    "paymentType": null,
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "partnerContext": {}
}
{
  "orgId": "OG-220927101501",
  "entityId": "OR-2302271108092",
  "entityType": "order",
  "status": "fund_failed",
  "user": {
    "userId": "UX-2302140112529",
    "firstName": "Nandy",
    "lastName": "Rajan",
    "country": "PH",
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "order": {
    "orderId": "OR-123456790",
    "type": "buy",
    "fiatTicker": "PHP",
    "cryptoTicker": "USDTTRC20",
    "fiatAmount": 1390,
    "cryptoAmount": 23.16390181,
    "walletAddress": "TBZmSS1Phxy8jJ9aK3Q6PyxYeNk2abcde",
    "paymentType": null,
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "partnerContext": {}
}
{
  "orgId": "OG-220927101501",
  "entityId": "OR-2302271108092",
  "entityType": "order",
  "status": "asset_settled",
  "user": {
    "userId": "UX-2302140112529",
    "firstName": "Nandy",
    "lastName": "Rajan",
    "country": "PH",
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "order": {
    "orderId": "OR-123456790",
    "type": "buy",
    "fiatTicker": "PHP",
    "cryptoTicker": "USDTTRC20",
    "fiatAmount": 1390,
    "cryptoAmount": 23.16390181,
    "walletAddress": "TBZmSS1Phxy8jJ9aK3Q6PyxYeNk2abcde",
    "paymentType": null,
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "partnerContext": {}
}
{
  "orgId": "OG-220927101501",
  "entityId": "OR-2302271108092",
  "entityType": "order",
  "status": "asset_settle_failed",
  "user": {
    "userId": "UX-2302140112529",
    "firstName": "Nandy",
    "lastName": "Rajan",
    "country": "PH",
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "order": {
    "orderId": "OR-123456790",
    "type": "buy",
    "fiatTicker": "PHP",
    "cryptoTicker": "USDTTRC20",
    "fiatAmount": 1390,
    "cryptoAmount": 23.16390181,
    "walletAddress": "TBZmSS1Phxy8jJ9aK3Q6PyxYeNk2abcde",
    "paymentType": null,
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "partnerContext": {}
}
{
  "orgId": "OG-220927101501",
  "entityId": "OR-2302271108092",
  "entityType": "order",
  "status": "expired",
  "user": {
    "userId": "UX-2302140112529",
    "firstName": "Nandy",
    "lastName": "Rajan",
    "country": "PH",
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "order": {
    "orderId": "OR-123456790",
    "type": "buy",
    "fiatTicker": "PHP",
    "cryptoTicker": "USDTTRC20",
    "fiatAmount": 1390,
    "cryptoAmount": 23.16390181,
    "walletAddress": "TBZmSS1Phxy8jJ9aK3Q6PyxYeNk2abcde",
    "paymentType": null,
    "createdAt": "2024-11-27T05:09:15.027Z"
  },
  "partnerContext": {}
}