Notification Callbacks

You can find the sample notification body here and in the sections for each currency. We have listed a notification callback example for each currency.

Notification callback

Our notification callback is always in (application/json) format. This is sent to the URL cited as the notification URL in the request body for each transaction.

Example callback

{	
	"account_id": 1,
  "transaction_id":"8481c19d-cf80-4873-9e0b-5aba4c5c5bfa",
  "order_id":"000001",
  "currency":"BRL",
  "amount":10,
  "amount_net": 0,
  "amount_paid":0,
  "status":"PENDING",
  "type":"DEPOSIT",
  "event": {
    "code" : "BD1000",
    "message" : "Waiting for credit!",
  
  },
  "transaction_specific":
      {
        // Transaction specific will change according to the currencies
      },
  "hash":"F4BE7E00093B8A420A5996AB99DAFF324485BAE15C887197952AF324A54ABF0E57EF24314781FBEE94666BE00EF53D1B9CF751187FCF178515D57AC74F59BAE2"
}

Explanation of Callback Fields

  1. Account ID - Your account ID.
  2. Transaction ID - Bitolo's Transaction reference.
  3. Order ID - Reference you have given to create the order.
  4. Currency of the transaction.
  5. Amount - The amount for which the order has been created.
  6. Amount net - This will be the amount actually received at the bank’s end for the order. For deposits, it will initially be 0 (Zero). After the user makes the payment, it will be updated with the amount which was paid by the user. Please make sure you are using this field to reconcile any successful transaction and credit or debit the user based on the value we send in this field.
  7. Amount Paid - This field is being added in as a part for a new feature. The amount actually paid by the user (Deposits) or to the user (Withdraws) to confirm you must always use the amount_net field to credit the user unless notified otherwise.
  8. Status - Status of the transaction.
  9. Type - Type of the transaction (Deposit/Withdrawal).
  10. Event - It describes the current state of the transaction.
  11. Transaction specific - this varies according to the currencies mentioned in the currency section.
  12. Hash - Used to validate that the notification is from Bitolo (Hash calculation Sample).

Transaction Statuses

Deposit transaction status

  1. SUCCESS - The transaction is successful.
  2. FAILED - The transaction is failed (You can request the exact reason by raising a query with Bitolo support).
  3. PENDING - Whenever a transaction is created, you will receive a PENDING callback.
  4. INITIATED - This transaction status is only for XOF Orange money deposit. You will not receive in callback.
  5. TIMEDOUT - If user abandons the transaction, you will receive this status after a certain period of time. (Time period varies based on currency).
  6. REFUND - If a user requests a refund for the transaction we will investigate and refund as necessary. The transaction status will then be amended to read REFUND.
  7. CHARGEBACK - The user has raised a chargeback against this transaction. This will only happen for successful transactions and penalties will be deducted according to the agreement with the merchant.
  8. BLOCKED - The user has been blocked by the bank.
  9. SUSPICIOUS - If transaction breaches any of our security protocol, it will be marked as SUSPICIOUS. For example, underpayments. (Currently you'll not receive a callback for this status)

Withdraw transaction status

  1. PENDING - Whenever a transaction is created, you will receive a PENDING callback.
  2. PROCESSING - Withdrawal sent to bank for processing.
  3. SUCCESS - The transaction is successful.
  4. FAILED - The transaction is failed (You can request the exact reason by raising a query with Bitolo support).

Callback Retry Policy

If any callback sent for a specific order fails. This will be sent again once every five minutes until it receives five tries.