GuidesAPI ReferenceChangelog
API Reference

Conversion Webhooks

Webhook events for currency conversion (RFQ) transaction status changes.

Events

Event NameStatusDescription
conversion.completedCOMPLETEDConversion executed successfully
conversion.failedFAILEDConversion transaction failed

conversion.completed

Triggered when a currency conversion is successfully executed.

Payload

{
  "event_name": "conversion.completed",
  "resource": {
    "type": "conversions",
    "id": "conv_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  },
  "data": {
    "status": "COMPLETED",
    "customer_id": "cus_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "account_id": "BZ-ABCD-1234",
    "transaction_id": "conv_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "created_at": "2024-01-22T12:00:00.000Z",
    "modified_at": "2024-01-22T12:00:05.000Z"
  }
}

Fields

FieldTypeDescription
statusstringAlways COMPLETED for this event
customer_idstringThe customer ID who executed the conversion
account_idstringAccount ID of the customer
transaction_idstringUnique identifier for the conversion transaction
created_atstringISO 8601 timestamp when the conversion was initiated
modified_atstringISO 8601 timestamp when the conversion was completed

conversion.failed

Triggered when a currency conversion fails.

Payload

{
  "event_name": "conversion.failed",
  "resource": {
    "type": "conversions",
    "id": "conv_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  },
  "data": {
    "status": "FAILED",
    "customer_id": "cus_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "account_id": "BZ-ABCD-1234",
    "transaction_id": "conv_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "created_at": "2024-01-22T12:00:00.000Z",
    "modified_at": "2024-01-22T12:00:05.000Z"
  }
}

Fields

FieldTypeDescription
statusstringAlways FAILED for this event
customer_idstringThe customer ID who initiated the conversion
account_idstringAccount ID of the customer
transaction_idstringUnique identifier for the conversion transaction
created_atstringISO 8601 timestamp when the conversion was initiated
modified_atstringISO 8601 timestamp when the conversion failed

Common Failure Reasons

Conversions may fail due to:

  • Insufficient balance
  • Quote expired
  • Market conditions changed
  • System errors