Save Orders
This API allows publisher/partner to save the orders details by using the parameters mentioned below:
{
"orderList": [{
"shippingMode": "1",
"order_location": "RIL",
"businessUnit": "SRDP",
"awbNo": "",
"uniqueKey": "testorderDoc124564",
"order_no": "testorderDoc124564",
"order_type": "Prepaid",
"payment_type": "CreditCard",
"status": "Confirmed",
"hold_status": "no",
"address_verified": "yes",
"payment_verified": "yes",
"order_date": "10/05/2021 14:19:08",
"shipby_date": "11/05/2021 14:19:08",
"order_amount": "2103.60",
"order_currency": "INR",
"conversion_rate": "2.00",
"is_replacement": "no",
"original_orderno": "",
"customer_name": "Lalit Mohan Joshi",
"ship_address1": "Lal Danth Road, Haldwani",
"ship_address2": "",
"ship_city": "Haldwani",
"ship_state": "Uttarakhand",
"ship_country": "India",
"ship_pincode": "263139",
"ship_phone1": "7981773764",
"ship_phone2": "",
"ship_email1": "lmjdec@gmail.com",
"ship_email2": "",
"bill_name": "Lalit Mohan Joshi",
"bill_address1": "Lal Danth Road, Haldwani",
"bill_address2": "",
"bill_city": "Haldwani",
"bill_state": "Uttarakhand",
"bill_country": "India",
"bill_pincode": "263139",
"bill_phone1": "7981773764",
"bill_phone2": "",
"bill_email1": "lmjdec@gmail.com",
"bill_email2": "",
"order_remarks": "Pleaseusebubblewrap",
"shipping_charges": "",
"other_charge1": "",
"other_charge2": "",
"store_credit": "",
"other_discount": "",
"discount_code": "",
"cancel_remark": "",
"is_giftwrap": "Yes",
"giftwrap_msg": "Congratulations",
"delivery_slot": "",
"udf1": null,
"udf2": null,
"udf3": null,
"udf4": null,
"udf5": null,
"udf6": null,
"udf7": null,
"custTinNo": "",
"pickAfterDate": "",
"items": [{
"lineno": "1",
"isbn": "9781684665846",
"order_qty": "20",
"cancelled_qty": "0",
"unit_price": "105.18",
"bundle_sku": "",
"bundle_price": "",
"bundle_qty": "",
"mrp": "105.18",
"discount_amt": "0.00",
"gift_voucher_amt": "",
"shipping_charges": "0.00",
"other_charge1": "0.00",
"transporter": "",
"store_credit": "",
"is_giftcard": "No",
"vendor": "v1100819",
"mode": "wms",
"tax_inclusive": "YES",
"tax_percentage": "5",
"udf1": null,
"udf2": null,
"udf3": null,
"udf4": null,
"udf5": null,
"udf6": null,
"udf7": null
}],
"docProvider":"base64",
"document":""
}
]
}
Request URL
POST: https://works-uat.reproindialtd.com/api/reproSeller/v1/saveOrders
Parameters Description
Parameter |
Type |
Manadatory* |
Description |
shippingMode |
Number |
Manadatory* |
Provide your the mode of the shipment like surface or air. |
businessUnit |
String |
Manadatory* |
Bussiness Unit can be one only by default i.e. SRDP. |
order_location |
String |
Manadatory* |
Can tell you about the location from where that order can be fullfilled and it is provided by Repro. |
awbNo |
String |
Optional |
Tracking ID to track order and currently not applicable. |
uniqueKey |
String |
Manadatory* |
User have to give unique key(number) for each order. |
order_no |
String |
Manadatory* |
Order number is also the unquie number for each order, so that we can easily differentiate between orders. |
order_type |
String |
Manadatory* |
Order type means whether is order is prepaid or cash on delivery. |
payment_type |
String |
Manadatory* |
Payment Type means the method of payment done while placing the order by customer like credit card, debit card, UPI, etc. |
status |
String |
Manadatory* |
Can track the status of the each order like confirmed, dispatched, delivered, etc. |
hold_status |
String |
Manadatory* |
Hold status is whether is processed the order i.e. confirmed or putting it on hold. By default its value is no because we can't put any status on hold. |
address_verified |
String |
Manadatory* |
By default the value of address_verified is yes because we can process the order only when customer filled the complete address details. |
payment_verified |
String |
Manadatory* |
By default the value of payment_verified is yes because we can process the order only when customer has made the payment and it successfull or it is cash on delivery. |
order_date |
String |
Manadatory* |
Can tell you about the date on which order is placed. |
shipby_date |
String |
Manadatory* |
Can tell you about the expected shipment date. |
order_amount |
Number |
Manadatory* |
Can tell you about the total order amount. |
order_currency |
String |
Manadatory* |
Helps you in finding out that the order is placed from which country like if it is in INR then it is from India, if it's in dollar then it from US, etc. |
conversion_rate |
Number |
Manadatory* |
Helps you in telling you about the rate of INR with respect to the currency of the country in which order is placed. |
is_replacement |
String |
Manadatory* |
By default the value of is_replacement is no because we can't openly define whether the replacement of the product is available or not. |
original_orderno |
String |
Optional |
Can tell you the order number. |
customer_name |
String |
Manadatory* |
Can tell you the name of the customer who have placed order. |
ship_address1 |
String |
Manadatory* |
Customer's address on which the order is to be delivered. In ship_address1 customer can specify his/her Flat No, Street, Society, Locality, Area etc. |
ship_address2 |
String |
Optional |
Customer's address on which the order is to be delivered. In ship_address2 customer can specify his/her Flat No, Street, Society, Locality, Area etc. |
ship_city |
String |
Manadatory* |
In which city order is to be shipped. |
ship_state |
String |
Manadatory* |
In which state order is to be shipped. |
ship_country |
String |
Manadatory* |
In which country order is to be shipped. |
ship_pincode |
Number |
Manadatory* |
Can tell you about the pincode of the city where order is shipping. |
ship_phone1 |
Number |
Manadatory* |
Can tell you the phone number of the customer. |
ship_phone2 |
Number |
Optional |
Can tell you the phone number of the customer. |
ship_email1 |
String |
Manadatory* |
Can tell you the email id of the customer. |
ship_email2 |
String |
Optional |
Can tell you the email id of the customer. |
bill_name |
String |
Manadatory* |
Can tell you the name of the customer who have placed order. |
bill_address1 |
String |
Manadatory* |
Customer's address on which the order is to be delivered. In bill_address1 customer can specify his/her Flat No, Street, Society, Locality, Area etc. |
bill_address2 |
String |
Optional |
Customer's address on which the order is to be delivered. In bill_address2 customer can specify his/her Flat No, Street, Society, Locality, Area etc. |
bill_city |
String |
Manadatory* |
In which city order is to be shipped. |
bill_state |
String |
Manadatory* |
In which state order is to be shipped. |
bill_country |
String |
Manadatory* |
In which country order is to be shipped. |
bill_pincode |
Number |
Manadatory* |
Can tell you about the pincode of the city where order is shipping. |
bill_phone1 |
Number |
Manadatory* |
Can tell you the phone number of the customer. |
bill_phone2 |
Number |
Optional |
Can tell you the phone number of the customer. |
bill_email1 |
String |
Manadatory* |
Can tell you the email id of the customer. |
bill_email2 |
String |
Optional |
Can tell you the email id of the customer. |
order_remarks |
String |
Manadatory* |
Customer writes when placing order like wrtie a message on the parcel, etc. |
other_charge1 |
Number |
Optional |
Can tell you if any other charge is also making while placing order. |
other_charge2 |
Number |
Optional |
Can tell you if any other charge is also making while placing order. |
store_credit |
String |
Optional |
Pass data after consulting Repro only. |
other_discount |
Number |
Optional |
Can tell you if any discount is available while placing order. |
discount_code |
String |
Optional |
Can tell you about the code for discount to apply if discount is available. |
cancel_remark |
String |
Optional |
Customer can put message(remark) if cancelling the order. |
is_giftwrap |
String |
Manadatory* |
Tell the customer that they can gift wrap their product while placing order. By default the value for gift wrap is yes. |
giftwrap_msg |
String |
Manadatory* |
Can tell you the message to write on the gift. |
delivery_slot |
String |
Optional |
Can tell you the timings in between customer wants to get the delivery of the order. |
udf1 |
String |
Optional |
udf is User Defined Fields which is defined by Repro. |
udf2 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf3 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf4 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf5 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf6 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf7 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
custTinNo |
String |
Optional |
Customer Tin no is provided by customer only. |
pickAfterDate |
String |
Optional |
Can tell you that after which date you have to pick the order to deliver. |
docProvider |
String |
Mandatory* |
Tells you about the document (invoice, shipping label) provider like base64 or url. |
document |
String |
Mandatory* |
Can provide data like URL for document, encoded string to get it decode by our system, etc. |
Items Parameters Description
Parameter |
Type |
Manadatory* |
Description |
lineno |
Number |
Mandatory* |
Tells the line number of the items if there are number of items available in one order. |
isbn |
Number |
Mandatory* |
Tells the ISBN number of each item available in order. |
order_qty |
Number |
Mandatory* |
Tells that how many number of the items available in one order. |
cancelled_qty |
Number |
Mandatory* |
Tells that how many number of the items are cancelled in that order. |
unit_price |
Number |
Mandatory* |
Tells the amount of each item present in that order. |
bundle_sku |
String |
Optional |
Can tell you that if the item have ordered has set of books or not. |
bundle_price |
Number |
Optional |
Can tell you about each book price separately present in the bundle of books. |
bundle_qty |
Number |
Number |
Can tell you the number of books present in the bundle. |
mrp |
Number |
Manadatory* |
Can tell you the mrp of the items available in order. |
discount_amt |
Number |
Manadatory* |
Tells you about the amount of discount made on items in order list. |
gift_voucher_amt |
Number |
Optional |
Tells you the amount of the gift voucher on items if availabe. |
shipping_charges |
Number |
Manadatory* |
Tells you about the charges apply on items available in order. |
other_charge1 |
Number |
Manadatory* |
Can tell you if any other charge applied on items available in order. |
transporter |
String |
Optional |
Can tell you via which transporter mode the order is shipped like Bluedart. |
store_credit |
String |
Optional |
Pass data after consulting Repro only. |
is_giftcard |
String |
Manadatory* |
Default value is NO for now as there is no other option available currently. |
vendor |
String |
Manadatory* |
Tells you about the vendor of each item available in order. |
mode |
String |
Manadatory* |
Default mode is wms and you can't change it. |
tax_inclusive |
String |
Manadatory* |
Can tell you if the tax is included in the item or not. |
tax_percentage |
Number |
Manadatory* |
Can tell you about the tax percentage included in the amount, customer have to pay for the item while placing order. |
udf1 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf2 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf3 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf4 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf5 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf6 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
udf7 |
String |
Optional |
udf is User Defined Fields - a custom field which is passed after consulting Repro only. |
Responses
Success:
{
"status": 1,
"message": "SUCCESS",
"data": {
"requestId": "aa63aaa818744156bb053e0ac3af57d3",
"orders": [
{
"msg": "",
"orderNumber": "testorderDoc124564",
"status": 1
}
]
},
"tag": "v1/saveOrders"
}
Error:
Status: Token Invalid
{
"status": 0,
"message": "User not found ",
"data": {},
"tag": null
}