Skip to main content
POST
/
webhooks
/
order-complete
Order Complete Webhook
curl --request POST \
  --url https://cdn.tailoredd.com/apiV2/webhooks/order-complete \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderId": "order-sample-001",
  "customerEmail": "customer@example.com",
  "customerName": "John Doe",
  "customerID": "CUST-123",
  "deliveryDate": "2025-11-27T10:00:00.000Z",
  "products": [
    {
      "productId": "product-123",
      "productName": "Sample Product",
      "quantity": 1,
      "price": 99.99
    }
  ],
  "reviewPageUrl": "https://merchant.com/review"
}
'
{
  "success": true,
  "data": {}
}
POST {BASE_URL}/webhooks/order-complete

Headers

HeaderRequired
X-Merchant-IdYes
X-Webhook-SignatureYes — HMAC-SHA256 of raw JSON body using your webhook secret.

Body parameters

orderId
string
required
Order reference.
customerEmail
string
required
Customer email.
customerName
string
required
Customer name.
customerID
string
required
Your internal customer ID.
deliveryDate
string
required
ISO 8601 UTC delivery timestamp.
products
array
required
Array of { productId, productName, quantity, price }.
reviewPageUrl
string
required
URL where customer lands to leave their review.

Example

{
  "orderId": "ORDER-10045",
  "customerEmail": "customer@example.com",
  "customerName": "John Doe",
  "customerID": "CUST-123",
  "deliveryDate": "2026-01-20T10:00:00Z",
  "products": [
    { "productId": "SKU-001", "productName": "Classic Tee", "quantity": 1, "price": 59.95 }
  ],
  "reviewPageUrl": "https://yourstore.com/review"
}

Signing the request

const crypto = require('crypto');
const body   = JSON.stringify(payload);
const sig    = crypto.createHmac('sha256', process.env.RF_WEBHOOK_SECRET)
                     .update(body).digest('hex');
// Header: X-Webhook-Signature: sig

Headers

X-Merchant-Id
string
X-Webhook-Signature
string

HMAC-SHA256 signature of request body

Body

application/json

The body is of type object.

Response

Successful response

success
boolean
required
Example:

true

data
object