username:password
Authorization: Basic *****************
{
"url": "{{webhook_url}}",
"event_types": [
{
"name": "*"
}
]
}
curl --location --request POST 'https://api-m.sandbox.paypal.com/v1/notifications/webhooks' \
--header 'PayPal-Request-Id: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"url": "{{webhook_url}}",
"event_types": [
{
"name": "*"
}
]
}'
{
"id": "1AV998667T7275054",
"url": "https://enllwl46eqmr.x.pipedream.net",
"event_types": [
{
"name": "*",
"description": "ALL"
}
],
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/notifications/webhooks/1AV998667T7275054",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/notifications/webhooks/1AV998667T7275054",
"rel": "update",
"method": "PATCH"
},
{
"href": "https://api.sandbox.paypal.com/v1/notifications/webhooks/1AV998667T7275054",
"rel": "delete",
"method": "DELETE"
}
]
}