I have passed fulfillmentPolicyId, paymentPolicyId, returnPolicyId while creating the offer.
Also I've called both apis optInToProgram and getOptedInPrograms to check the things.
But still getting error while publishing the offer:
{
"errors": [
{
"errorId": 25101,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "Invalid <ShippingPackage>."
}
]
}
----------------------------------------------------------------------------------------------------------------------
Here I'm sharing inventory and offer payloads:
inventory payload:
------------------------
PUT: https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/AUDI_XENON_LAMP_7671439
{
"sku": "AUDI_XENON_LAMP_7671439",
"product": {
"title": "Xenon Lamp for Audi A3",
"description": "XENON D1S LAMP VOOR EEN AUDI A3",
"aspects": {
"Brand": ["Audi"],
"Model": ["A3"],
"Part": ["Xenon Lamp"]
},
"condition": "NEW",
"imageUrls": [
],
"price": {
"value": "75.00",
"currency": "USD"
},
"quantity": 1,
"categoryId": "10063" // Example category ID
}
}
offer payload:
-------------------
{
"sku": "AUDI_XENON_LAMP_7671439",
"marketplaceId": "EBAY_US",
"format": "FIXED_PRICE",
"listingDescription": "Listing Description",
"availableQuantity": 1,
"categoryId": "10063",
"listingPolicies": {
"fulfillmentPolicyId": "78842674011",
"paymentPolicyId": "61019561011",
"returnPolicyId": "61019560011"
},
"pricingSummary": {
"price": {
"value": "20.00",
"currency": "USD"
}
},
"merchantLocationKey": "store1"
}
I don't know what's the issue?
Still need to pass anything else?
Thanks!