notification_types accepts exactly three values: transaction_approved, transaction_failed,transaction_expired.| 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 '{
"channel_type": "callback",
"notification_types": [
"transaction_approved",
"transaction_failed"
],
"subscription_id": "20251022-0949-42c7-947d-67f32a1ecf45",
"targets": [
"https://example.com/callback-endpoint",
"https://another-endpoint.com/callback"
]
}'{
"channel": "callback",
"created_on": "2024-08-06T20:15:30Z",
"notification_types": [
"transaction_approved",
"transaction_failed"
],
"product": "pay_in",
"subscription_id": "20251022-0949-42c7-947d-67f32a1ecf45",
"targets": [
"https://example.com/callback-endpoint",
"https://another-endpoint.com/callback"
]
}