Adding Transaction Lines

Add Lines to an existing Transaction Cart

THIS FUNCTION IS CURRENTLY IMPLEMENTED ONLY FOR THE "api" NAMESPACE - NOT FOR "app"

This function will only add line to the cart - not to the "order center"

LeadingLine is optional - it should be used for "bonus items" to assign an item to it's "parent" item.

pepperi.app.transactions.addLines
(
  { 
    transaction:{UUID:"11cda91f-df09-4d3c-826d-184e5f394d06"},
    lines:
    [
      {
        item:  {ExternalID:"MCR00101BLUEL"},
        lineData:  { UnitsQuantity:5 },
        leadingLine:{UUID:"11cda91f-df09-4d3c-826d-184e5f394d0d"}
      }
    ]
    
  }  
);

Returns:

{
  "success": true,
  "result": [
    {
      "id": "69dc3368-c74a-4616-b1dc-b21ba38c4daa",
      "status": "added",
      "message": ""
    }
  ]
}

Last updated