Virtual AccountGet Debit History

Get Virtual Account Debit History

This endpoint allows you to retrieve all debit transactions for a specific virtual account. The response is paginated, providing up to 25 transactions per page.

Endpoint

URL: https://api.chapa.co/v1/virtual-account/history/debit/{account_number}
Method: GET

Authentication

  • Authorization: Pass your secret key as a bearer token in the request header
  • Content-Type: application/json

Path Parameters

ParameterTypeDescription
account_numberstringThe virtual account number to fetch history for

Response

A successful request returns a list of debit transactions with pagination details.

Response Parameters

ParameterTypeDescription
statusstringStatus of the request (“success” or “failed”)
messagestringA message describing the result
dataobjectContains pagination details and transactions information

Pagination Parameters

ParameterTypeDescription
current_pagenumberThe current page number
first_page_urlstringURL to the first page of results
fromnumberStarting index of records on current page
next_page_urlstringURL to the next page (null if on last page)
pathstringBase path for pagination URLs
per_pagenumberNumber of records per page (default: 25)
prev_page_urlstringURL to the previous page (null if on first page)
transactionsarrayList of transaction objects

Transaction Object Properties

PropertyTypeDescription
chapa_referencestringChapa’s reference for the transaction (can be null)
Merchant ReferencestringYour reference for the transaction
typestringType of transaction (e.g., “credit”, “debit”)
notestringTransaction note or description (can be null)
amountnumberTransaction amount
currencystringTransaction currency (e.g., “ETB”)
created_atstringTimestamp of transaction creation
updated_atstringTimestamp of last transaction update

Example Request

import requestsurl = "https://api.chapa.co/v1/virtual-account/history/debit/100700352"headers = {  'Content-Type': 'application/json',  'Authorization': 'Bearer CHASECK-xxxxxxxxxxxxxxxx'}response = requests.get(url, headers=headers)print(response.text)