Skip to navigation

Create a rate card order

Creates a draft order, attaches the version in effect at each line’s start, then activates it. Send an Idempotency-Key to create the order and retry if billing cannot confirm the result.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the rate_cards=v1 beta. Send this header to use it.

Allowed values:

Request

Body
customerstringRequired1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
lineslist of objectsRequired
The rate card lines assigned before activation, and any recurring price lines that grant credits. At least one rate card line is required, and a price can appear once.
startsAtdatetimeRequired
When billing starts.
billingCycleobjectOptional
currencystringOptionalformat: "^[a-z]{3}$"

Lowercase ISO 4217 currency code, e.g. usd. Must be enabled on your account.

endsAtdatetime or nullOptional

Exclusive end; null means no end.

externalIdstring or nullOptional1-255 characters
Your stable identifier, 1 to 255 characters.
metadatamap from strings to stringsOptional

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestringOptional1-255 characters
The resource name.
negotiatedPricinglist of objectsOptional

Changes to the list price for this deal: contracted prices, discounts and surcharges. They belong to the order: deleting a draft order deletes them, and on a running order only an amendment adds or ends entries. Defaults to none.

paymentTermsenumOptionalDefaults to net30
Invoice payment terms.
purchaseOrderNumberstring or nullOptional

Purchase-order number printed on invoices.

Response

201
idstring
The Order ID.
objectenum

The type of object. Always order.

Allowed values:
createdAtdatetime
When the object was created.
activatedAtdatetime or null
When activation completed.
billingContactslist of strings
Billing contact IDs.
billingCycleobject
OrderBillingCycle.
billTostring or null1-255 characters

The customer who pays for the order. Defaults to the customer’s parent when the order is created, then the customer itself.

commitslist of strings
Order commit IDs.
currencystring

Lowercase ISO 4217 currency code, e.g. usd.

customerstring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
endsAtdatetime or null

Exclusive end; null means no end.

externalIdstring or null
Your stable identifier, 1 to 255 characters.
invoiceSettingsobject
OrderInvoiceSettings.
lineslist of objects
Order lines, including ended lines.
livemodeboolean

true for an object on a live account, false on a test account.

metadatamap from strings to strings

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestring
The resource name.
negotiatedPricinglist of objects
Every negotiated pricing entry on the order, including ended and scheduled ones.
planobject or null
The plan used to build the order.
purchaseOrderNumberstring or null

Purchase-order number printed on invoices.

startsAtdatetime
When billing starts.
statusenum
Order lifecycle state.
Allowed values:
updatedAtdatetime
When the object was last changed.
versioninteger
Amendment concurrency version.
paymentTermsenumOptionalDefaults to net30
Invoice payment terms.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error
503
Service Unavailable Error