question

suravsh-0 avatar image
0 Likes"
suravsh-0 asked

How to use optInToProgram API properly?

I'm getting a 500 internal server error when attempting to use the API optInToProgram.

Request

{
"programType": "SELLING_POLICY_MANAGEMENT"
}

Response

{
"errors": [
{
"errorId": 20500,
"domain": "API_ACCOUNT",
"category": "APPLICATION",
"message": "System error."
}
]
}

I used this API because I get below response when Publishing an offer

{
"listingId": "110536815587",
"warnings": [
{
"errorId": 25019,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "Cannot revise listing. You are not opted into Business Policies. To continue using this feature please opt in using the following link: https://www.bizpolicy.sandbox.ebay.com/businesspolicy/policyoptin",
"parameters": [
{
"name": "0",
"value": "https://www.bizpolicy.sandbox.ebay.com/businesspolicy/policyoptin"
}
]
},
{
"errorId": 25006,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "The eBay listing associated with the inventory item, or the unpublished offer has an invalid listing option. You're not registered to offer pickup in store."
},
{
"errorId": 25401,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "Invalid listing option(s) removed. Condition is not applicable for this category. The condition value submitted has been dropped."
}
]
}

Any suggestions on what needs to be done would be helpful. Thanks

publish offer errorpublish offeropt in business
10 |600 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @suravsh-0,

You can opt in business policy via account API:
Ref.-https://developer.ebay.com/api-docs/sell/account/resources/program/methods/optInToProgram

Best regards,
eBay Developer Support

· 1
10 |600 characters needed characters left characters exceeded

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

HI @sagar_developersupport, I am also facing same issue and the link you shared is same which I am using to opt in to program and its still giving 500 error.
0 Likes 0 ·

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.