question

adonialtd avatar image
0 Likes"
adonialtd asked

How to fix error " Item.Currency does not exist" Please?

Could you please help us with this issue?

We've created our inventory with "createOrReplaceInventoryItem"

We've created our offer with "createOffer"

But when using ""publishOffer":

error  [
  {
    errorId: 25002,
    domain: 'API_INVENTORY',
    subdomain: 'Selling',
    category: 'REQUEST',
    message: "A user error has occurred. "Item.Currency" n'existe pas ou est spécifié en tant que balise vide dans la requête",
    parameters: [ [Object] ]
  },
  {
    errorId: 25002,
    domain: 'API_INVENTORY',
    subdomain: 'Selling',
    category: 'REQUEST',
    message: "A user error has occurred. "Item.Country>" n'existe pas ou est spécifié en tant que balise vide dans la requête",
    parameters: [ [Object] ]
  },
  Headers: {
    'x-ebay-c-request-id': 'ri=pFvYKOthidu6,rci=bf943c473ef9605c',
    rlogid: 't6pitnmsgwj70%3D9whhpitnmsgwj70*4%3C3vu%28rbpv6710-1786a5d7f4d-0x475',
    'x-ebay-c-version': '1.0.0',
    'set-cookie': [ 'ebay=%5Esbf%3D%23%5E;Domain=.ebay.com;Path=/' ],
    'content-type': 'application/json',
    'content-length': '540',
    date: 'Thu, 25 Mar 2021 17:10:15 GMT',
    server: 'ebay-proxy-server',
 		...
  },
  StatusCode: 400
]

Error from error.parameters

error[ { name: '0', value: 'Item.Currency' } ]

error [ { name: '0', value: 'Item.Country' } ]

publish offer errorpublish offerpublishoffer
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @adonialtd ,

When you create a offer by createOffer call, you can provide only some information with the initial createOffer call, and then make one or more subsequent updateOffer calls to complete the offer and prepare to publish the offer. Upon first creating an offer, the following fields are required in the request payload:
- sku
- marketplaceId
- Listing format.Other information that will be required before an offer can be published are mentioned below.
- Inventory location
- Offer price
- Available quantity
- eBay listing category
- Referenced listing policy profiles to set payment, return, and fulfillment values/settingsFor error "A user error has occurred. "Item.Currency" n'existe pas ou est spécifié en tant que balise vide dans la requête"- Please make updateOffer call and specify the listing price of the product under pricingSummary.price node.


Ref: https://developer.ebay.com/api-docs/sell/inventory/resources/offer/methods/updateOffer#request.pricingSummary.price

For error "A user error has occurred. "Item.Country>" n'existe pas ou est spécifié en tant que balise vide dans la requête"
- Please make updateOffer call and specify the merchantLocationKey in the request and update the offer. After updating the offer, pleae try to publish the offer again.


Ref: https://developer.ebay.com/api-docs/sell/inventory/resources/offer/methods/updateOffer#request.merchantLocationKey

If you have not created any merchantLocationKey, please make CreateInventoryLocation call and create a new inventory location. After creating a inventory location you can use that inventory location while creating or updating a offer.

Ref: https://developer.ebay.com/api-docs/sell/inventory/resources/location/methods/createInventoryLocation

Best regards ,
eBay Developer Support

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

adonialtd avatar image
0 Likes"
adonialtd answered

@sagar_developersupport


Thank you very much Sagar, it works very well now.

I finally managed to make my automatic "sell" script works.


Thank you so much for your help.

Best regards

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.