POST /v1/external/orders/create

This API can be used to create a custom order, the same as the Custom order API, except that you have to specify and select a custom channel to create the order.

The order created will be added under the specified channel. All the other parameters are the same.

Note:

Parameters:

PARAMSREQUIREDDATA TYPEDESCRIPTIONEXAMPLE
order_idYESstringThe order id you want to specify to the order. Max char: 20. (Avoid passing character values as this contradicts some other API calls).224477 or 224-477
order_dateYESstringThe date of order creation in yyyy-mm-dd format. Time is an additional option.2019-07-24 11:11
pickup_locationNOstringThe name of the pickup location added in your Shiprocket account. This cannot be a new location. Default Pickup location is selected in case the parameter is not filled.Jammu
channel_idYESintegerThe id of the specific channel to be selected.27022
commentNOstringOption to add 'From' field to the shipment. To do this, enter the name in the following format: 'Reseller: [name].'Reseller: Divine
billing_customer_nameYESstringFirst name of the customer who is billed.John
billing_last_nameNOstringLast name of the billed customer.Doe
billing_addressYESstringPrimary address of the billed customer. Min char: 3.House 221B, Leaf Village
billing_address_2NOstringFurther address details of the billed customer.Near Hokage House
billing_cityYESstringBilling address city. Max char: 30.New Delhi
billing_pincodeYESintegerPincode of the billing address.110002
billing_stateYESstringBilling address state.Delhi
billing_countryYESstringBilling address country.India
billing_emailYESstringEmail address of the billed customer.John@doe.com
billing_phoneYESintegerPhone number of the billed customer.9876543210
shipping_is_billingYESbooleanWhether the shipping address is the same as billing address. 1 or 'true' for yes and 0 or 'false' for no.true
shipping_customer_nameCONDITIONAL YESstringName of the customer the order is shipped to. Required in case billing is not same as shipping.Jane
shipping_last_nameNOstringLast name of the shipping customer.Doe
shipping_addressCONDITIONAL YESstringAddress of the Shipping customer. Required in case billing is not same as shipping.Lane 69
shipping_address_2NOstringFurther address details of shipping customer.Andheri
shipping_cityCONDITIONAL YESstringShipping address city.Mumbai
shipping_pincodeCONDITIONAL YESintegerShipping address pincode.200912
shipping_countryCONDITIONAL YESstringShipping address country.India
shipping_stateCONDITIONAL YESstringShipping address state.Maharashtra
shipping_emailCONDITIONAL YESstringEmail of the shipping customer.jane@doe.com
shipping_phoneCONDITIONAL YESintegerPhone no. of the shipping customer9887655432
order_itemsYES/Array containing further fields./
nameYESstringName of the product.Jeans
skuYESstringThe sku id of the product.cbs123
unitsYESintegerNo. of units that are to be shipped.10
selling_priceYESintegerThe selling price per unit in Rupee. Inclusive of GST.900
discountNOintegerThe discount amount in Rupee. Inclusive of tax.10
taxNOintegerThe tax percentage on the item.5
hsnNOintegerHarmonised System Nomenclature code. Used to determine the category of taxation the goods fall under.44122
payment_methodYESstringThe method of payment. Can be either COD (Cash on delivery) Or Prepaid.COD
shipping_chargesNOintegerShipping charges if any in Rupee.5
giftwrap_chargesNOintegerGiftwrap charges if any in Rupee.5
transaction_chargesNOintegerTransaction charges if any in Rupee.5
total_discountNOintegerThe total discount amount in Rupee.15
sub_totalYESintegerCalculated sub total amount in Rupee.9010
lengthYESintegerThe length of the item in cms. Must be more than 0.5.10
breadthYESintegerThe breadth of the item in cms. Must be more than 0.5.10
heightYESintegerThe height of the item in cms. Must be more than 0.5.10
weightYESintegerThe weight of the item in kgs. Must be more than 0.2.5

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
billing_email String No
shipping_country String No
shipping_last_name String No
shipping_phone String No
sub_total Number No
breadth Number No
shipping_city String No
shipping_is_billing Boolean No
payment_method String No
shipping_charges Number No
total_discount Number No
order_items[] Array No
order_items[].units Number No
order_items[].tax String No
order_items[].name String No
order_items[].sku String No
order_items[].selling_price String No
order_items[].hsn Number No
order_items[].discount String No
length Number No
shipping_address_2 String No
billing_last_name String No
giftwrap_charges Number No
billing_state String No
billing_address String No
shipping_address String No
shipping_pincode String No
height Number No
channel_id String No
billing_address_2 String No
shipping_customer_name String No
pickup_location String No
transaction_charges Number No
comment String No
shipping_state String No
order_id String No
billing_pincode String No
billing_phone String No
billing_city String No
order_date String No
shipping_email String No
weight Number No
billing_country String No
billing_customer_name String No

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.