cancel
Showing results for 
Search instead for 
Did you mean: 

refund sale 403

Options
tekinfo
Contributor
Posted on

I can read sale,but where I refund sale,the API return PERMISSION_DENIED.

====

https://api.sandbox.paypal.com/v1/payments/sale/5LG41347KJ201330R/refund

{
    "name""PERMISSION_DENIED",
    "message""Permission denied.",
    "debug_id""1079024faebad"
}
===
{
    "id""5LG41347KJ201330R",
    "state""completed",
    "amount": {
        "total""2.00",
        "currency""USD",
        "details": {
            "subtotal""2.00"
        }
    },
    "payment_mode""INSTANT_TRANSFER",
    "protection_eligibility""ELIGIBLE",
    "protection_eligibility_type""ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
    "transaction_fee": {
        "value""0.37",
        "currency""USD"
    },
    "invoice_number""",
    "create_time""2021-10-18T06:32:26Z",
    "update_time""2021-10-18T06:32:26Z",
    "links": [
        {
            "rel""self",
            "method""GET"
        },
        {
            "rel""refund",
            "method""POST"
        }
    ]
}

Haven't Found your Answer?

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