question

msp.itb_2 avatar image
0 Likes"
msp.itb_2 asked

How can I publish an offer ?

Hello guys,

I have created a couple of policies to publish my offer.

I have no links to paypal yet but create a request to connect it.

Fulfilment policy:

{

"categoryTypes": [

{

"name": "ALL_EXCLUDING_MOTORS_VEHICLES"

}

],

"marketplaceId": "EBAY_US",

"name": "Domestic free shipping",

"handlingTime": {

"unit" : "DAY",

"value" : "1"

},

"shippingOptions": [

{

"costType": "FLAT_RATE",

"optionType": "DOMESTIC",

"shippingServices": [

{

"buyerResponsibleForShipping": "false",

"freeShipping": "true",

"shippingCarrierCode": "USPS",

"shippingServiceCode": "USPSPriorityFlatRateBox"

}

]

}

]

}


Payment policy:

{

"name": "Minimal Payment Policy",

"marketplaceId": "EBAY_US",

"categoryTypes": [

{

"name": "MOTORS_VEHICLES"

}

],

"paymentMethods": [

{

"paymentMethodType": "PERSONAL_CHECK"

}

]

}

Return policy:

{

"name": "minimal return policy, US marketplace",

"marketplaceId": "EBAY_US",

"refundMethod": "MONEY_BACK",

"returnsAccepted": true,

"returnShippingCostPayer": "SELLER",

"returnPeriod": {

"value": 30,

"unit": "DAY"

}

}


Publish offer response:

{

"errors": [

{

"errorId": 25008,

"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 Payment policy. To list this item, you need to accept PayPal or other approved electronic payments as a payment method."

},

{

"errorId": 25008,

"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 Payment policy. We can't list this item because its payment policy contains one or more invalid payment methods, select a payment policy that contains only valid payment methods.",

"parameters": [

{

"name": "0",

"value": "PersonalCheck"

}

]

}

]

}


What should I need also here ?

How to publish an offer ?

sandbox-problemebay apipolicy
· 1
10 |600

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

Convert an unpublished offer into a published offer, or live eBay listing. The unique identifier of the offer (offerId) is passed in at the end of the call URI.

Tell The Bell

0 Likes 0 ·

1 Answer

·
jitendra_developersupport avatar image
0 Likes"
jitendra_developersupport answered

Hi @msp.itb_2,


The basic flow of using the Inventory API to publish an single-variation offer involves the use of the following three calls:

  1. The createOrReplaceInventoryItem call to create the inventory item record;
  2. The createOffer call to add details of the listing, including price, eBay marketplace, eBay category, quantity, and listing polices (payment, fulfillment, and return policy);
  3. The publishOffer call to activate the offer on the eBay marketplace.


The basic flow of using the Inventory API to publish a multiple-variation offer involves the use of the following four calls:

  1. The createOrReplaceInventoryItem call to create the inventory item record for each inventory item that will be part of the inventory item group;
  2. The createOrReplaceInventoryItemGroup call to create the inventory item group and place its members in the group
  3. The createOffer call to set the listing details for product variation. Since each of the product variations in the inventory item group will be in the same listing, only the SKU, available quantity, and price should vary. Other details such as categoryId, listingDescription, listing policies (payment, return, and fulfillment), merchantLocationKey, and marketplaceId should be the same since these are listing-level settings;
  4. The publishOfferByInventoryItemGroup call to activate the offer on the eBay marketplace.


Both of the flows above assume that an inventory location has already been set up for the seller. If not, the seller would also have to use the createInventoryLocation call so they could reference an inventory location in the createOffer call.

Ref: https://developer.ebay.com/api-docs/sell/static/inventory/managing-inventory-and-offers.html


Best Regards,

eBay Developer Support

10 |600

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.