Create a new order
Creates a new order for the organization. If draft pricing cannot be confirmed, returns 503 BILLING_UNAVAILABLE only after deleting the new draft. A retained draft returns 409 ORDER_RETAINED with its order id and externalId in details. Retrieve that order and check its state instead of repeating creation.
Authentication
AuthorizationBearer
API Key authentication using Bearer token
Request
Body
customerId
billingCustomerId
billingContactIds
name
startDate
endDate
subscriptionTerms
creationState
Allowed values:
billingAnchor
Day of month for billing anchor (1-31). Defaults to start date day if not provided.
paymentTerms
externalId
metadata
currency
autoPostInvoices
autoSendBillingEmails
autoSendPaymentEmails
lines
billingFrequencyOverride
purchaseOrderReference
Purchase order number printed on invoices generated from this order.
Response
201
id
customerId
billingCustomerId
billingContactIds
createdAt
updatedAt
endDate
name
startDate
subscriptionTerms
currency
Three-letter ISO currency code of the order’s amounts.
currencyDecimals
Decimals of this order’s amounts, from the currency and how Paid stores it: 2 for USD (4999 is $49.99); 2 for JPY, which Paid stores in hundredths of a yen (150000 is ¥1,500). Divide amounts by 10^currencyDecimals; never assume 100.
billedAmountNoTax
billedTax
estimatedTax
orderAmount
pendingBillingAmount
totalAmount
totalBilledAmount
creationState
Allowed values:
paymentTerms
number
metadata
showPaymentLink
showBankDetails
autoPostInvoices
autoSendBillingEmails
autoSendPaymentEmails
version
billingFrequencyOverridden
purchaseOrderReference
billingFrequencyOverride
Errors
400
Bad Request Error
403
Forbidden Error
409
Conflict Error
500
Internal Server Error
503
Service Unavailable Error