Associate order line item using REST API
This topic explains how to create an order line item with a new subscription using the REST API.
You can use the Create an order operation to create an order line item with a new subscription.
To create an order line item with a new subscription:
The following sample API request creates a subscription and two order line items under an existing account:
|
Request |
|
|
Request Body |
|
To create the order under a new account instead of an existing account, specify the newAccount field instead of the existingAccountNumber field.
To preview invoices for the new subscription, use the Preview an order operation.