我正在尝试使用以下 API 为商家创建一个应用程序。
https://developer.paypal.com/docs/api/identity/v1
无法创建传递了所需参数。我在/v1/identity/oauth2/userinfo的响应中得到了 payer_id id 。我从 Paypal 获得了特殊权限。
这是我的请求正文
curl -v -X POST https://api.paypal.com/v1/identity/applications \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ------------------------" \
-d '{
"application_type": "not cleared what need to add here",
"redirect_uris": [
"return url"
],
"client_name": "Avtar Singh",
"contacts": [
"-------"
],
"payer_id": "-------------",
"migrated_app": "not cleared what need to add here"
}'