Cant publish "ship to" information on captured sale's invoice through API

KyleconeKylecone Member Posts: 1

Our Developers are connect our custom site and are unable to attribute the "Ship to" information, including "Shipping instructions" on a captured sale. Nor have it appear on the invoice/receipt.


When an order is manually entered we choose "Ship" Which imports shipping data from the customer card, and allows us to add our trigger for Accumual into the "shipping Instructions. Currently the path suggested by LightSpeeds API is coding this information into a new sale workflow, and is only found on the front end by navigating to "todays sales" as if it were pushed through as an in-progress sale.


Instead it should be adding the Ship To information to the already captured sale.


The first attached image of a completed sale entered by hand and how the information appears on the invoice. This is how we need it to reflected on a sale captured and pushed though by out ecom site.


Second image is an invoice of a sale pushed though pushed through by our site


Here is the current structure our developers have :

Our code snippet for LS:


{

 "timeStamp": "2021-05-04 09:35:10",

 "customerID": "98263",

 "employeeID": 24,

 "shopID": 4,

 "registerID": 5,

 "shipTo": {

  "firstName": "Portia",

  "lastName": "Lane",

  "title": null,

  "company": null,

  "contact": {

   "address1": "4372 wallace street",

   "address2": "unit 1w",

   "city": "saint louis",

   "state": "MO",

   "zip": "63116",

   "countryCode": "US",

  },

  "shipNote": "ORDERS \nShip Via: Flat Rate"

 },

 "SaleLines": {

  "SaleLine": [

   {

    "unitQuantity": "1",

    "unitPrice": "15.00",

    "itemID": "27535",

    "taxClassID": "10",

    "tax1Rate": 0,

    "tax": "true",

    "discountAmount": 0

   },

   {

    "unitQuantity": "1",

    "unitPrice": "18.00",

    "itemID": "28585",

    "taxClassID": "10",

    "tax1Rate": 0,

    "tax": "true",

    "discountAmount": 0

   },

   {

    "unitQuantity": 1,

    "unitPrice": "6.95",

    "itemID": 8389,

    "taxClassID": "10",

    "tax1Rate": 0,

    "tax": "true"

   }

  ]

 },

 "SalePayments": {

  "SalePayment": [

   {

    "paymentTypeID": 14,

    "amount": 39.95,

    "remoteReference": "CC: 63017591054"

   }

  ]

 },

 "completed": true,

 "archived": false,

 "voided": false,

 "enablePromotions": true,

 "referenceNumber": "91576",

 "referenceNumberSource": "Web",

 "taxCategoryID": "10",

 "isTaxInclusive": "false",

 "calcPayments": "39.95",

 "displayableSubtotal": "33.00",

 "shipCost": 6.95,

 "taxTotal": 0,

 "total": 39.95,

 "Discount": {

  "discountAmount": "0.00"

 },

 "displayableTotal": 39.95,

 "totalDue": 0,

 "SaleNotes": {

  "InternalNote": {

   "note": ""

  },

  "PrintedNote": {

   "note": "Estimated Weight: 0.60000lbs\nShip Via: Flat Rate"

  }

 }

}




Please advise, thank you!



Sign In or Register to comment.