v1
latestOpenAPI 3.0.32026-07-248257161.1 KBInvoices
Create a new invoice
Create a new invoice for a customer. The invoice can be sent to the customer
post/invoices
Query parameters
send_notificationboolean
Controls whether a notification email is sent to the customer.
- true (default): Bictorys sends the notification email
- false: No notification email will be sent
If this parameter is omitted, the notification will be sent by default.
Request body
Example request
{
"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"
}Response
The invoice is created successfully