04-24-2024 04:47 AM - edited 04-24-2024 04:52 AM
Heya,
We're currently setting up our API on the sandbox environment and all policy endpoints are working fine except for the fulfillment part.
We tried a few ways to create policies and createFulfillmentPolicy returns success with the info of the created policy but the endpoints to fetch the created policy(s) fail:
Internal Server Error (500) Response: {"errors":[{"errorId":20500,"domain":"API_ACCOUNT","category":"APPLICATION","message":"System error."}]}
All of these endpoints return the same error from above:
On the other hand, deleteFulfillmentPolicy works with the ID any of the fulfillment policies we created...
Here's an example of our policy (this is one that works on production but we've also tried various different versions)
$policy = [
'categoryTypes' => [
[
'name' => 'ALL_EXCLUDING_MOTORS_VEHICLES',
],
],
'handlingTime' => [
'unit' => 'DAY',
'value' => 1,
],
'marketplaceId' => 'EBAY_DE',
'description' => 'Standard Fulfillment Policy',
'name' => 'Standard Fulfillment Policy',
'shipToLocations' => [
'regionIncluded' => [
[
'regionName' => 'AT',
],
[
'regionName' => 'Europe',
],
[
'regionName' => 'EuropeanUnion',
],
],
'regionExcluded' => [
[
'regionName' => 'CH',
],
],
],
'shippingOptions' => [
[
'optionType' => 'DOMESTIC',
'costType' => 'FLAT_RATE',
'shippingServices' => [
[
'sortOrder' => 1,
'shippingCarrierCode' => 'UPS',
'shippingServiceCode' => 'DE_UPSExpress',
'shippingCost' => [
'currency' => 'EUR',
'value' => 0,
],
'additionalShippingCost' => [
'currency' => 'EUR',
'value' => 0,
],
'freeShipping' => true,
'buyerResponsibleForShipping' => false,
'buyerResponsibleForPickup' => false,
],
],
'shippingDiscountProfileId' => '0',
'shippingPromotionOffered' => false,
],
[
'optionType' => 'INTERNATIONAL',
'costType' => 'FLAT_RATE',
'shippingServices' => [
[
'sortOrder' => 1,
'shippingCarrierCode' => 'GENERIC',
'shippingServiceCode' => 'DE_ExpressInternational',
'shippingCost' => [
'currency' => 'EUR',
'value' => 0,
],
'additionalShippingCost' => [
'currency' => 'EUR',
'value' => 0,
],
'freeShipping' => false,
'shipToLocations' => [
'regionIncluded' => [
[
'regionName' => 'AT',
],
[
'regionName' => 'Europe',
],
[
'regionName' => 'EuropeanUnion',
],
],
],
'buyerResponsibleForShipping' => false,
'buyerResponsibleForPickup' => false,
],
],
'shippingDiscountProfileId' => '0',
'shippingPromotionOffered' => false,
],
],
'globalShipping' => false,
'pickupDropOff' => false,
'freightShipping' => false,
];
Everything is working just fine with the production API, we can change and get our fulfillment policies without any issues.
Any help would be much appreciated.
04-25-2024 07:30 PM
We are experiencing the same issue and cannot verify the listing.
05-04-2024 06:03 PM
Same for me. Also tried with brand new test accounts; the result is the same