| HTTP status | Error code | Description |
|---|---|---|
| 400 | BAD_REQUEST | Failed to parse the request body |
| 400 | VALIDATION_ERROR | Request validation failed |
| 401 | UNAUTHORIZED | Missing or invalid authorization token |
| 403 | FORBIDDEN | You do not have permission to access this resource |
| 500 | INTERNAL_ERROR | Unexpected server error |
curl --location 'https://api.paypaga.com/v2/notification-subscriptions' \
--header 'Content-Type: application/json' \
--data '{
"subscription_id": "20251022-0949-42c7-947d-67f32a1ecf45",
"channel": "callback",
"notification_types": [
"transaction_approved",
"transaction_rejected"
],
"targets": [
"https://example.com/callback-endpoint",
"https://another-endpoint.com/callback"
],
"created_on": "2024-08-06T20:15:30Z"
}'{
"subscription_id": "20251022-0949-42c7-947d-67f32a1ecf45",
"channel": "callback",
"notification_types": [
"transaction_approved",
"transaction_rejected"
],
"targets": [
"https://example.com/callback-endpoint",
"https://another-endpoint.com/callback"
],
"created_on": "2024-08-06T20:15:30Z"
}