Error NOT_AUTHORIZED - Authorization failed due to insufficient permissions

ciclic
Novo membro da Comunidade

I have an integration via endpoint https://api.sandbox.paypal.com/v1/credit/calculated-financing-options to calculate the number of installments according to the value, but I started receiving the NOT_AUTHORIZED message, how can I do this? case?

 

Request

 

curl --location 'https://api.sandbox.paypal.com/v1/credit/calculated-financing-options' \
--header 'Authorization: Basic QVljSXV4N0FnZkp4QUJnalhQTFNYSENkV0s3RkRmcEhITS1rZ2pMUkZta0xQZ1FDT1ZpLVRwMENZUFV3OVhVZl9CVnNXMXpETU1EbFJYeU86RUpITmdPQzZBSVJvYzdSVy1xWk40UWctdkczeS1lSmM3LVR5NDN0Q3poeXlKS0dHYlNtQ2V3NkVTSzAweG1Gb3lwRmxQRXdNcTMweWVQQ3Q=' \
--header 'Content-Type: application/json' \
--data '{
    "financing_country_code": "BR",
    "transaction_amount": {
        "value": 85.3,
        "currency_code": "BRL"
    },
    "funding_instrument": {
        "type": "BILLING_AGREEMENT",
        "billing_agreement": {
            "billing_agreement_id": "B-8MH82031K2467481C"
        }
    }
}'

 

 

 

Response

 

{
    "name": "NOT_AUTHORIZED",
    "debug_id": "8fe45cd7cf1d1",
    "message": "Authorization failed due to insufficient permissions.",
    "details": [
        {
            "issue": "NOT_AUTHORIZED",
            "description": "Authorization failed due to insufficient permissions."
        }
    ]
}

 

 

Como fazer nesse caso?

Login to Me Too
0 RESPOSTAS 0

Haven't Found your Answer?

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