i got error message (403 Forbidden)

anonymous28
Contributor
Contributor

Hi,  i am working at programmer and i have problem when i called api url(api.sandbox.paypal.com/v2/customer/partner-referrals).

 

i thought it would work but i got error message (User doesn't have this API in their scope)

 

even though i checked all options in my sandbox app settings(), it doesnt work. so i tried to read all contents in api documentation for long times but i

 

finally can't solve it 

 

anyway, i will show you request and response.

 

request

# curl -v -X POST https://api.sandbox.paypal.com/v2/customer/partner-referrals \
> -H "Content-Type: application/json" \
> -H "Authorization: Bearer <Access Token>" \
> -d '{
> "operations": [
> {
> "operation": "BANK_ADDITION"
> }
> ],
> "products": [
> "EXPRESS_CHECKOUT"
> ],
> "legal_consents": [
> {
> "type": "SHARE_DATA_CONSENT",
> "granted": true
> }
> ]
> }'

 

response

> POST /v2/customer/partner-referrals HTTP/1.1
> User-Agent: curl/7.29.0
> Host: api.sandbox.paypal.com
> Accept: */*
> Content-Type: application/json
> Authorization: Bearer <Access Token>
> Content-Length: 235
>
* upload completely sent off: 235 out of 235 bytes
< HTTP/1.1 403 Forbidden
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate
< Content-Length: 248
< Content-Type: application/json;charset=utf-8
< Date: Tue, 25 Feb 2020 02:40:51 GMT
< Etag: W/"f8-ko3D9WsEHEg66numgvNTGD862k8"
< Paypal-Debug-Id: 3713aa8c9f842
<
* Connection #0 to host api.sandbox.paypal.com left intact
{"name":"NOT_AUTHORIZED","message":"Authorization failed due to insufficient permissions.","debug_id":"3713aa8c9f842","information_link":"","details":[{"issue":"MISSING_SCOPES","description":"User doesn't have this API in their scope"}],"links":[]}

 

Login to Me Too
1 REPLY 1

burgalon
Member
Member

did you find a solution?

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.