Skip to main content

Types of Transaction Events

  1. COMPLETED_ON_RAMP(Completed On-Ramp):
    • Description: This event is triggered when an โ€œon-rampโ€ transaction (converting fiat currency to cryptocurrency) has been successfully completed. When this event fires, the crypto is already in the userโ€™s destination wallet.
    • Use Case: The partner updates their system to reflect that the userโ€™s on-ramp transaction has been finalized. The crypto has been sent and confirmed on-chain.
    • Example Payload:
      JSON
  2. FIAT_RECEIVED_ON_RAMP(Fiat Received On-Ramp):
    • Description: This event is triggered when fiat currency has been received for an on-ramp transaction and the conversion process is starting. The crypto has not been sent yet at this point.
    • Use Case: The partner is informed that the userโ€™s fiat payment has been received and the process to convert it to cryptocurrency has begun. Do not treat this as a completed transaction.
    • Example Payload:
      JSON
  3. COMPLETED_OFF_RAMP(Completed Off-Ramp):
    • Description: This event is triggered when an โ€œoff-rampโ€ transaction (converting cryptocurrency to fiat currency) has been successfully completed.
    • Use Case: The partner updates their system to reflect that the userโ€™s off-ramp transaction has been finalized, indicating the user has received their fiat currency.
    • Example Payload:
      JSON
  4. CREATED_ON_RAMP(Created On-Ramp):
    • Description: This event is triggered when a new on-ramp transaction (fiat to cryptocurrency) has been initiated.
    • Use Case: The partner can record the initiation of a new on-ramp transaction and begin tracking its status.
    • Example Payload:
      JSON
  5. CRYPTO_RECEIVED_OFF_RAMP(Crypto Received Off-Ramp):
    • Description: This event is triggered when a partnerโ€™s user has sent cryptocurrency to Capaโ€™s wallet, and Capa is starting the process of sending the equivalent fiat currency to the userโ€™s account with the partner.
    • Use Case: The partner is informed that the user has transferred cryptocurrency to Capa, and the process to exchange it for fiat currency and deposit it into the userโ€™s account has begun. The partner can update their system to reflect this ongoing transaction status.
    • Example Payload:
      JSON
  6. CREATED_OFF_RAMP(Created Off-Ramp):
    • Description: This event is triggered when a new off-ramp transaction (cryptocurrency to fiat) has been initiated.
    • Use Case: The partner can record the initiation of a new off-ramp transaction and begin tracking its status.
    • Example Payload:
      JSON
  7. CANCELLED_ON_RAMP(Cancelled On-Ramp):
    • Description: This event is triggered when an on-ramp transaction (fiat to cryptocurrency) has been cancelled.
    • Use Case: The partner can update their system to reflect that the userโ€™s on-ramp transaction has been cancelled.
    • Example Payload:
      JSON
  8. CANCELLED_OFF_RAMP(Cancelled Off-Ramp):
    • Description: This event is triggered when an off-ramp transaction (cryptocurrency to fiat) has been cancelled.
    • Use Case: The partner can update their system to reflect that the userโ€™s off-ramp transaction has been cancelled.
    • Example Payload:
      JSON

Cross Ramp Events

Cross-ramp transactions convert between different fiat currencies. The following events are emitted in order during a cross-ramp transaction lifecycle:
  1. CREATED_CROSS_RAMP(created-cross-ramp):
    • Description: This event is emitted when a cross-ramp transaction is created.
    • Transaction Status: PENDING_FUNDS
    • Example Payload:
      JSON
  2. FUNDS_RECEIVED_CROSS_RAMP(funds-received-cross-ramp):
  • Description: This event is emitted when funds are received for the transaction.
  • Status Transition: PENDING_FUNDS โ†’ FUNDS_RECEIVED
  • Example Payload:
    JSON
  1. STARTED_PROCESSING_CROSS_RAMP(started-processing-cross-ramp):
    • Description: This event is emitted when processing starts.
    • Status Transition: FUNDS_RECEIVED โ†’ IN_PROGRESS
    • Example Payload:
      JSON
  2. AWAITING_FUND_TRANSFER_CROSS_RAMP(awaiting-fund-transfer-cross-ramp):
    • Description: This event is emitted when the transaction is awaiting fund transfer.
    • Status Transition: IN_PROGRESS โ†’ AWAITING_FUND_TRANSFER
    • Example Payload:
      JSON
  3. COMPLETED_CROSS_RAMP(completed-cross-ramp):
    • Description: This event is emitted when the transaction completes.
    • Status Transition: AWAITING_FUND_TRANSFER โ†’ COMPLETED
    • Example Payload:
      JSON
  4. CANCELLED_CROSS_RAMP(cancelled-cross-ramp):
    • Description: This event is emitted when the transaction is cancelled. This can occur at any stage of the transaction.
    • Transaction Status: CANCELLED
    • Example Payload:
      JSON

Bank Account Events

Bank account events are sent when the verification status of a userโ€™s bank account changes. These use type: "USER" instead of type: "TRANSACTION".
  1. VERIFIED_BANK_ACCOUNT(Verified Bank Account):
    • Description: This event is triggered when a userโ€™s bank account has been successfully verified (e.g., after a penny test for MX accounts).
    • Example Payload:
      JSON
  2. REJECTED_BANK_ACCOUNT(Rejected Bank Account):
    • Description: This event is triggered when a userโ€™s bank account verification has been rejected.
    • Example Payload:
      JSON

Summary of Transaction Events

These transaction events help partners automate their response to changes in transaction statuses:
  • COMPLETED_ON_RAMP and COMPLETED_OFF_RAMP: Confirm that a userโ€™s transaction has been successfully completed.
  • FIAT_RECEIVED_ON_RAMP: Indicates that fiat currency has been received and the conversion to cryptocurrency has begun.
  • CREATED_ON_RAMP and CREATED_OFF_RAMP: Notify the partner when a new transaction is initiated.
  • CANCELLED_ON_RAMP and CANCELLED_OFF_RAMP: Alert the partner that a userโ€™s transaction has been cancelled.
  • CRYPTO_RECEIVED_OFF_RAMP: Indicates that Capa has received cryptocurrency from a partnerโ€™s user and the process of sending fiat currency to the user has started.
Cross Ramp Events:
  • CREATED_CROSS_RAMP: Notifies when a cross-ramp transaction is created.
  • FUNDS_RECEIVED_CROSS_RAMP: Indicates funds have been received for the cross-ramp transaction.
  • STARTED_PROCESSING_CROSS_RAMP: Signals that processing has begun.
  • AWAITING_FUND_TRANSFER_CROSS_RAMP: Indicates the transaction is awaiting fund transfer.
  • COMPLETED_CROSS_RAMP: Confirms the cross-ramp transaction has been successfully completed.
  • CANCELLED_CROSS_RAMP: Alerts that the cross-ramp transaction has been cancelled.
Bank Account Events:
  • VERIFIED_BANK_ACCOUNT: Confirms a userโ€™s bank account has been verified.
  • REJECTED_BANK_ACCOUNT: Alerts that a userโ€™s bank account verification was rejected.
By processing these events, partners can ensure their systems are up-to-date with the latest transaction statuses and take appropriate actions to manage user interactions and maintain accurate records.