How to create an “inventory location” using ebay's inventory api? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How to merge two dictionaries in a single expression?How do I check if a list is empty?How do I check whether a file exists without exceptions?How can I safely create a nested directory in Python?How can I make a time delay in Python?How do I sort a dictionary by value?How to make a chain of function decorators?How to make a flat list out of list of listsHow do I list all files of a directory?Way to create multiline comments in Python?

Why is my ESD wriststrap failing with nitrile gloves on?

Generate an RGB colour grid

Combinatorics problem on counting.

Drawing without replacement: why is the order of draw irrelevant?

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

What do you call the main part of a joke?

Did Deadpool rescue all of the X-Force?

Can anything be seen from the center of the Boötes void? How dark would it be?

Can the Great Weapon Master feat's "Power Attack" apply to attacks from the Spiritual Weapon spell?

Can an alien society believe that their star system is the universe?

Why is Nikon 1.4g better when Nikon 1.8g is sharper?

Did Krishna say in Bhagavad Gita "I am in every living being"

How would a mousetrap for use in space work?

Is CEO the "profession" with the most psychopaths?

How to write the following sign?

Is it fair for a professor to grade us on the possession of past papers?

Effects on objects due to a brief relocation of massive amounts of mass

How do I find out the mythology and history of my Fortress?

A term for a woman complaining about things/begging in a cute/childish way

Can a new player join a group only when a new campaign starts?

Maximum summed subsequences with non-adjacent items

How were pictures turned from film to a big picture in a picture frame before digital scanning?

What is the difference between globalisation and imperialism?

An adverb for when you're not exaggerating



How to create an “inventory location” using ebay's inventory api?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How to merge two dictionaries in a single expression?How do I check if a list is empty?How do I check whether a file exists without exceptions?How can I safely create a nested directory in Python?How can I make a time delay in Python?How do I sort a dictionary by value?How to make a chain of function decorators?How to make a flat list out of list of listsHow do I list all files of a directory?Way to create multiline comments in Python?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am trying to use ebay's inventory api and I need help. I'm about 7 hours in and still haven't successfully made a POST request to my TESTUSER instance in the ebay sandbox.



I am simply trying to create an "inventory location" for TESTUSER, the details for this are outlined here.



The relevant code for my attempt:



USER_ACCESS_TOKEN = 'v^1.1#i^1#f^0#p^3#r^0#I^3#t^ ...
...
...
...
... q5rrPADVazTDVhHSGa93n8BspcNB3YhaWlr5exfxAAA='


url = 'https://api.sandbox.ebay.com/sell/inventory/v1/location/Warehouse-1'

headers =
"Accept":"application/json",
"Content-Type":"application/json",
"Authorization": "Bearer " + USER_ACCESS_TOKEN


data =
"location":
"address":
"addressLine1": "123 lane",
"addressLine2": "Building 3",
"city": "San Jose",
"stateOrProvince": "CA",
"postalCode": "95125",
"country": "US"

,
"locationInstructions": "Items ship from here.",
"name": "Warehouse-1",
"merchantLocationStatus": "ENABLED",
"locationTypes": [
"WAREHOUSE"
]


res = requests.post(url, headers=headers, data=data)

print(res.status_code) #400


This is the error message that I get in res.text:




"errors":["errorId":
2004,"domain":"ACCESS","category":"REQUEST","message":"Invalid request","longMessage":"The request has errors. For help, see the documentation for this API.","parameters":["name":"reason","value":"Unexpected character ('l' (code 108)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')"]]




according to this page, error No. 2004 is the following:




An error occurred while processing the SKU associated with Instance ID: "". Please contact your Account Manager or MIP Technical Support for assistance.




Which is nonsense in this situation...



Note that I copied the data in the POST request directly from the sample request ebay uses for this resource (located at the bottom of the page), so I assume the error isn't related to that field?



Any advice/links to related issues would really be appreciated! :)










share|improve this question




























    0















    I am trying to use ebay's inventory api and I need help. I'm about 7 hours in and still haven't successfully made a POST request to my TESTUSER instance in the ebay sandbox.



    I am simply trying to create an "inventory location" for TESTUSER, the details for this are outlined here.



    The relevant code for my attempt:



    USER_ACCESS_TOKEN = 'v^1.1#i^1#f^0#p^3#r^0#I^3#t^ ...
    ...
    ...
    ...
    ... q5rrPADVazTDVhHSGa93n8BspcNB3YhaWlr5exfxAAA='


    url = 'https://api.sandbox.ebay.com/sell/inventory/v1/location/Warehouse-1'

    headers =
    "Accept":"application/json",
    "Content-Type":"application/json",
    "Authorization": "Bearer " + USER_ACCESS_TOKEN


    data =
    "location":
    "address":
    "addressLine1": "123 lane",
    "addressLine2": "Building 3",
    "city": "San Jose",
    "stateOrProvince": "CA",
    "postalCode": "95125",
    "country": "US"

    ,
    "locationInstructions": "Items ship from here.",
    "name": "Warehouse-1",
    "merchantLocationStatus": "ENABLED",
    "locationTypes": [
    "WAREHOUSE"
    ]


    res = requests.post(url, headers=headers, data=data)

    print(res.status_code) #400


    This is the error message that I get in res.text:




    "errors":["errorId":
    2004,"domain":"ACCESS","category":"REQUEST","message":"Invalid request","longMessage":"The request has errors. For help, see the documentation for this API.","parameters":["name":"reason","value":"Unexpected character ('l' (code 108)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')"]]




    according to this page, error No. 2004 is the following:




    An error occurred while processing the SKU associated with Instance ID: "". Please contact your Account Manager or MIP Technical Support for assistance.




    Which is nonsense in this situation...



    Note that I copied the data in the POST request directly from the sample request ebay uses for this resource (located at the bottom of the page), so I assume the error isn't related to that field?



    Any advice/links to related issues would really be appreciated! :)










    share|improve this question
























      0












      0








      0








      I am trying to use ebay's inventory api and I need help. I'm about 7 hours in and still haven't successfully made a POST request to my TESTUSER instance in the ebay sandbox.



      I am simply trying to create an "inventory location" for TESTUSER, the details for this are outlined here.



      The relevant code for my attempt:



      USER_ACCESS_TOKEN = 'v^1.1#i^1#f^0#p^3#r^0#I^3#t^ ...
      ...
      ...
      ...
      ... q5rrPADVazTDVhHSGa93n8BspcNB3YhaWlr5exfxAAA='


      url = 'https://api.sandbox.ebay.com/sell/inventory/v1/location/Warehouse-1'

      headers =
      "Accept":"application/json",
      "Content-Type":"application/json",
      "Authorization": "Bearer " + USER_ACCESS_TOKEN


      data =
      "location":
      "address":
      "addressLine1": "123 lane",
      "addressLine2": "Building 3",
      "city": "San Jose",
      "stateOrProvince": "CA",
      "postalCode": "95125",
      "country": "US"

      ,
      "locationInstructions": "Items ship from here.",
      "name": "Warehouse-1",
      "merchantLocationStatus": "ENABLED",
      "locationTypes": [
      "WAREHOUSE"
      ]


      res = requests.post(url, headers=headers, data=data)

      print(res.status_code) #400


      This is the error message that I get in res.text:




      "errors":["errorId":
      2004,"domain":"ACCESS","category":"REQUEST","message":"Invalid request","longMessage":"The request has errors. For help, see the documentation for this API.","parameters":["name":"reason","value":"Unexpected character ('l' (code 108)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')"]]




      according to this page, error No. 2004 is the following:




      An error occurred while processing the SKU associated with Instance ID: "". Please contact your Account Manager or MIP Technical Support for assistance.




      Which is nonsense in this situation...



      Note that I copied the data in the POST request directly from the sample request ebay uses for this resource (located at the bottom of the page), so I assume the error isn't related to that field?



      Any advice/links to related issues would really be appreciated! :)










      share|improve this question














      I am trying to use ebay's inventory api and I need help. I'm about 7 hours in and still haven't successfully made a POST request to my TESTUSER instance in the ebay sandbox.



      I am simply trying to create an "inventory location" for TESTUSER, the details for this are outlined here.



      The relevant code for my attempt:



      USER_ACCESS_TOKEN = 'v^1.1#i^1#f^0#p^3#r^0#I^3#t^ ...
      ...
      ...
      ...
      ... q5rrPADVazTDVhHSGa93n8BspcNB3YhaWlr5exfxAAA='


      url = 'https://api.sandbox.ebay.com/sell/inventory/v1/location/Warehouse-1'

      headers =
      "Accept":"application/json",
      "Content-Type":"application/json",
      "Authorization": "Bearer " + USER_ACCESS_TOKEN


      data =
      "location":
      "address":
      "addressLine1": "123 lane",
      "addressLine2": "Building 3",
      "city": "San Jose",
      "stateOrProvince": "CA",
      "postalCode": "95125",
      "country": "US"

      ,
      "locationInstructions": "Items ship from here.",
      "name": "Warehouse-1",
      "merchantLocationStatus": "ENABLED",
      "locationTypes": [
      "WAREHOUSE"
      ]


      res = requests.post(url, headers=headers, data=data)

      print(res.status_code) #400


      This is the error message that I get in res.text:




      "errors":["errorId":
      2004,"domain":"ACCESS","category":"REQUEST","message":"Invalid request","longMessage":"The request has errors. For help, see the documentation for this API.","parameters":["name":"reason","value":"Unexpected character ('l' (code 108)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')"]]




      according to this page, error No. 2004 is the following:




      An error occurred while processing the SKU associated with Instance ID: "". Please contact your Account Manager or MIP Technical Support for assistance.




      Which is nonsense in this situation...



      Note that I copied the data in the POST request directly from the sample request ebay uses for this resource (located at the bottom of the page), so I assume the error isn't related to that field?



      Any advice/links to related issues would really be appreciated! :)







      python python-3.x python-requests ebay-api






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 20:16









      Caleb GoodmanCaleb Goodman

      1,2161518




      1,2161518






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070422%2fhow-to-create-an-inventory-location-using-ebays-inventory-api%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070422%2fhow-to-create-an-inventory-location-using-ebays-inventory-api%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович