API for Create a Sales Order

API to Create a Sales Order

Purpose: Used to create Sales Order

Resource URL: http://localhost:8382/WebReporter/api/v1/salesOrders

Method: POST

Authentication: Set Header As

X-Auth-Token: <API - KEY>


Request:

Post: http://localhost:8382/WebReporter/api/v1/salesOrders

X-Auth-Token: EBFE27C595329E1D37D5D3A2DF601C1A387DB41896A737BFD45C7E58F41139E1045C09EB588C78E5

Post Data:

Accept: application/json

Test the application using the postman tool. For more details, click Postman Tool

 
{  
"salesOrder":
{
"onlineReferenceNo":1,
"createdAt":"2014-10-11 17:40:55",
"updatedAt":"1900-01-01 00:23:20",
"status":"pending",
"orderRemarks":"newSo",
"Channel":"ASDFASDF",
"totalQuantity":1,
"totalAmount":47.75,
"paymentMode":1,
"totalTaxAmount":2.04,
"totalDiscountAmount":2.25,
"courierPartner":"ABT",
"shippingId":"2",
"shippingName":"Arjun",
"shippingAddress1":"anna nagar",
"shippingAddress2":"shennoi nagar",
"shippingPlace":"near to anna arch",
"shippingState":"Tamil Nadu",
"shippingCountry":"india",
"shippingPincode":"600034",
"shippingPhone":"04143745365",
"shippingMobile":"9944577577",
"shippingEmail":"Arjun@gmail.com",
"shippingCharge":5,
"shippingMethod":"economy",
"ShipmentPointsUsed":5,
"shipmentItems":1,
"shipmentABN":145,
"shipmentWeight":50,
"discountCoupon":1,
"deliveryDate":"2014-11-23 10:50:50",
"customerId":1006,
"customerName":"Jagadesh",
"customerType":1,
"customerAddressLine1":"S2,Kalki flats",
"customerAddressLine2":"durga nagar",
"customerAddressLine3":"near tambaram sanatorium",
"customerArea":"Chromepet",
"customerCity":"chennai",
"customerState":"tamil nadu",
"customerCountry":"india",
"customerPincode":600047,
"customerPhone":"041454734555",
"customerMobile":"9600822216",
"customerEmail":"hja@gmail.com",
"orderItems":
[
{
"rowNo":1,
"itemId":1,
"itemName":"PANTINE",
"itemReferenceCode":"1",
"salePrice":45,
"quantity":1,
"itemAmount":45,
"taxPercentage":5,
"discountPercentage":0,
"itemRemarks":"Fresh SO",
"itemMarketPrice":45
}
]
}
}
 

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
  }
}

    • Related Articles

    • API for List All Sales Orders

      API for List all Sales Orders (With user validation) Purpose: Used to retrieve all sales Orders Resource URL: http://localhost:8382/WebReporter/api/v1/salesOrders Method: GET Authentication: Set Header As X-Auth-Token: <API - KEY> Request: GET: ...
    • What is API Integration? Which API do we provide for Website integration?

      Overview API integration enables data communication, information exchange between an online store and the POS system. We provide the following APIs... An item with rate and stock API (List all items) Sales order APIs (Create a sales order List all ...
    • GST tax for Order Type Master

      Purpose :- When a restaurant provides a takeaway or delivery service, the transaction is considered a sale of goods or services, and the restaurant must charge GST on the value of the sale. the purpose of charging GST for takeaway and delivery orders ...
    • How to give the GST for take away and deliver order product?

      Purpose :- When a restaurant provides a takeaway or delivery service, the transaction is considered a sale of goods or services, and the restaurant must charge GST on the value of the sale. the purpose of charging GST for takeaway and delivery orders ...
    • What is the API to Retrieve a Sales Order?

      API for Retrieve a sales order (With user validation) Purpose: Used to retrieve a sales Order Resource URL: http://localhost:8382/WebReporter/api/v1/salesOrder Method: GET Authentication: Set Header AsX-Auth-Token : <API - KEY> Request: GET: ...