Shipping Order

Payment capture and invoice

Full invoice

  • After placing the order from the eCommerce as an authorized payment, navigate to the sales order and select the order.
    For a full invoice, you can just post the order from the sales order, and a webhook will be generated.

A full webhook capture looks like the example below, and it is logged in the webhookstatus.log file.

You can view the webhookstatus.log file from Magento admin:

  • In the LS Retail menu in admin, click Reports and select WebHookStatus to view the webhook json return from LS Central.

The invoice will also be generated against this order. The payment webhook will work with all orders with payment tender type cards.

{"OrderId":"CO000002","Status":"0","Amount":"92.4","CurrencyCode":"USD","Token":"92p2wnmn","AuthCode":"","Reference":"STAT000000386","Lines":[{"LineNo":"10000","ItemId":"40180","VariantId":"","UnitOfMeasureId":"PCS","Quantity":1,"Amount":87.4},{"LineNo":"20000","ItemId":"66010","VariantId":"","UnitOfMeasureId":"PCS","Quantity":1,"Amount":5}]}

Partial invoice

  1. For a partial invoice, place an order for a product with Qty 2 from eCommerce. You will then invoice one of the units as a partial invoice:

  2. Then from the sales order, invoice 1 out of 2 units of the product. An invoice is created for quantity 1:

    Below is the JSON response from the webhook. It is logged in the webhookstatus.log file.

    {"OrderId":"CO000285","Status":0,"Amount":105.0,"CurrencyCode":"USD","Token":"3pcs2pvx","AuthCode":"","Reference":"LSR-000000149","Lines":[{"LineNo":"10000","ItemId":"40180","VariantId":"","UnitOfMeasureId":"PCS","Quantity":1.0,"Amount":95.0},{"LineNo":"20000","ItemId":"66010","VariantId":"","UnitOfMeasureId":"PCS","Quantity":1.0,"Amount":10.0}]}
  3. You now have an invoice generated for the product with quantity 1: