Purpose: Used to retrieve a sales Order
Resource URL: http://localhost:8482/WebReporter/api/v1/salesOrder
Method: GET
Authentication: Set Header As
Request:
GET: http://localhost:8482/WebReporter/api/v1/salesOrders
Response:
{"salesOrder": { "onlineReferenceNo": 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, "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 }} |
Example:
1. To retrieve a particular sales order using its id
Request:
GET: http://localhost:8482/WebReporter/api/v1/salesOrders/1