cURL
curl --request POST \ --url https://api.papp.sa/api/v1/webhooks \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "name": "Order Notification", "url": "https://merchant.example.com/webhooks/orders" } '
{ "status": true, "message": "", "appended_data": {}, "data": { "uuid": "550e8400-e29b-41d4-a716-446655440000", "merchant_id": 123, "name": "Order Notification", "url": "https://merchant.example.com/webhooks/orders", "secret": "abc123def456", "created_at": "2024-12-23T10:00:00.000Z", "updated_at": "2024-12-23T15:30:00.000Z" } }
Registers a new webhook for the authenticated merchant.
255
"Order Notification"
500
"https://merchant.example.com/webhooks/orders"
Webhook created successfully.
true
""
{}
Show child attributes