This API retrieves a list of purchase return transactions based on specified query parameters and supports various query parameters for filtering and pagination. The start_date and end_date define the financial year range for transactions. The party_id allows filtering by a specific party, while the status parameter helps retrieve transactions based on payment status (Paid, Unpaid, or Partially Unpaid). The limit parameter controls the number of records returned, and skip determines how many records to ignore before fetching results, ensuring efficient data retrieval.
The API uses a GET request to fetch purchase return transaction data. Since it does not require a request body, users can simply call the endpoint to retrieve the necessary information.
The API returns a response containing transaction details such as transaction ID, party name, invoice number, invoice amount, payment status, transaction type, and date. Additionally, it includes a success flag and a message confirming successful retrieval of the purchase return transactions.
Request
Authorization
Add parameter in header
ApiKey
Example:
ApiKey: ********************
Query Params
start_date
stringÂ
required
The start date of the financial year (DD-MM-YYYY).
Example:
01-04-2024
end_date
stringÂ
required
The end date of the financial year (DD-MM-YYYY).
Example:
31-03-2025
party_id
integerÂ
optional
The unique identifier (ID) of the party used to filter transactions by party.
The limit specifies the number of records to retrieve, e.g., limit=25 returns 25 records.
Example:
25
skip
integerÂ
optional
The skip query parameter determines how many records to skip from the start, e.g., skip=10 ignores the first 10 records and fetches the rest.
Example:
0
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://app.hisabkitab.co/third-party/purchase-return-transactions?start_date=01-04-2024&end_date=31-03-2025&party_id=1&status=1&limit=25&skip=0' \
--header'ApiKey;'
Responses
🟢200List of Transactions
application/json
Body
data
array [object {9}]Â
required
Contain a list of purchase return transactions.
transaction_id
integerÂ
required
A unique identifier is assigned to each transaction.
party_name
stringÂ
required
The name of the party or vendor involved in the transaction. This represents the seller or supplier from whom the purchase return is made.
party_id
integerÂ
required
A unique numerical identifier assigned to the party, which helps in managing and retrieving vendor details efficiently within the system.
phone_no
string  | nullÂ
required
The contact number of the party involved in the transaction. If no phone number is available, this field remains null.
invoice_number
stringÂ
required
A unique number assigned to the purchase return invoice.
invoice_amount
integerÂ
required
The total monetary value of the invoice, indicating the amount payable for the purchased goods or services.
payment_status
stringÂ
required
Specifies whether the payment for the transaction is completed or pending, such as Paid = 1, Unpaid = 2, Partially Unpaid = 3.
transaction_type
stringÂ
required
Defines the nature of the transaction, which is a "Purchase Return".
date
stringÂ
required
The date when the transaction took place, formatted as "DD-MM-YYYY.