Create a new order

Creates a new order for the organization

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Request

Body
customerIdstringRequired
billingCustomerIdstringOptional
billingContactIdslist of stringsOptional
namestringOptional
startDatedatetimeOptional
endDatedatetimeOptional
subscriptionTermsintegerOptional
creationStateenumOptional
Allowed values:
billingAnchorintegerOptional1-31

Day of month for billing anchor (1-31). Defaults to start date day if not provided.

paymentTermsstringOptional
externalIdstringOptional
metadatamap from strings to anyOptional
currencystringOptional
autoPostInvoicesbooleanOptional
autoSendBillingEmailsbooleanOptional
autoSendPaymentEmailsbooleanOptional
lineslist of objectsOptional
billingFrequencyOverrideobjectOptional

Response

201
idstring
customerIdstring
billingCustomerIdstring or null
billingContactIdslist of strings
createdAtdatetime
updatedAtdatetime
endDatedatetime or null
namestring
startDatedatetime
subscriptionTermsinteger or null
billedAmountNoTaxdouble
billedTaxdouble
estimatedTaxdouble
orderAmountdouble
pendingBillingAmountdouble
totalAmountdouble
totalBilledAmountdouble
creationStateenum
Allowed values:
paymentTermsstring or null
numberdouble
metadatamap from strings to any or null
showBankDetailsboolean or null
autoPostInvoicesboolean or null
autoSendBillingEmailsboolean or null
autoSendPaymentEmailsboolean or null
versioninteger
billingFrequencyOverriddenboolean
billingFrequencyOverrideobject

Errors

400
Bad Request Error
403
Forbidden Error
500
Internal Server Error