v1
latestOpenAPI 3.1.02026-07-24770322.0 KBCreate Invoice
This API endpoint create an invoice and automatically assigns it to given recipient to pay
post/v1/invoices
Request body
Response
200
Example response
{
"id": "a6e8a5ea-9fb1-488b-a4a8-86697943bdb3",
"object": "invoice",
"recipientId": "a6e8a5ea-9fb1-488b-a4a8-86697943bdb4",
"clientId": "a6e8a5ea-9fb1-488b-a4a8-86697943bdb4",
"companyId": "a6e8a5ea-9fb1-488b-a4a8-86697943bdb4",
"status": "open",
"memo": "this invoice has a product and one off item.",
"taxPercentage": 4.5,
"currency": "USD",
"lineItems": [
{
"amount": 1000,
"description": "item a",
"quantity": 3
}
],
"total": 103000,
"taxAmount": 4635,
"dueDate": "2024-07-12T21:31:16.789Z",
"sentDate": "2024-07-12T21:31:16.789Z",
"paymentSuccessDate": "2024-07-12T21:31:16.789Z",
"number": "INV-0001",
"paymentMethodPreferences": [
{
"type": "creditCard"
}
],
"fileUrl": "https://example.com/invoice.pdf",
"receiptNumber": "INV-0001",
"receiptUrl": "https://example.com/receipt.pdf",
"billingReason": "manual",
"createdAt": "2024-02-21T15:31:16.789Z"
}