Subscribe to Webhook
POST
/v1/webhooks/subscribe
Request
Header Params
Accept
string
required
Example:
application/json
Body Params application/json
Value
url
string
required
event
enum<string>
required
Allowed values:
order_notifystock_notifyshipment_notify
name
string
required
Example
{
"url": "https://eoppa0n672s2noz.m.pipedream.net",
"event": "order_notify",
"name": "My Webhook"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.swiftpod.com/v1/webhooks/subscribe' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https://eoppa0n672s2noz.m.pipedream.net",
"event": "order_notify",
"name": "My Webhook"
}'
Responses
🟢200Webhook subcribe
application/json
Body
status
boolean
required
message
string
required
Example
{
"status": true,
"message": "Updated webhook url successfully!"
}