Adding Transaction Lines

Add Lines to an existing Transaction Cart

THIS FUNCTION IS CURRENTLY IMPLEMENTED ONLY FOR THE "app" NAMESPACE - NOT FOR "api"
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.
1
pepperi.app.transactions.addLines
2
(
3
{
4
transaction:{UUID:"11cda91f-df09-4d3c-826d-184e5f394d06"},
5
lines:
6
[
7
{
8
item: {ExternalID:"MCR00101BLUEL"},
9
lineData: { UnitsQuantity:5 },
10
leadingLine:{UUID:"11cda91f-df09-4d3c-826d-184e5f394d0d"}
11
}
12
]
13
14
}
15
);
Copied!
Returns:
1
{
2
"success": true,
3
"result": [
4
{
5
"id": "69dc3368-c74a-4616-b1dc-b21ba38c4daa",
6
"status": "added",
7
"message": ""
8
}
9
]
10
}
Copied!
Last modified 2yr ago
Copy link