Returns list of invoices
This API returns the list of invoices for a merchant.
Request
- Base URLhttps://api.test.bictorys.com/pay/v1
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Query invoices starting from this date. The date format is (YYYY-mm-dd). If omitted, 2023-09-01 is used
Query invoices from start_date until this date time. The date format is YYYY-mm-dd. If end_date is omitted, current date is used.
Filter by invoice status. The status filter is combined with start_date and end_date filters. When filtering by opened status, invoices with due date in the past are shown expired
Filter by payment link by device_id. The status filter is combined with start_date and end_date filters.Cannot be used with status filter
pagination offset, default is 0.
Page size. default value is 20
Response
returns list of invoices.
Example response
[
{
"id": "638d4133957e3caf63e6b79c",
"reference": "3245GOF456",
"customerId": "d2d2053b-638d-4133-957e-3caf63e6b79c",
"customerName": "John Smith",
"currency": "XOF",
"dueDate": "2024-04-24",
"orderDetails": [
{
"id": "fbd2053b-638d-4133-957e-3caf63e6b79c",
"name": "pineapple",
"reference": "SKU56789002",
"price": 100,
"quantity": 2.5,
"discount": 20,
"taxRate": 5.5,
"totalPrice": 125
}
],
"subTotalAmount": 5000,
"deliveryCharges": 90,
"deductedAmount": 50,
"totalTax": 500,
"finalAmount": 5550,
"status": "paid",
"redirectUrlAfterPayment": "https://merchant-online-store",
"deviceId": "SN-4562345",
"enableMultiplePayment": true,
"nbrPayments": 5,
"paymentUrl": "https://web.bictorys.com/invoice-management/pay/638d4133957e3caf63e6b79c?op_token=ert4133957e3caf63e6b79c",
"downloadUrl": "https://web.bictorys.com/invoice-management/download/638d4133957e3caf63e6b79c?op_token=abc4133957e3caf63e6b79c",
"createdAt": "2022-06-20T17:17:11Z",
"updatedAt": "2022-06-20T17:17:11Z"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.