POST /v1/external/orders/create/adhoc

Use this API to create a quick custom order. Quick orders are the ones where we do not store the product details in the master catalogue.

You have to pass all the required params at the minimum to create a quick custom order. You can add additional parameters as per your preference.

Note:

If no channel id is passed, the order will be assigned to the default custom channel. If the channel id is not known, use the 'Get All Channels' API to get the list of all integrated channels in your Shiprocket account.

Parameters:

PARAMSREQUIREDDATA TYPEDESCRIPTIONEXAMPLE
order_idYESstringThe order id you want to specify to the order. Max char: 50. (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 additional.2019-07-24 11:11
pickup_locationYESstringThe name of the pickup location added in your Shiprocket account. This cannot be a new location.Jammu
channel_idNOintegerMention this in case you need to assign the order to a particular channel. Deafult is 'Custom'.27022
commentNOstringOption to add 'From' field to the shipment. To do this, enter the name in the following format: 'Reseller: [name]'.Reseller: Divine
reseller_nameNOstringThe 'from' name if you want to print. Use 'Reseller: [name]'Reseller: Divine
company_nameNOstringName of the company.Amazon
billing_customer_nameYESstringFirst name of the billed customer.John
billing_last_nameNOstringLast name of the billed customer.Doe
billing_addressNOstringaddress details of the billed customer.Civil line, House 20
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_phoneYESintegerThe phone number of the billing customer.9856321472
billing_alternate_phoneNOintegerAlternate phone number of the billing customer.8604690454
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 number 69
shipping_address_2NOstringFurther address details of shipping customer.Andheri
billing_isd_codeNOstringISD code of the billing address.+91
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_emailNOstringEmail of the shipping customer.Jane@doe.com
shipping_phoneCONDITIONAL YESintegerPhone no. of the shipping customer.
longitudeNOfloatDestination (Shipping address) Longitude.69.0747
latitudeNOfloatDestination (Shipping address) Latitude22.4064
order_itemsYES/List of items and their relevant fields in the form of Array./
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 after deductions.9010
lengthYESfloatThe length of the item in cms. Must be more than 0.5.10
breadthYESfloatThe breadth of the item in cms. Must be more than 0.5.10
heightYESfloatThe height of the item in cms. Must be more than 0.5.10
weightYESfloatThe weight of the item in kgs. Must be more than 0.2.5
ewaybill_noNOstringDetails relating to the shipment of goods. .K92373490
customer_gstinNOstringGoods and Services Tax Identification Number.29ABCDE1234F2Z5
invoice_numberNOstring
order_typeNOstringKey to differentiate between Essentials or Non Essentials Shipments. Order type can only be ESSENTIALS or NON ESSENTIALS. Please note it is case sensitive and blank values are allowed.ESSENTIALS
checkout_shipping_methodNOstringOnly for SRF users.a. SR_RUSH: SDD, NDD
b. SR_STANDARD: Surface Delivery
c. SR_EXPRESS: Air Delivery
d. SR_QUICK: 3 hrs delivery
what3words_addressNOstringWhat3words is a proprietary geocode system designed to identify any location on the surface of Earth with a resolution of about 3 meters. The system encodes geographic coordinates into three permanently fixed dictionary words.toddler.geologist.animated
is_insurance_optNObooleanTo secure shipments above the order value of Rs 2500true

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.