2017-11-07 1 views
2

私はPaypal Marketplaceで働いています。私は自分のアカウント(パートナーアカウント)のマーチャント(売り手アカウント)を作成したいと思います。しかし、POST https://api.sandbox.paypal.com/v1/customer/partner-referrals APIを呼び出すと、AUTHORIZATION_ERRORがスローされます。このリソースにアクセスすることはできません。Paypal Authorization throws:このリソースにアクセスできない

{ 
    "customer_data": { 
    "customer_type": "MERCHANT", 
    "person_details": { 
    "email_address": "[email protected]", 
    "name": { 
    "prefix": "Mrs.", 
    "given_name":"Dipak", 
    "surname": "Bhalodiya", 
    "middle_name": "Prakash" 
    }, 
    "phone_contacts": [ 
    { 
     "phone_number_details": { 
     "country_code": "91", 
     "national_number": "8585868489" 
     }, 
     "phone_type": "HOME" 
    } 
    ], 
    "home_address": { 
    "line1": "11, outer ring road", 
    "state": "Karnataka", 
    "city": "Bangalore", 
    "country_code": "US", 
    "postal_code": "560103" 
    }, 
    "date_of_birth": { 
    "event_type": "BIRTH", 
    "event_date": "1987-12-29T23:59:59.999Z" 
    }, 
    "nationality_country_code": "US", 
    "identity_documents": [ 
    { 
     "type": "SOCIAL_SECURITY_NUMBER", 
     "value": "ABCDEF34646", 
     "partial_value": false, 
     "issuer_country_code": "US" 
    } 
    ] 
    }, 
    "business_details": { 
    "phone_contacts": [ 
    { 
     "phone_number_details": { 
     "country_code": "91", 
     "national_number": "9740216087" 
     }, 
     "phone_type": "FAX" 
    } 
    ], 
    "business_address": { 
    "line1": "11, outer ring road", 
    "state": "Karnataka", 
    "city": "Bangalore", 
    "country_code": "US", 
    "postal_code": "560103" 
    }, 
    "business_type": "PROPRIETORSHIP", 
    "category": "1004", 
    "sub_category": "2025", 
    "names": [ 
    { 
     "type": "LEGAL", 
     "name": "DIPAK STORE" 
    } 
    ], 
    "business_description": "Arts and handicrafts", 
    "event_dates": [ 
    { 
     "event_type": "ESTABLISHED", 
     "event_date": "2009-01-31T13:59:45Z" 
    } 
    ], 
    "website_urls": [ 
    "https://www.skyproductivity.com" 
    ], 
    "annual_sales_volume_range": { 
    "minimum_amount": { 
     "value": "2000", 
     "currency": "USD" 
    }, 
    "maximum_amount": { 
     "value": "3000", 
     "currency": "USD" 
    } 
    }, 
    "average_monthly_volume_range": { 
     "minimum_amount": { 
     "value": "2000", 
     "currency": "USD" 
    }, 
    "maximum_amount": { 
     "value": "3000", 
     "currency": "USD" 
    } 
    }, 
    "identity_documents": [ 
    { 
     "type": "TAX_IDENTIFICATION_NUMBER", 
     "value": "ABCDEF34646", 
     "partial_value": false, 
     "issuer_country_code": "US" 
    } 
    ], 
    "email_contacts": [ 
    { 
     "email_address": "[email protected]", 
     "role": "CUSTOMER_SERVICE" 
    } 
    ] 
    }, 
    "financial_instrument_data": { 
    "bank_details": [ 
     { 
      "nick_name": "Bank of America", 
      "account_number": "130385868974", 
      "account_type": "CHECKING", 
      "currency_code": "USD", 
      "identifiers": [ 
       { 
      "type": "ROUTING_NUMBER_1", 
      "value": "325272063" 
      } 
      ] 
     } 
    ] 
    }, 
    "preferred_language_code": "en_US", 
    "primary_currency_code": "USD", 
    "referral_user_payer_id": { 
    "type": "PAYER_ID", 
    "value": "2281707" 
    }, 
    "partner_specific_identifiers": [ 
    { 
    "type": "TRACKING_ID", 
    "value": "130370723501" 
    } 
    ] 
    }, 
    "requested_capabilities": [ 
    { 
    "capability": "API_INTEGRATION", 
    "api_integration_preference": { 
    "partner_id": "2281707", //My own Partner Id 
    "rest_api_integration": { 
     "integration_method": "PAYPAL", 
     "integration_type": "THIRD_PARTY" 
    }, 
    "rest_third_party_details": { 
     "partner_client_id": "My Test Account Client ID", //My Client ID of Test Account 
     "feature_list": [ 
     "PAYMENT", 
     "REFUND" 
     ] 
    } 
    } 
    } 
    ], 
    "web_experience_preference": { 
    "partner_logo_url": "https://www.example.com/logo/", 
    "return_url": "http://localhost/skyinvoice/htdocs/", 
    "action_renewal_url": "http://localhost/skyinvoice/htdocs/" 
    }, 
    "collected_consents": [ 
    { 
    "type": "SHARE_DATA_CONSENT", 
    "granted": true 
    } 
    ], 
    "products": [ 
    "EXPRESS_CHECKOUT" 
    ] 
} 

答えて

2

PayPalのマーケットプレースは限定リリースの製品であり、それが唯一の承認商人のために提供されています:私はhttps://api.sandbox.paypal.com/v1/oauth2/token

私はポストマンを使用して渡されたデータの下には、それを生成することにより、ヘッダー内のトークンを渡しました。彼らはあなたのサンドボックス環境でAPIを使用するためにあなたのクライアントIDの許可を与えました。だから、あなたが上記のようなエラーに直面した場合は、親切なメールをpaypalに送るよりも、私はお勧めしたいと思います。

関連する問題