FASTRAC-DOC-API V2 (B2B API STAGING)
  1. Webhook API
FASTRAC-DOC-API V2 (B2B API STAGING)
  • Overview
  • Changelog V2
  • Region API
    • Province
      GET
    • City
      GET
    • District
      GET
    • Sub-District
      GET
    • Post Code
      GET
    • Search Region
      POST
  • Courier API
    • All Courier
      GET
    • Courier Service
      GET
  • Check Tariff API
    • Check Tariff (Express Delivery)
      POST
    • Check Tariff (Instant Delivery)
      POST
    • Calculate Multi Items
      POST
  • Order API
    • Order Express
      POST
    • Order Instant
      POST
    • Cancel Order
      POST
    • Tracking Order
      GET
    • Item Categories
      GET
  • Webhook API
    • Example Webhook payload
    • Set Webhook
      POST
    • Get Webhook
      GET
  • User API
    • Balance History
      POST
  • API-Tariff
  • API-Order
  1. Webhook API

Set Webhook

POST
/webhook/register
This API is used to register or update a webhook URL that will receive event notifications from the system. Optionally, you can also provide an accessKey and secretKey for securing webhook requests.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/webhook/register' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
    "webhook_url": "https://webhook.site/testing-webhook",
    "webhook_access_key": null,
    "webhook_secret_key": null
}'
Response Response Example
{}

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Modified at 2025-08-22 08:27:31
Previous
Example Webhook payload
Next
Get Webhook
Built with