Skip to main content

Crypto on-ramp

EventTrigger
order:crypto-onramp:committedUser placed an order.
order:crypto-onramp:chargedUser has been charged for their order.
order:crypto-onramp:completedUser's order has completed.
order:crypto-onramp:failedUser's order has failed.
order:crypto-onramp:refund:completedUser's order has been successfully refunded.

order:crypto-onramp:committed

Triggered when a user has placed an order.

  • id: UUID of the order.
  • status: Status of the order (pending).
  • createdAt: Timestamp at which the order was created.
  • updatedAt: Timestamp at which the order was last updated.
  • origin: Object containing information about how the user paid.
    • amount: Amount the user will pay.
    • rate: Rate used to calculate the amount.
    • asset: Currency code in the ISO 4217 format used to make the payment.
    • paymentMethod: Object containing information about the payment method used.
      • type: Type of payment method.
  • destination: Object containing information about what the user will receive.
    • amount: Amount the user will receive.
    • rate: Rate used to calculate the amount.
    • asset: Cryptoasset the user will receive.
    • network: Network of the receiving asset.
    • address: Recipient wallet address.
    • tag (optional): Tag of the crypto transaction, used to complement the address.
      • type: Tag type (e.g.: memo or destination-tag).
      • value: Tag value.
    • priority (optional): Priority of the crypto transaction.
  • fees: Array containing fees associated with the order.
    • amount: Amount user was charged for this fee.
    • asset: Asset used to charge the fee.
    • normalized: Amount in USD that the user was charged for this fee.
    • type: Type of fee (network, deposit or partner).
  • widget: Widget associated with the session.
    • id UUID of the widget.
    • name: Name of the widget.
    • flow: Flow associated with the widget.
note

The values for origin.paymentMethod.type can be found using our REST API, via the payment methods endpoint.

order:crypto-onramp:charged

Triggered when a user has been charged.

  • id: UUID of the order.
  • status: Status of the order (processing).
  • createdAt: Timestamp at which the order was created.
  • updatedAt: Timestamp at which the order was last updated.
  • origin: Object containing information about how the user paid.
    • amount: Amount the user paid.
    • rate: Rate used to calculate the amount.
    • asset: Currency code in the ISO 4217 format used to make the payment.
    • paymentMethod: Object containing information about the payment method used.
      • type: Type of payment method.
  • destination: Object containing information about what the user will receive.
    • amount: Amount the user will receive.
    • rate: Rate used to calculate the amount.
    • asset: Cryptoasset the user will receive.
    • network: Network of the receiving asset.
    • address: Recipient wallet address.
    • tag (optional): Tag of the crypto transaction, used to complement the address.
      • type: Tag type (e.g.: memo or destination-tag).
      • value: Tag value.
    • priority (optional): Priority of the crypto transaction.
  • fees: Array containing fees associated with the order.
    • amount: Amount user was charged for this fee.
    • asset: Asset used to charge the fee.
    • normalized: Amount in USD that the user was charged for this fee.
    • type: Type of fee (network, deposit or partner).
  • widget: Widget associated with the session.
    • id UUID of the widget.
    • name: Name of the widget.
    • flow: Flow associated with the widget.
note

The values for origin.paymentMethod.type can be found using our REST API, via the payment methods endpoint.

order:crypto-onramp:completed

Triggered when a user's order has completed.

  • id: UUID of the order.
  • status: Status of the order (completed).
  • createdAt: Timestamp at which the order was created.
  • updatedAt: Timestamp at which the order was last updated.
  • origin: Object containing information about how the user paid.
    • amount: Amount the user paid.
    • rate: Rate used to calculate the amount.
    • asset: Currency code in the ISO 4217 format used to make the payment.
    • paymentMethod: Object containing information about the payment method used.
      • type: Type of payment method.
  • destination: Object containing information about what the user received.
    • amount: Amount the user received.
    • rate: Rate used to calculate the amount.
    • asset: Cryptoasset the user received.
    • blockchainUrl (deprecated): URL to view the transaction details on a blockchain explorer.
    • network: Network of the receiving asset.
    • address: Recipient wallet address.
    • tag (optional): Tag of the crypto transaction, used to complement the address.
      • type: Tag type (e.g.: memo or destination-tag).
      • value: Tag value.
    • priority (optional): Priority of the crypto transaction.
    • ledger (optional): Object containing information about the transaction on the ledger.
      • txid: Transaction ID on the ledger.
      • url: URL to view the transaction details on a blockchain explorer.
  • fees: Array containing fees associated with the order.
    • amount: Amount user was charged for this fee.
    • asset: Asset used to charge the fee.
    • normalized: Amount in USD that the user was charged for this fee.
    • type: Type of fee (network, deposit or partner).
  • widget: Widget associated with the session.
    • id UUID of the widget.
    • name: Name of the widget.
    • flow: Flow associated with the widget.
note

The values for origin.paymentMethod.type can be found using our REST API, via the payment methods endpoint.

order:crypto-onramp:failed

Triggered when a user's order has failed.

  • id: UUID of the order.
  • status: Status of the order (failed).
  • createdAt: Timestamp at which the order was created.
  • updatedAt: Timestamp at which the order was last updated.
  • origin: Object containing information about how the user paid.
    • amount: Amount the user paid.
    • rate: Rate used to calculate the amount.
    • asset: Currency code in the ISO 4217 format used to make the payment.
    • paymentMethod: Object containing information about the payment method used.
      • type: Type of payment method.
  • destination: Object containing information about what the user would have received.
    • amount: Amount the user would have received.
    • rate: Rate used to calculate the amount.
    • asset: Cryptoasset the user would have received.
    • network: Network of the receiving asset.
    • address: Recipient wallet address.
    • tag (optional): Tag of the crypto transaction, used to complement the address.
      • type: Tag type (e.g.: memo or destination-tag).
      • value: Tag value.
    • priority (optional): Priority of the crypto transaction.
  • fees: Array containing fees associated with the order.
    • amount: Amount user was charged for this fee.
    • asset: Asset used to charge the fee.
    • normalized: Amount in USD that the user was charged for this fee.
    • type: Type of fee (network, deposit or partner).
  • widget: Widget associated with the session.
    • id UUID of the widget.
    • name: Name of the widget.
    • flow: Flow associated with the widget.
  • error: Indicates specific error information.
    • reason: Indicates the reason for the error, possible values are fraud.
note

The values for origin.paymentMethod.type can be found using our REST API, via the payment methods endpoint.

order:crypto-onramp:refund:completed

Triggered when a user's order has been successfully refunded.

  • id: UUID of the order.
  • status: Status of the order (refunded).
  • createdAt: Timestamp at which the order was created.
  • updatedAt: Timestamp at which the order was last updated.
  • origin: Object containing information about how the user paid.
    • amount: Amount the user paid.
    • rate: Rate used to calculate the amount.
    • asset: Currency code in the ISO 4217 format used to make the payment.
    • paymentMethod: Object containing information about the payment method used.
      • type: Type of payment method.
  • destination: Object containing information about what the user would have received.
    • amount: Amount the user would have received.
    • rate: Rate used to calculate the amount.
    • asset: Cryptoasset the user would have received.
    • network: Network of the receiving asset.
    • address: Recipient wallet address.
    • tag (optional): Tag of the crypto transaction, used to complement the address.
      • type: Tag type (e.g.: memo or destination-tag).
      • value: Tag value.
    • priority (optional): Priority of the crypto transaction.
  • fees: Array containing fees associated with the order.
    • amount: Amount user was charged for this fee.
    • asset: Asset used to charge the fee.
    • normalized: Amount in USD that the user was charged for this fee.
    • type: Type of fee (network, deposit or partner).
  • refund: Object containing information about how much was refunded to the user.
    • formattedAmount: Amount refunded to the user
    • asset: Currency code in the ISO 4217 format used to make the payment.
    • rate: Rate used to calculate the amount.
  • widget: Widget associated with the session.
    • id UUID of the widget.
    • name: Name of the widget.
    • flow: Flow associated with the widget.
note

The values for origin.paymentMethod.type can be found using our REST API, via the payment methods endpoint.