Import an order for an invoice with one or more line items. The import order bulk operation is to be applied on an imported invoice.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
Uniquely identifies the order. It is the api identifier for the order.
*Order id will always be assigned incrementally from the last generated Order ID.
If Orders imported has an Order ID which is a string, Chargebee will just validate if the Order ID is unique
Recommendation: For orders being imported, set the same prefix and the serial number that is used for the Document number, which will make this into a string. This will ensure that imported orders don't conflict with orders created by Chargebee. Chargebee will ensure there aren't orders with duplicate Order IDs.* .
The order's serial number.
Document number passed cannot be greater than the series mentioned in the configuration. For instance, if you have set Document number series in Order Configurations with a Prefix as 'ORDER' and Starting number as '1000', orders up to the sequence number 'ORDER999' can be imported into Chargebee
Recommendation: Set a different prefix at the Order Configuration, than the ones that are imported. If your Order Configuration has a Prefix of 'NEW', with Starting number as '1', i.e. 'NEW1', then, set Prefix for imported orders to be as 'OLD', with Starting number as '1', i.e, 'OLD1' .
The status of this order.
Order has been cancelled. Applicable only if you are using Chargebee's legacy order management system
Order is yet to be processed by any system, these are scheduled orders created by Chargebee
The order has been picked up by an integration system, and synced to a shipping management platform
The order is paused from being processed.
The order has been delivered to the customer.
The order has moved from order management system to a shipping system.
The order has been partially delivered to the customer.
The order has been returned after delivery.
Reference id can be used to map the orders in the shipping/order management application to the orders in ChargeBee. The reference_id generally is the same as the order id in the third party application.
Recommendation:
If this order is in any of these statuses, awaiting_shipment, on_hold, delivered, shipped, partially_delivered, returned, and has already been processed, through a 3rd party system, and you have a reference id of the entity in the 3rd party tool, pass in the entity id to this field. If not, set the same prefix and the serial number that is used for the Document number, which will make this into a string.
If this order hasn't been processed and is in 'queued' status, do not pass any value to this field. Chargebee, when it syncs your Orders through the fulfilment integrations such as Shipstation or Shopify, would auto assign the reference id from the connected system. .
The fulfillment status of an order as reflected in the shipping/order management application. Typical statuses include Shipped,Awaiting Shipment,Not fulfilled etc;.
*If this order is in any of these statuses, awaiting_shipment, on_hold, delivered, shipped, partially_delivered, returned, and has already been processed, through a 3rd party system, and you have a corresponding status from the 3rd party tool, pass in the status to this field.
If this order hasn't been processed and is in 'queued' status, do not pass any value to this field. Chargebee, when it syncs your Orders through the fulfilment integrations such as Shipstation or Shopify, would auto assign the fulfilment status from the connected system.* .
Cancellation reason.
The invoice has been paid late and Chargebee cancel's the first order for the invoice.
Product unsatisfactory.
Third party cancellation.
Product not required.
Delivery date missed.
If there are any credits that were issued at the order level, you can make use of the field, refundable_credits_issued. This will lead to Chargebee creating a Refundable Credit note against the order. When the next invoice is raised against the customer, this credit note will be utilised.