Problem setting CustomFieldValues for item via PostMan as a test...

rsirotarsirota Member Posts: 94

I am trying to set a CustomFieldValues for an item and am getting the following error:

{

"httpCode": "400",

"httpMessage": "Bad Request",

"message": "JSON Input was invalid. Error Message: Syntax error",

"errorClass": "InvalidArgumentException"

}

Here is my request:

https://api.lightspeedapp.com/API/Account/{{accountID}}/Item/29360.json

with a body of:

{

"CustomFieldValues": {

"CustomFieldValue": [

{

"customFieldID": "6",

"type": "string",

"value": "This is a test"

}

]

}

}

Answers

  • Ali_MasoumieAli_Masoumie Moderator, Lightspeed Staff Posts: 151 moderator

    It should work as I was able to do the request with your payload in my test shop.

    If you're still having issues, can you send me your account_ID and let me know if you're oké with me trying to do the call on your account.

  • rsirotarsirota Member Posts: 94

    I got it to work directly not from Postman...

Sign In or Register to comment.