Skip to main content

Create an invoice

Creates a Invoice resource.

Authorizations:Token, JWT
Query Parameters
order_id
required
stringInvoice identifier
Request Body Schema:
The new Invoice resource
customerNotesstring
adminNotesstring

Responses

201Invoice resource created
Response schema:
Invoice resource created
invoiceNumberstring or null
profileobject
idinteger or null
emailstring
membershipIdinteger>= 0
addressesArray of objects
Array
is_billingboolean
is_shippingboolean
is_workboolean
typestringDefault: "R"Enum: "R""C"
titlestring
firstnamestring
lastnamestring
phonestring
address1string
address2string
address3string
zipcodestring<= 32 characters
citystring
country_codestring2 characters
stateinteger>= 0
state_namestring
custom_fieldsArray of objects
Array
namestring
valuestring
idinteger>= 1
isBillingboolean
isShippingboolean
isWorkboolean
countryCodestring
stateNamestring
customFieldsArray of objects
Array
namestring
valuestring
createdAtstring
updatedAtstring
statusstring
customerNotesstring
adminNotesstring
itemsArray of objects
Array
idinteger
productIdinteger>= 1
skustring
namestring
amountnumber
pricenumber
surchargesArray of objects
Array
idinteger
typestringEnum: "tax""discount""shipping""handling""error"
familystring
codestring
namestring
includeboolean
availablebooleanDefault: true
valuenumber
attribute_valuesArray of objects
Array
idinteger
typestringEnum: "checkbox""select""text"
namestring
valuestring
attributeIdinteger
subtotalnumber
totalnumber
attributeValuesArray of objects
Array
idinteger
typestringEnum: "checkbox""select""text"
namestring
valuestring
attributeIdinteger
surchargesArray of objects
Array
idinteger
typestringEnum: "tax""discount""shipping""handling""error"
familystring
codestring
namestring
includeboolean
availablebooleanDefault: true
valuenumber
paymentTransactionsArray of objects
Array
idinteger
createdAtstring
publicTxnIdstring
method_namestring
statusstring
valuenumber
notestring
typestring<= 16 characters
publicIdstring
currencystring3 characters
methodNamestring
currencystring3 characters
subtotalnumber
totalnumber
idinteger or null>= 1
400Invalid input
401Unauthorized
Response schema:
Unauthorized
typestringExample: "https://tools.ietf.org/html/rfc2616#section-10"
titlestringExample: "An error occurred"
detailstring or nullExample: "Cannot find entity"
instancestring or null
422Unprocessable entity
500Internal error
Response schema:
Internal error
typestringExample: "https://tools.ietf.org/html/rfc2616#section-10"
titlestringExample: "An error occurred"
detailstring or nullExample: "Cannot find entity"
instancestring or null