Create an invoice
Creates a Invoice resource.
Authorizations:Token, JWT
Query Parameters
order_id required | stringInvoice identifier |
Request Body Schema:
The new Invoice resource customerNotes | string |
adminNotes | string |
Responses
201Invoice resource created
Response schema:
Invoice resource created invoiceNumber | string or null | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
profile | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updatedAt | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
customerNotes | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
adminNotes | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
items | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
surcharges | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
paymentTransactions | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
currency | string3 characters | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subtotal | number | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
total | number | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id | integer or null>= 1 |
400Invalid input
401Unauthorized
Response schema:
Unauthorized type | stringExample: "https://tools.ietf.org/html/rfc2616#section-10" |
title | stringExample: "An error occurred" |
detail | string or nullExample: "Cannot find entity" |
instance | string or null |
422Unprocessable entity
500Internal error
Response schema:
Internal error type | stringExample: "https://tools.ietf.org/html/rfc2616#section-10" |
title | stringExample: "An error occurred" |
detail | string or nullExample: "Cannot find entity" |
instance | string or null |