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.
- Use Case: The partner updates their system to reflect that the user’s on-ramp transaction has been finalized, allowing the user to access or utilize their newly acquired cryptocurrency.
- 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
-
RECEIVED_USER_CRYPTO(Received User Crypto):- 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
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.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.RECEIVED_USER_CRYPTO: Indicates that Capa has received cryptocurrency from a partner’s user and the process of sending fiat currency to the user has started.