Skip to main content
This guide walks you through the complete flow of creating and verifying a transaction using Propaga’s API. The process consists of two main steps:
  1. Creating a new transaction (which generates a verification code)
  2. Validating the transaction with the verification code

Step 1: Create a Transaction

First, you’ll need to create a new transaction. This will generate a verification code that will be sent to the customer.

Request Body

The request body should contain the following parameters: If the request is successful, you’ll receive a response like this:
Make sure to store the transactionId and verificationId as you’ll need them for the next step.

Create transaction use-case

Get more information about the create transaction use-case.

Step 2: Validate the Transaction

Once the customer receives the verification code, you’ll need to validate the transaction using both the transactionId and verificationId from the previous step.
If the verification is successful, you’ll receive a response like this:

Validate transaction use-case

Get more information about the validate transaction use-case.

Error Handling

Both endpoints may return various error responses that you should handle in your implementation:

Create Transaction Errors

  • Corner store not found (404)
  • Amount exceeded the limit credit available (422)
  • User is in default (422)
  • Transaction amount below the minimum required (422)
  • User not verified (422)
  • Invalid delivery date (422)

Validate Transaction Errors

  • Transaction not found (404)
  • Transaction is already verified (422)
  • Verification not found (404)
  • Verification not valid (422)
Make sure to implement proper error handling in your code to manage these potential error responses.