Types of Transaction Events
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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:-
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
-
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
-
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
-
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
-
COMPLETED_CROSS_RAMP(completed-cross-ramp):- Description: This event is emitted when the transaction completes.
- Status Transition:
AWAITING_FUND_TRANSFERβCOMPLETED - Example Payload:
JSON
-
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 usetype: "USER" instead of type: "TRANSACTION".
-
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
-
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_RAMPandCOMPLETED_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_RAMPandCREATED_OFF_RAMP: Notify the partner when a new transaction is initiated.CANCELLED_ON_RAMPandCANCELLED_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.
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.
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.