Order events

This page covers all Orders events that can trigger webhook notifications, and their associated data objects for the Webhooks v2 service.

Orders event types

To receive a specific event, include its eventType in the webhook's notification object.

Event typeData object returned
order.updatedorderDetails

Data objects

orderDetails is the primary object returned in Orders webhook events. Nested objects are included only when relevant to the order type and lifecycle stage.

orderDetails

ParameterTypeDescription
idstringUnique identifier for the order
statusorderStatusCurrent status of the order
createdAtstringISO 8601 timestamp for when the order was created
updatedAtstringISO 8601 timestamp for when the order was last updated (optional)
executionResponseDetailsexecutionResponseDetailsOrder execution details
executionStepsexecutionSteps arrayArray of execution steps with their statuses
paymentInstructionspaymentInstructionsPayment instructions for on/off ramps orders (optional)
receiptreceiptTransfer receipt information (optional)
settlementsettlementSettlement details
viaviaAccount access information
customerInternalReferenceIdstringCustomer's internal reference ID for the order (optional)
notestringNote providing additional information about the order (optional)
expiresAtstringISO 8601 timestamp for when the order expires (optional)
failurefailureFailure information for if the order failed
createdBystringIdentifier of the user or service that created the order
generalFeesfee arrayArray of fees associated with the order

orderStatus

ValueDescription
CREATEDOrder was created but not yet initiated
PENDING_USER_ACTIONOrder is waiting for user action, such as a policy check or approval
AWAITING_PAYMENTOrder is waiting for payment to be initiated
PROCESSINGOrder is currently being processed
CANCELLEDOrder was cancelled
COMPLETEDOrder was successfully completed
FAILEDOrder failed. Check the failure field for details

executionResponseDetails

ParameterTypeDescription
typestringExecution type. Possible values: QUOTE, MARKET
quoteIdstringQuote ID. Required if type is QUOTE
reQuotebooleanWhether this is a re-quote. Required if type is QUOTE
sidestringOrder side. Possible values: BUY, SELL
baseAmountstringAmount to convert
quoteAmountstringQuote amount. Optional, but required if type is QUOTE
baseAssetIdstringSource asset identifier
quoteAssetIdstringTarget asset identifier
baseAssetRailstringBase asset rail identifier (optional)
quoteAssetRailstringQuote asset rail identifier (optional)

executionSteps

ParameterTypeDescription
typestringStep type. Possible values: APPROVE, DELIVERY, EXECUTE, SETTLEMENT
statusstringStep status. Possible values: WAITING, PROCESSING, COMPLETED, FAILED, CANCELLED
feefeeFee associated with this step (optional)
txIdstringTransaction ID within the main workspace (optional)
txHashstringBlockchain transaction hash (optional)
errorstringError information if the step failed. Possible value: INTERNAL_ERROR (optional)

paymentInstructions

ParameterTypeDescription
typestringPayment instruction type. Possible values: IBAN, SWIFT, ACH, WIRE, SPEI, PIX, LOCAL_BANK_TRANSFER, EUROPEAN_SEPA, MOBILE_MONEY, BLOCKCHAIN
referenceIdstringReference ID for the payment instruction (optional)
addressobjectAddress details specific to the payment type

receipt

ParameterTypeDescription
typestringReceipt type. Possible values: BLOCKCHAIN, FIAT
txHashstringBlockchain transaction hash. Required if type is BLOCKCHAIN
amountstringTransfer amount
referenceIdstringReference ID for fiat transfer (optional)

settlement

ParameterTypeDescription
typestringSettlement type. Possible values: PREFUNDED, DVP
destinationAccountaccountReferenceDestination account reference
sourceAccountsettlementSourceAccountSource account (optional for PREFUNDED)

accountReference

ParameterTypeDescription
accountIdstringAccount ID. Optional for ONE_TIME_ADDRESS
typestringAccount type. Possible values: VAULT_ACCOUNT, EXCHANGE_ACCOUNT, UNMANAGED_WALLET, FIAT_ACCOUNT, CONNECTED_ACCOUNT, ONE_TIME_ADDRESS
addressstringAddress for one-time address accounts. Required for ONE_TIME_ADDRESS
tagstringTag or memo for one-time address accounts (optional)

settlementSourceAccount

ParameterTypeDescription
typestringAccount type. Possible values: EXTERNAL, VAULT_ACCOUNT, EXCHANGE_ACCOUNT, CONNECTED_ACCOUNT
accountIdstringAccount ID. Optional for EXTERNAL

via

ParameterTypeDescription
typestringAccount access type. PROVIDER_ACCOUNT
accountIdstringThe ID of the account
providerIdstringThe ID of the venue or provider (optional)

failure

ParameterTypeDescription
reasonstringFailure reason. Possible values: INSUFFICIENT_FUNDS, UNKNOWN_REASON, INITIATE_PAYMENT_FAILURE, POLICY_REJECTION, TRANSACTION_FAILED, ACCOUNT_NOT_ACTIVE, ACCOUNT_NOT_FOUND, BAD_REQUEST, QUOTE_NOT_READY, INVALID_DATA, UNSUPPORTED_CONVERSION, REFUNDED, FAILED_BY_PROVIDER, ORDER_EXPIRED, TRANSACTION_CANCELLED, TRANSACTION_REJECTED, TRANSACTION_BLOCKED
failureInfoobjectAdditional failure information as key-value pairs

fee

ParameterTypeDescription
feeTypestringFee type. Possible values: ORDER, NETWORK, SPREAD, REBATE
assetIdstringAsset identifier for the fee
amountTypestringAmount type. Possible values: FIXED, BPS
amountstring or numberFee amount. FIXED is a string value. BPS is a numeric value where 1 equals 0.01 percent and 10,000 equals 100 percent

IBAN

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
ibanstringInternational Bank Account Number

SWIFT

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
swiftCodestringSWIFT or BIC code identifying the bank
routingNumberstringRouting number identifying the bank account

ACH

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
bankNamestringName of the bank (optional)
bankAccountNumberstringBank account number for the ACH transfer
routingNumberstringRouting number identifying the bank account
accountTypestringBank account type. Possible values: CHECKING, SAVINGS

WIRE

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
bankNamestringName of the bank (optional)
bankAccountNumberstringBank account number for the wire transfer
routingNumberstringRouting number identifying the bank account
bankAddressbankAddressBank address (optional)

SPEI

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
bankNamestringName of the bank (optional)
bankAccountNumberstringBank account number for the SPEI transfer

PIX

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
pixKeystringPIX key identifier
keyTypestringPIX key type. Possible values: CPF, CNPJ, EMAIL, PHONE, RANDOM
bankNamestringName of the bank (optional)
bankCodestringBank code identifier (optional)

LOCAL_BANK_TRANSFER

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
accountNumberstringBank account number
bankNamestringName of the bank
bankCodestringBank code identifier

EUROPEAN_SEPA

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
ibanstringInternational Bank Account Number
bicstringBank Identifier Code (optional)
bankNamestringName of the bank (optional)
bankBranchstringBank branch information (optional)
bankAddressstringBank address (optional)
purposeCodestringPurpose code for the transfer (optional)
taxIdstringTax identification number (optional)

MOBILE_MONEY

ParameterTypeDescription
accountHolderaccountHolderDetailsAccount holder information
mobilePhoneNumberstringMobile phone number in E.164 format
providerstringMobile money provider. Possible values: MPESA, AIRTEL, MTN, TIGO, ORANGE
beneficiaryDocumentIdstringBeneficiary document ID (optional)
beneficiaryRelationshipstringRelationship to the beneficiary (optional)

AccountHolderDetails

ParameterTypeDescription
namestringAccount holder full name
addressstringStreet address (optional)
citystringCity of residence (optional)
countrystringCountry code in ISO 3166-1 alpha-2 format (optional)
subdivisionstringAdministrative subdivision in ISO 3166-2 format (optional)
postalCodestringPostal or ZIP code (optional)

bankAddress

ParameterTypeDescription
streetNamestringStreet name (optional)
buildingNumberstringBuilding number (optional)
postalCodestringPostal or ZIP code (optional)
citystringCity (optional)
subdivisionstringAdministrative subdivision in ISO 3166-2 format (optional)
districtstringDistrict or area within the city (optional)
countrystringCountry code in ISO 3166-1 alpha-2 format (optional)

Example of events

{
  "event": {
    "type": "order.updated",
    "data": {
      "id": "ramp-abc123def456",
      "status": "PROCESSING",
      "createdAt": "2024-01-15T10:30:00.000Z",
      "updatedAt": "2024-01-15T10:35:00.000Z",
      "executionResponseDetails": {
        "type": "QUOTE",
        "quoteId": "quote-xyz789",
        "reQuote": false,
        "side": "BUY",
        "baseAmount": "1000.00",
        "quoteAmount": "950.50",
        "baseAssetId": "USD",
        "quoteAssetId": "BTC",
        "baseAssetRail": "FIAT",
        "quoteAssetRail": "BLOCKCHAIN"
      },
      "executionSteps": [
        {
          "type": "APPROVE",
          "status": "COMPLETED",
          "txId": "tx-approve-001"
        },
        {
          "type": "EXECUTE",
          "status": "PROCESSING",
          "txId": "tx-execute-002"
        },
        {
          "type": "SETTLEMENT",
          "status": "WAITING"
        }
      ],
      "paymentInstructions": {
        "type": "IBAN",
        "referenceId": "ref-123456",
        "address": {
          "accountHolder": {
            "name": "John Doe",
            "address": "123 Main Street",
            "city": "New York",
            "country": "US",
            "subdivision": "NY",
            "postalCode": "10001"
          },
          "iban": "GB82WEST12345698765432"
        }
      },
      "receipt": {
        "type": "BLOCKCHAIN",
        "txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
        "amount": "0.025"
      },
      "settlement": {
        "type": "DVP",
        "sourceAccount": {
          "accountId": "vault-account-123",
          "type": "VAULT_ACCOUNT"
        },
        "destinationAccount": {
          "accountId": "exchange-account-456",
          "type": "EXCHANGE_ACCOUNT"
        }
      },
      "via": {
        "type": "PROVIDER_ACCOUNT",
        "accountId": "provider-account-789",
        "providerId": "provider-coinbase"
      },
      "customerInternalReferenceId": "customer-ref-001",
      "note": "Monthly crypto purchase",
      "expiresAt": "2024-01-15T11:30:00.000Z",
      "createdBy": "user-12345",
      "generalFees": [
        {
          "feeType": "ORDER",
          "assetId": "USD",
          "amountType": "FIXED",
          "amount": "10.00"
        },
        {
          "feeType": "NETWORK",
          "assetId": "BTC",
          "amountType": "BPS",
          "amount": 50
        }
      ]
    }
  }
}