forked from LiveCarta/PayPal-PHP-SDK
- Updated Unit Tests for PPModels used by Invoicing - Updated Functional Tests - Updated Samples for quick changes.
35 lines
1.5 KiB
JSON
35 lines
1.5 KiB
JSON
{
|
|
"operationId": "invoice.cancel",
|
|
"title": "Cancel an invoice",
|
|
"description": "Cancel an invoice",
|
|
"runnable": true,
|
|
"user": {
|
|
"scopes": []
|
|
},
|
|
"credentials": {
|
|
"oauth": {
|
|
"clientId": "",
|
|
"clientSecret": "",
|
|
"path": ""
|
|
},
|
|
"login": {},
|
|
"openIdConnect": {}
|
|
},
|
|
"request": {
|
|
"path": "v1/invoicing/invoices/INV2-WW57-VFCD-X5H4-XTUP/cancel",
|
|
"method": "POST",
|
|
"headers": {
|
|
"X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}"
|
|
},
|
|
"body": {
|
|
"subject": "Past due",
|
|
"note": "Canceling invoice",
|
|
"send_to_merchant": true,
|
|
"send_to_payer": true
|
|
}
|
|
},
|
|
"response": {
|
|
"headers": {},
|
|
"status": ""
|
|
}
|
|
} |