FastPOD
  1. Webhook
FastPOD
  • Getting Started
  • Orders
    • List Orders
      GET
    • Get Order
      GET
    • Create Order
      POST
    • Cancel Order
      POST
    • Estimate Order Price
      POST
    • Estimate Item Price
      POST
    • Update Order
      PUT
    • Update Status
      PUT
  • Catalog
    • List Catalogs
      GET
  • Webhook
    • List Webhooks
      GET
    • Subscribe
      POST
    • Unsubcribe
      DELETE
  1. Webhook

Subscribe

POST
/v1/webhooks
Creates a webhook subscription.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Accept
string 
required
Example:
application/json
Body Params application/json
url
string 
required
event
string 
required
Example
{
    "url": "url",
    "event": "order_status"
}

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-v2.fastpod.net/v1/webhooks' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "url",
    "event": "order_status"
}'

Responses

🟢200Success
application/json
Body
status
boolean 
required
message
string 
required
Example
{
    "status": true,
    "message": "Updated webhook url successfully!"
}
Modified at 2023-12-12 02:33:49
Previous
List Webhooks
Next
Unsubcribe
Built with