Create PO Header

soft911soft911 Posts: 1Member

I am receiving an error message using Python.

{"httpCode":"400","httpMessage":"Bad Request","message":"JSON Input was invalid. Error Message: Syntax error","errorClass":"Exception"}

  import requests

    url = "https://api.lightspeedapp.com/API/Account/122864/Order.json"

    thisdict = {

     "vendorID": 2,

     "shopID": 1,

     "shipCost": 7.50

    }

  headers = {"authorization": "Bearer "+c_access_token}

  response = requests.request("POST", url, data=thisdict, headers=headers)

Any ideas?

Tags:

Answers

Sign In or Register to comment.