refund sale 403

tekinfo
Contributor
Contributor

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"
        }
    ]
}
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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