{ "collectionId": "string", "title": "string", "payerName": "string", "payerEmail": "string", "payerPhoneNumber": "string", "billerMetaData": { "key1": "string" }, "amount": 0, "callBackUrl": "string", "invoiceBeneficiaries": [ { "linkedAccountId": "string", "amount": 0 } ] }
curl --location --request POST 'https://api.tranzakt.finance/api/v1/invoices' \ --header 'x-api-key: Your secret key' \ --header 'Content-Type: application/json' \ --data-raw '{ "collectionId": "string", "title": "string", "payerName": "string", "payerEmail": "string", "payerPhoneNumber": "string", "billerMetaData": { "key1": "string" }, "amount": 0, "callBackUrl": "string", "invoiceBeneficiaries": [ { "linkedAccountId": "string", "amount": 0 } ] }'
{ "status": "success", "message": "Invoice created successfully", "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "title": "Invoice #123", "collectionName": "Q1 Sales Collection", "payerName": "John Doe", "payerEmail": "john@example.com", "payerPhoneNumber": "2348012345678", "billerName": "ABC Company", "amount": 1000, "serviceCharge": 50, "vat": 75, "totalAmount": 1125, "invoiceStatus": "Unpaid", "paymentUrl": "https://payment.example.com/invoice/123e4567-e89b-12d3-a456-426614174000", "dateCreated": "2024-03-21T10:00:00Z" } }