PayPal REST Payments Lists API Does Not Return Entries

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://api.paypal.com/v1/oauth2/token \
 -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://api.paypal.com/v1/payments/payment \
 -H "Content-Type:application/json" \
 -H "Authorization: Bearer dzXXXXXXXXXXXXXXXXXXHJs-XXXXXA"

<response>
{"count":0}

, - ? . , , , , REST API, API REST? ( API ), ? , PayPal Google .

.

+3
1

. , , API- PayPal REST , REST API. . : fooobar.com/questions/2110086/...

API , API REST.

+5

All Articles