02-16-2023 07:44 AM
Hello,
I have a lot of trouble to publish my offers. And got the error message i need a fullfilment policy id.
i created a fullfilment policy and when i try to retrieve it with a GET request to:
https://api.sandbox.ebay.com/sell/account/v1/fulfillment_policy?marketplace_id=EBAY_GB
i get the following response:
{"errors":[{"errorId":20403,"domain":"API_ACCOUNT","category":"REQUEST","message":"Invalid .","longMessage":"The seller profile ID isn\'t valid","inputRefIds":["policy ID"],"parameters":[{"name":"text1","value":"The seller is not BP opted in."}]}]}
When i try to create a new policy with the following payload:
payload: {'categoryTypes': [{'name': 'ALL_EXCLUDING_MOTORS_VEHICLES'}], 'marketplaceId': 'EBAY_GB', 'name': 'henkie', 'localPickup': True}
i get this response:
b'{"errors":[{"errorId":20400,"domain":"API_ACCOUNT","category":"REQUEST","message":"Invalid request.","longMessage":"This policy already exists","inputRefIds":[null],"parameters":[{"name":"DuplicateProfileName","value":"Default policy"},{"name":"Shipping Profile Id","value":"6200533000"},{"name":"DuplicateProfileType","value":"SHIPPING"},{"name":"DuplicateProfileId","value":"6200533000"}]}]}
the DuplicateProfileName value is the name i used for the first fullfilment policy
when i try to delete policy with id 6200533000 i get the following response:
b'{"errors":[{"errorId":20403,"domain":"API_ACCOUNT","category":"REQUEST","message":"Invalid policy ID. The seller profile ID is not valid","parameters":[{"name":"fieldName","value":"policy ID"},{"name":"additionalInfo","value":"The seller profile ID is not valid"}]}]}'
Does anyone know what is happening here and what is a seller profile ID?
kind regards,
mick
02-23-2023 08:22 AM
Is it working now?
02-23-2023 09:39 AM
On the old forum I believe there was a link to something like bizpolicy.sandbox.ebay.something that allowed you to opt in.. Not sure if it is still there or working though.
Alternatively the optInToProgram, getOptedInPrograms operationIDs from Account v1 might help, but I have not tested them as I am already opted in. The programType needs to have SELLING_POLICY_MANAGEMENT in it.
{
"programType" : "ProgramTypeEnum : [OUT_OF_STOCK_CONTROL,PARTNER_MOTORS_DEALER,SELLING_POLICY_MANAGEMENT]"
}
I think developer support used to also do it manually as well.