question

huz8508 avatar image
0 Likes"
huz8508 asked ·

E Bay API call Error “Insufficient permissions to fulfill the request”

I am trying to create a payment policy using eBay Business Policy API. Here is exactly I am doing in steps
1- I have created a developer account.
2-Using developer account, I created a sandbox account.

3- I created a UserToken for my sandbox user.

1.PNG

4- Using this token I sent this request using Postman using sample1 input from the official documentation. Here is what my Postman response looks like.2.PNG


Please Point any mistake I am doing here.

business-policies-api
1.png (30.5 KiB)
2.png (44.7 KiB)
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
sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered ·

Hi @huz8508,

From 1.PNG it seems you are using auth n auth user token. Please use the OAuth user token and retry the call.


This request requires an access token created with the authorization code grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):
https://api.ebay.com/oauth/api_scope/sell.account


Please refer oAuth scope in the below doc:
https://developer.ebay.com/api-docs/sell/account/resources/payment_policy/methods/createPaymentPolicy

Best Regards,
eBay Developer Support

· Share
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.

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.