Announcement

Collapse
No announcement yet.

JSON API Access denied

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    JSON API Access denied


    Trying to do load orders example from the github:https://github.com/mivaecommerce/api...ers_example.js

    Getting an access denied error.

    var client = new api.Client('https://www.mystore.com/mm5/json.mvc', 'MyApiToken', 'MySigningKey', {});

    For this line, is 'MyApiToken' the generated 'Access Token' and is 'MySigningKey' the generated 'Signature'?

    #2
    I fixed the issue by adding the token to a group.
    Now I get the error Unexpected token A in JSON at IncomingMessage.onResponseEnd (C:\Users\Ryan\Projects\miva\node_modules\merchant api\src\client.js:325:20)
    at IncomingMessage.emit (events.js:193:15)
    at endReadableNT (_stream_readable.js:1129:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)

    Comment


      #3
      Are you able to log the raw JSON response you're getting back?
      Brennan Heyde
      VP Product
      Miva, Inc.
      [email protected]
      https://www.miva.com

      Comment


        #4
        It's fine when I filter for more recent orders. I'm guessing there's just bad data somewhere among all our orders

        Comment

        Working...
        X