How do you apply a payment or payment type and amount through API? Retail API

EricFixITEricFixIT Member Posts: 1

Currently, we use a custom credit system, similar to Tap Mango, to keep track of customer credit from trade-ins. This system works fine for apply credit to the sale as a Misc item in the sale line which is negative. However, this appears on Lightspeed reports as a refund and lowers the margin of sales.

https://api.lightspeedapp.com/API/Account/{account ID}/Sale/{sale ID}/SaleLine.json

{
 "Note":{
  "note":"Store Credit",
  "isPublic":true
 },
  "tax":false,
  "taxClassID":1,
  "unitPrice":{amount to subtract from sale},
  "unitQuantity":1,
  "avgCost":0,
  "fifoCost":0,
  "itemID":0
 }


What I want to do is apply a custom payment type we created in Lightspeed call "Store Credit" as the amount submitted in the 3rd party app. We could have the employee manually add this number to the sale but this leaves room for human error in entering the wrong number applied from the 3rd party app.

TLDR;

Is there an API method that would let me apply a payment type to the sale?

Example:

If someone wants to buy a backpack at $40 and they have $10 in store credit, there is a button on the sale page we click to go to the app, and then select how much store credit to use, authorize, submit, and that is when we want the app to post Store Credit payment type to the ongoing sale.

Tags:
Sign In or Register to comment.