OpenapiBilling invoice
Issue_invoice
POST
bearer_authheader
AuthorizationBearer <token>invoiceId*stringInvoice ID
Format
uuidapplication/json- body
issueDate?|Optional override for issue date (defaults to today)
Format
dateInvoice issued
application/json- response
accountId?|Format
uuidamountRefunded*integerFormat
int64amountRemaining*integerFormat
int64applicantUserId?|Format
uuidbillingAddress?string|nullbillingEmail?string|nullbillingName?string|nullbillingPhone?string|nullbillingTaxId?string|nullcreatedAt*stringcreditNotes*array<>currency*stringdiscountAmount*integerFormat
int64discountMode?string|nulldiscountValue?string|nulldueDate?|Format
dateexternalHostedUrl?string|nullexternalInvoiceId?string|nullexternalOrderId?string|nullexternalPdfUrl?string|nullhistory*array<>id*stringFormat
uuidinvoiceNumber*stringissueDate?|Format
dateissuedAt?string|nulllineItems*array<>notes?string|nullpaidAt?string|nullpaymentAttemptId?|Format
uuidpaymentProvider?string|nullpaymentTerms?string|nullprovider*stringrealmId*stringsellerAddress?string|nullsellerEmail?string|nullsellerName?string|nullsellerPhone?string|nullsellerTaxId?string|nullshippingAmount*integerFormat
int64shippingMode?string|nullshippingValue?string|nullsource*stringstatus*stringsubscriptionId?|Format
uuidsubtotal*integerFormat
int64taxAmount*integerFormat
int64taxDetails?unknowntaxMode?string|nulltaxValue?string|nulltotal*integerFormat
int64updatedAt*stringvoidReason?string|nullvoidedAt?string|nullcurl -X POST 'https://example.com/api/bill/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/issue' \
-H 'Content-Type: application/json' \
-d '{}'Example Response
{
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"amountRefunded": 0,
"amountRemaining": 0,
"applicantUserId": "ddd86f52-49a0-4bb0-adcb-c012e3919302",
"billingAddress": "string",
"billingEmail": "string",
"billingName": "string",
"billingPhone": "string",
"billingTaxId": "string",
"createdAt": "string",
"creditNotes": [
{
"amount": 0,
"createdAt": "string",
"createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",
"currency": "string",
"externalCreditNoteId": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"memo": "string",
"source": "string",
"status": "string"
}
],
"currency": "string",
"discountAmount": 0,
"discountMode": "string",
"discountValue": "string",
"dueDate": "2019-08-24",
"externalHostedUrl": "string",
"externalInvoiceId": "string",
"externalOrderId": "string",
"externalPdfUrl": "string",
"history": [
{
"actorType": "string",
"actorUserId": "94141e08-adc7-44ce-bed3-45f031b9f36f",
"changes": null,
"createdAt": "string",
"eventType": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"invoiceId": "4f163819-178d-470c-a246-d6768476a6ec"
}
],
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"invoiceNumber": "string",
"issueDate": "2019-08-24",
"issuedAt": "string",
"lineItems": [
{
"description": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"invoiceId": "4f163819-178d-470c-a246-d6768476a6ec",
"name": "string",
"quantity": "string",
"sortOrder": 0,
"subtotal": 0,
"unitPrice": 0
}
],
"notes": "string",
"paidAt": "string",
"paymentAttemptId": "5c39612f-9e19-4385-8bd3-bad144d722f6",
"paymentProvider": "string",
"paymentTerms": "string",
"provider": "string",
"realmId": "string",
"sellerAddress": "string",
"sellerEmail": "string",
"sellerName": "string",
"sellerPhone": "string",
"sellerTaxId": "string",
"shippingAmount": 0,
"shippingMode": "string",
"shippingValue": "string",
"source": "string",
"status": "string",
"subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
"subtotal": 0,
"taxAmount": 0,
"taxDetails": null,
"taxMode": "string",
"taxValue": "string",
"total": 0,
"updatedAt": "string",
"voidReason": "string",
"voidedAt": "string"
}