Creating Product Configuration (Cart) Directly from Order
You can create a cart (Product Configuration) directly from the order. You can do the following operations on the product configuration created from the order:
Add products from the catalog or add installed products
Configure and re-configure the products and reprice the lines
Use the billing services such as custom plans, forecast billing, etc.
Finalize the product configuration.
Follow the same sequence for a change in the configuration or pricing due to a negotiation.
To Create a Product Configuration
Use the following APIs in sequence to execute the Asset Manager flow.
- Create order using order-service endpoint:POST:
https://<URL_of_the_Instance>/api/order/v1/orders - Create Cart with BusinessObjectType="Order" and BusinessObjectId="<OrderId>" using the API:POST:
https://<URL_of_the_Instance>/api/cart/v1/carts - Add Product or ABO operation lines to the cart using the API:POST:
https://<URL_of_the_Instance>/api/cart/v1/carts/{{cartId}}/items - Create only OrderLineItems for the Order from Cart LineItems using the checkout order API:POST:
https://<URL_of_the_Instance>/api/cart/v1/carts/{{cartId}}/order - Activate the order to create AssetLineItems using the API:POST:
https://<URL_of_the_Instance>/api/order/v1/orders/{{orderId}}/activate
