SwiftPOD
  1. Webhook
SwiftPOD
  • Api
    • Webhook
      • List Webhooks
        GET
      • Subscribe to Webhook
        POST
      • Unsubcribe to webhook
        DELETE
      • Webhook Notification - Order Status Change Example
        POST
      • Webhook Notification - Tracking Number Example
        POST
      • Webhook Notification - In Transit and Delivered Status Example
        POST
      • Webhook Notification - Stock Status Change Example
        POST
    • Orders
      GET
    • Create Order
      POST
    • Create Multiple Orders
      POST
    • Get Order
      GET
    • Update Order
      PUT
    • Update Order Status
      PUT
    • Cancel Order
      POST
    • Catalogs
      GET
  • Changelog
  1. Webhook

Subscribe to Webhook

POST
/v1/webhooks/subscribe

Request

Header Params
Accept
string 
required
Example:
application/json
Body Params application/json
Value
url
string 
required
The address will be requested when you successfully register the events
event
enum<string> 
required
Events can be one of the following values
Allowed values:
order_notifystock_notifyshipment_notify
name
string 
required
Friendly name makes it easy to manage
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!"
}
Previous
List Webhooks
Next
Unsubcribe to webhook
Built with