The POST /pad_agreements/{id}/revoke call allows your platform to revoke a single pad agreement.
Api-Version required | string Example: 3.0 |
Content-Type required | stringapplication/json Example: application/json |
Unique-Key required | string |
WePay-Risk-Token | string This header is required when tokenizing Payment Methods, Legal Entities, and Payout Methods when the tokenization JS library is not being used. |
Client-IP | string This header is required when tokenizing Payment Methods, Legal Entities, and Payout Methods when the tokenization JS library is not being used. |
good response
INVALID_PARAMS
NOT_AUTHORIZED
UNEXPECTED_ERROR
{- "payment_method_id": "00000000-0000-0000-0000-000000000111",
- "account_id": "00000000-0000-0000-0000-000000000222",
- "category": "personal",
- "type": "sporadic",
- "signature": {
- "signatory_name": "abc",
- "signature_time": 1657052022
}, - "revoked": true,
- "id": "00000000-0000-0000-0000-000000000333",
- "resource": "pad_agreements",
- "path": "/pad_agreements/00000000-0000-0000-0000-000000000333",
- "create_time": 1657052022,
- "owner": {
- "id": "00000000-0000-0000-0000-000000000111",
- "resource": "payment_methods",
- "path": "/payment_methods/00000000-0000-0000-0000-000000000111"
}, - "api_version": "3.2"
}