This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testRefundSale.json
Jay Patel 43d0e833f6 Reverted: Updates to API Urls
- api-s.sandbox.paypal.com is reverted to api.sandbox.paypal.com
- api-s.paypal.com was reverted to api.paypal.com
2015-02-19 16:10:56 -06:00

63 lines
1.7 KiB
JSON

{
"description": "Creates a refunded sale resource.",
"title": "Refund a Sale",
"runnable": true,
"operationId": "sale.refund",
"user": {
"scopes": []
},
"credentials": {
"oauth": {
"clientId": "",
"clientSecret": "",
"path": ""
},
"login": {},
"openIdConnect": {}
},
"request": {
"headers": {},
"body": {
"amount": {
"total": "2.34",
"currency": "USD"
}
},
"path": "/v1/sales/4RR959492F879224U/refund",
"method": "POST"
},
"response": {
"headers": {},
"body": {
"id": "4CF18861HF410323U",
"create_time": "2013-01-31T04:13:34Z",
"update_time": "2013-01-31T04:13:36Z",
"state": "completed",
"amount": {
"total": "2.34",
"currency": "USD"
},
"sale_id": "4RR959492F879224U",
"parent_payment": "PAY-17S8410768582940NKEE66EQ",
"links": [
{
"href": "https://api.paypal.com/v1/payments/refund/4CF18861HF410323U",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/payment/PAY-46E69296BH2194803KEE662Y",
"rel": "parent_payment",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/sale/2MU78835H4515710F",
"rel": "sale",
"method": "GET"
}
]
},
"status": "201 Created"
}
}