cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inventory: publishOffer - Error 25007 "invalid data in the associated Fulfillment policy"

Hi there,

 

I'm successfully using the API to create an inventory item, then an offer associated to that item. I have a location created, and I have a fulfillment policy. 

 

The error I'm getting when trying to publish (either via my application or via API Explorer) is:

 

{
  "errors": [
    {
      "errorId": 25007,
      "domain": "API_INVENTORY",
      "subdomain": "Selling",
      "category": "REQUEST",
      "message": "The eBay listing associated with the inventory item, or the unpublished offer has invalid data in the associated Fulfillment policy. Please add at least one valid postage service option to your listing."
    }
  ]
}

 

 

I can't understand what the issue is, when I've got several postage options on there. I'm sure I'm missing something simple!

Thanks

Here's an example offer:

{
"offerId": "514493154016",
"sku": "MNJ955",
"marketplaceId": "EBAY_GB",
"format": "FIXED_PRICE",
"listingDescription": "Test",
"pricingSummary": {
"price": {
"value": 9.89,
"currency": "GBP"
}
},
"merchantLocationKey": "warehouse2",
"status": "UNPUBLISHED",
"listingDuration": "GTC",
"includeCatalogProductDetails": true,
"hideBuyerDetails": false,
"errors": null,
"warnings": null
}

 

And fulfillment policy:

{
  "total": 1,
  "fulfillmentPolicies": [
    {
      "fulfillmentPolicyId": "246662083012",
      "name": "TryAgain2",
      "marketplaceId": "EBAY_GB",
      "shippingOptions": [
        {
          "optionType": "DOMESTIC",
          "costType": "FLAT_RATE",
          "shippingServices": [
            {
              "shippingCarrierCode": "Royal Mail",
              "shippingServiceCode": "UK_RoyalMailFirstClassStandard",
              "shippingCost": {
                "value": "0.0",
                "currency": "GBP"
              },
              "additionalShippingCost": {
                "value": "0.0",
                "currency": "GBP"
              }
            },
            {
              "shippingCarrierCode": "UPS",
              "shippingServiceCode": "UK_UPSNextDay",
              "shippingCost": {
                "value": "0.0",
                "currency": "GBP"
              },
              "additionalShippingCost": {
                "value": "0.0",
                "currency": "GBP"
              }
            }
          ]
        }
      ],
      "handlingTime": {
        "value": 1,
        "unit": "DAY"
      }
    }
  ]
}

I've tried different policy setups.

Message 1 of 2
latest reply
1 REPLY 1

Inventory: publishOffer - Error 25007 "invalid data in the associated Fulfillment policy"

Hi @googlebox99,

 

We noticed that the fulfillment policy is having shippingCarrierCode as "Royal Mail" while the correct value for the carrier is "RoyalMail". You can try to update the policy with correct carrier value and try again to publish the offer. 

 

For a full list of shipping carrier enum and shipping service option enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingCarrierDetails and ShippingServiceDetails.

Best Regards,
eBay Developer Support
Message 2 of 2
latest reply