API for Create Sales Order
Purpose: Used to create Sales Order
Resource URL: http://localhost:8482/WebReporter/api/v1/salesOrders
Method: POST
Authentication: Set Header As
X-Auth-Token : <API - KEY>
Request:
Post: http://localhost:8482/WebReporter/api/v1/salesOrders
X-Auth-Token : EBFE27C595329E1D37D5D3A2DF601C1A387DB41896A737BFD45C7E58F41139E1045C09EB588C78E5
Post Data:
Accept: application/json
Test the application using postman tool. For more details, click here
{"salesOrder":
{
"onlineReferenceNo": 1, "onlineChildReferenceNo" : "1",
"createdAt": "2013-11-22 13: 00: 00",
"updatedAt": "2013-11-22 13: 00: 00",
"status":"pending",
"orderRemarks":"",
"Channel:"",
"courierPartner":"",
"totalQuantity": 10,
"totalAmount": 100,
"paymentMode": 1,
"totalTaxAmount": 2,
"totalDiscountAmount": 0,
"shippingId:"1",
"shippingName": "naveen",
"shippingAddress1": "ram nagar",
"ShippingAddress2": "",
"shippingPlace": "chennai",
"shippingState": "Tamil Nadu",
"shippingCountry": "india",
"shippingPincode": 600042,
"shippingPhone": "04142225488",
"shippingMobile": "9597045243",
"shippingEmail": "naveensftwr@gmail.com",
"shippingCharge": 0,
"shippingMethod":"",
"ShipmentPointsUsed":"",
"shipmentItems":"",
"shipmentAbn":"",
"shipmentWeight":"",
"discountCoupon":"",
"deliveryDate": "2013-11-22 13: 00: 00",
"locationId": 1,
"userId": "admin",
"orderItems": [
{
"rowNo": 1,
"itemId": 1,
"itemName": "lux",
"itemReferenceCode":"",
"salePrice": 10,
"quantity": 10,
"itemAmount": 100,
"taxPercentage": 2,
"discountPercentage": 0,
"itemRemarks":"",
"itemMarketPrice":""
}
],
"customerId": 1,
"customerName": "naveen",
"customerAddressLine1": "chennai",
"customerAddressLine2": "chennai",
"customerAddressLine3": "",
"customerArea": "velachery",
"customerCity": "chennai",
"customerState": "tamil nadu",
"customerCountry": "india",
"customerPincode": 600042,
"customerPhone": "04142225488",
"customerEmail": "naveensftwr@gmail.com",
"customerMobile": "9597045243"
}
} |
Response Format:
| Parameter |
Description |
| Status |
The value will be "success" -or- "error" |
| Message |
Error description in case of status is "error" |
{
"result": {
"status": "Success",
"id": 1
}
} |