Link to home
Start Free TrialLog in
Avatar of faisalkh
faisalkh

asked on

Suitescript post to create a sale record

Hello Experts
I have a SuiteScript which I have made externally available to post the data and create a cash sale record. I am able to save the record successfully, however the problem is to identify an item type and if its a lot-numbered then i have to configure the inventory details. Which I dont understand how I can go about doing this?
Can someone please advise?
Many thanks in advance.
Regards
Kay
code.txt
Avatar of newbie27
newbie27
Flag of United Kingdom of Great Britain and Northern Ireland image

Hello, What exception are you getting when you post your data? Thanks
Avatar of faisalkh
faisalkh

ASKER

Hi
Thanks for looking into this for me.

exceptoin :
Code: USER_ERROR
Details: Inventory items must have a positive amount.

Thanks
Can you show me how is your jsonLines string?
[{
item:"820",
qty:"2",
price:"-1",
rate:"-19.99",
taxcode:"14"
}]
ASKER CERTIFIED SOLUTION
Avatar of newbie27
newbie27
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial