I am trying to use the PayPal REST API to get a list of payments. Typically, these payments will be made through eBay.
When I try to use the sandbox, I can get the token, and then get the list of payments as expected. But when I switch to life, the list is always empty.
For example, using curl:
curl https:
-H "Accept: application/json" \
-H "Accept-Language: en_US" \
-u "ASnXAXXXXXXXXXXXXXXXXXXXXXPP7sBaB:EGWXXXXXXXXXXXXXXXXXXXXXXXs-NU" \
-d "grant_type=client_credentials"
<response>
{"scope":"https://api.paypal.com/v1/payments/.* https://api.paypal.com/v1/vault /credit-card https://api.paypal.com/v1/vault/credit-card/.* openid","access_token":"dzXXXXXXXXXXXXXXXXXXHJs-XXXXXA","token_type":"Bearer","app_id":"APP-1JCXXXXXXXXXXX08","expires_in":28800}
Then I take the token from the response body and call the payment list resource:
curl -v -X GET https:
-H "Content-Type:application/json" \
-H "Authorization: Bearer dzXXXXXXXXXXXXXXXXXXHJs-XXXXXA"
<response>
{"count":0}
, - ? . , , , , REST API, API REST? ( API ), ? , PayPal Google .
.