Webhook events
pricelist.created
Delivered after a customer price list is created in CurbWaste. Respond with 2xx quickly. Failed deliveries are retried (up to 8 attempts, exponential backoff from 60 seconds).
pricelist.created
curl --request POST \
--url https://api.example.com/webhooks/pricelist.created \
--header 'Content-Type: application/json' \
--header 'X-CurbWaste-Event-Id: <x-curbwaste-event-id>' \
--header 'X-CurbWaste-Event-Type: <x-curbwaste-event-type>' \
--header 'X-CurbWaste-Signature: <x-curbwaste-signature>' \
--data '
{
"id": "evt_cccccccc-dddd-eeee-ffff-000000000000",
"type": "pricelist.created",
"createdAt": "2026-10-01T18:00:00.000Z",
"data": {
"id": "22222222-3333-4444-5555-666666666666",
"name": "Acme Corp rates",
"scope": "CUSTOMER",
"status": "ACTIVE",
"isDefault": false,
"isEcommerce": false,
"isZoneBased": false,
"services": [
{
"id": "b7e4766e-9f13-46ee-9503-201aaa7817da",
"identifier": "DUMPSTER"
}
],
"skuCount": 1,
"chargeCount": 1,
"customerCount": 1,
"createdAt": "2026-10-01T18:00:00.000Z",
"skus": [
{
"id": "33333333-4444-5555-6666-777777777777",
"name": "20 yard roll-off",
"code": "RO-20",
"description": null,
"price": 450,
"pricingType": "FLAT",
"productName": "20 Yard",
"loadComposition": "Mixed",
"materialType": "C&D",
"weight": {
"unit": "Ton",
"limitType": "Included",
"limit": 2,
"min": null,
"rate": 85
},
"rental": {
"unit": "Day",
"limit": 7,
"price": 15
},
"tax": {
"mode": "LOCATION",
"taxGroupId": null,
"taxGroupName": null
},
"tonnageTax": {
"mode": "INHERIT",
"taxGroupId": null,
"taxGroupName": null
}
}
],
"charges": [
{
"id": "44444444-5555-6666-7777-888888888888",
"name": "Fuel surcharge",
"category": "Surcharge",
"pricingType": "PERCENT",
"rate": 5,
"tax": {
"mode": "NONE",
"taxGroupId": null,
"taxGroupName": null
}
}
]
}
}
'import requests
url = "https://api.example.com/webhooks/pricelist.created"
payload = {
"id": "evt_cccccccc-dddd-eeee-ffff-000000000000",
"type": "pricelist.created",
"createdAt": "2026-10-01T18:00:00.000Z",
"data": {
"id": "22222222-3333-4444-5555-666666666666",
"name": "Acme Corp rates",
"scope": "CUSTOMER",
"status": "ACTIVE",
"isDefault": False,
"isEcommerce": False,
"isZoneBased": False,
"services": [
{
"id": "b7e4766e-9f13-46ee-9503-201aaa7817da",
"identifier": "DUMPSTER"
}
],
"skuCount": 1,
"chargeCount": 1,
"customerCount": 1,
"createdAt": "2026-10-01T18:00:00.000Z",
"skus": [
{
"id": "33333333-4444-5555-6666-777777777777",
"name": "20 yard roll-off",
"code": "RO-20",
"description": None,
"price": 450,
"pricingType": "FLAT",
"productName": "20 Yard",
"loadComposition": "Mixed",
"materialType": "C&D",
"weight": {
"unit": "Ton",
"limitType": "Included",
"limit": 2,
"min": None,
"rate": 85
},
"rental": {
"unit": "Day",
"limit": 7,
"price": 15
},
"tax": {
"mode": "LOCATION",
"taxGroupId": None,
"taxGroupName": None
},
"tonnageTax": {
"mode": "INHERIT",
"taxGroupId": None,
"taxGroupName": None
}
}
],
"charges": [
{
"id": "44444444-5555-6666-7777-888888888888",
"name": "Fuel surcharge",
"category": "Surcharge",
"pricingType": "PERCENT",
"rate": 5,
"tax": {
"mode": "NONE",
"taxGroupId": None,
"taxGroupName": None
}
}
]
}
}
headers = {
"X-CurbWaste-Signature": "<x-curbwaste-signature>",
"X-CurbWaste-Event-Id": "<x-curbwaste-event-id>",
"X-CurbWaste-Event-Type": "<x-curbwaste-event-type>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-CurbWaste-Signature': '<x-curbwaste-signature>',
'X-CurbWaste-Event-Id': '<x-curbwaste-event-id>',
'X-CurbWaste-Event-Type': '<x-curbwaste-event-type>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: 'evt_cccccccc-dddd-eeee-ffff-000000000000',
type: 'pricelist.created',
createdAt: '2026-10-01T18:00:00.000Z',
data: {
id: '22222222-3333-4444-5555-666666666666',
name: 'Acme Corp rates',
scope: 'CUSTOMER',
status: 'ACTIVE',
isDefault: false,
isEcommerce: false,
isZoneBased: false,
services: [{id: 'b7e4766e-9f13-46ee-9503-201aaa7817da', identifier: 'DUMPSTER'}],
skuCount: 1,
chargeCount: 1,
customerCount: 1,
createdAt: '2026-10-01T18:00:00.000Z',
skus: [
{
id: '33333333-4444-5555-6666-777777777777',
name: '20 yard roll-off',
code: 'RO-20',
description: null,
price: 450,
pricingType: 'FLAT',
productName: '20 Yard',
loadComposition: 'Mixed',
materialType: 'C&D',
weight: {unit: 'Ton', limitType: 'Included', limit: 2, min: null, rate: 85},
rental: {unit: 'Day', limit: 7, price: 15},
tax: {mode: 'LOCATION', taxGroupId: null, taxGroupName: null},
tonnageTax: {mode: 'INHERIT', taxGroupId: null, taxGroupName: null}
}
],
charges: [
{
id: '44444444-5555-6666-7777-888888888888',
name: 'Fuel surcharge',
category: 'Surcharge',
pricingType: 'PERCENT',
rate: 5,
tax: {mode: 'NONE', taxGroupId: null, taxGroupName: null}
}
]
}
})
};
fetch('https://api.example.com/webhooks/pricelist.created', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/webhooks/pricelist.created",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'evt_cccccccc-dddd-eeee-ffff-000000000000',
'type' => 'pricelist.created',
'createdAt' => '2026-10-01T18:00:00.000Z',
'data' => [
'id' => '22222222-3333-4444-5555-666666666666',
'name' => 'Acme Corp rates',
'scope' => 'CUSTOMER',
'status' => 'ACTIVE',
'isDefault' => false,
'isEcommerce' => false,
'isZoneBased' => false,
'services' => [
[
'id' => 'b7e4766e-9f13-46ee-9503-201aaa7817da',
'identifier' => 'DUMPSTER'
]
],
'skuCount' => 1,
'chargeCount' => 1,
'customerCount' => 1,
'createdAt' => '2026-10-01T18:00:00.000Z',
'skus' => [
[
'id' => '33333333-4444-5555-6666-777777777777',
'name' => '20 yard roll-off',
'code' => 'RO-20',
'description' => null,
'price' => 450,
'pricingType' => 'FLAT',
'productName' => '20 Yard',
'loadComposition' => 'Mixed',
'materialType' => 'C&D',
'weight' => [
'unit' => 'Ton',
'limitType' => 'Included',
'limit' => 2,
'min' => null,
'rate' => 85
],
'rental' => [
'unit' => 'Day',
'limit' => 7,
'price' => 15
],
'tax' => [
'mode' => 'LOCATION',
'taxGroupId' => null,
'taxGroupName' => null
],
'tonnageTax' => [
'mode' => 'INHERIT',
'taxGroupId' => null,
'taxGroupName' => null
]
]
],
'charges' => [
[
'id' => '44444444-5555-6666-7777-888888888888',
'name' => 'Fuel surcharge',
'category' => 'Surcharge',
'pricingType' => 'PERCENT',
'rate' => 5,
'tax' => [
'mode' => 'NONE',
'taxGroupId' => null,
'taxGroupName' => null
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-CurbWaste-Event-Id: <x-curbwaste-event-id>",
"X-CurbWaste-Event-Type: <x-curbwaste-event-type>",
"X-CurbWaste-Signature: <x-curbwaste-signature>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/webhooks/pricelist.created"
payload := strings.NewReader("{\n \"id\": \"evt_cccccccc-dddd-eeee-ffff-000000000000\",\n \"type\": \"pricelist.created\",\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"data\": {\n \"id\": \"22222222-3333-4444-5555-666666666666\",\n \"name\": \"Acme Corp rates\",\n \"scope\": \"CUSTOMER\",\n \"status\": \"ACTIVE\",\n \"isDefault\": false,\n \"isEcommerce\": false,\n \"isZoneBased\": false,\n \"services\": [\n {\n \"id\": \"b7e4766e-9f13-46ee-9503-201aaa7817da\",\n \"identifier\": \"DUMPSTER\"\n }\n ],\n \"skuCount\": 1,\n \"chargeCount\": 1,\n \"customerCount\": 1,\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"skus\": [\n {\n \"id\": \"33333333-4444-5555-6666-777777777777\",\n \"name\": \"20 yard roll-off\",\n \"code\": \"RO-20\",\n \"description\": null,\n \"price\": 450,\n \"pricingType\": \"FLAT\",\n \"productName\": \"20 Yard\",\n \"loadComposition\": \"Mixed\",\n \"materialType\": \"C&D\",\n \"weight\": {\n \"unit\": \"Ton\",\n \"limitType\": \"Included\",\n \"limit\": 2,\n \"min\": null,\n \"rate\": 85\n },\n \"rental\": {\n \"unit\": \"Day\",\n \"limit\": 7,\n \"price\": 15\n },\n \"tax\": {\n \"mode\": \"LOCATION\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n },\n \"tonnageTax\": {\n \"mode\": \"INHERIT\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ],\n \"charges\": [\n {\n \"id\": \"44444444-5555-6666-7777-888888888888\",\n \"name\": \"Fuel surcharge\",\n \"category\": \"Surcharge\",\n \"pricingType\": \"PERCENT\",\n \"rate\": 5,\n \"tax\": {\n \"mode\": \"NONE\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-CurbWaste-Signature", "<x-curbwaste-signature>")
req.Header.Add("X-CurbWaste-Event-Id", "<x-curbwaste-event-id>")
req.Header.Add("X-CurbWaste-Event-Type", "<x-curbwaste-event-type>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/webhooks/pricelist.created")
.header("X-CurbWaste-Signature", "<x-curbwaste-signature>")
.header("X-CurbWaste-Event-Id", "<x-curbwaste-event-id>")
.header("X-CurbWaste-Event-Type", "<x-curbwaste-event-type>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"evt_cccccccc-dddd-eeee-ffff-000000000000\",\n \"type\": \"pricelist.created\",\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"data\": {\n \"id\": \"22222222-3333-4444-5555-666666666666\",\n \"name\": \"Acme Corp rates\",\n \"scope\": \"CUSTOMER\",\n \"status\": \"ACTIVE\",\n \"isDefault\": false,\n \"isEcommerce\": false,\n \"isZoneBased\": false,\n \"services\": [\n {\n \"id\": \"b7e4766e-9f13-46ee-9503-201aaa7817da\",\n \"identifier\": \"DUMPSTER\"\n }\n ],\n \"skuCount\": 1,\n \"chargeCount\": 1,\n \"customerCount\": 1,\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"skus\": [\n {\n \"id\": \"33333333-4444-5555-6666-777777777777\",\n \"name\": \"20 yard roll-off\",\n \"code\": \"RO-20\",\n \"description\": null,\n \"price\": 450,\n \"pricingType\": \"FLAT\",\n \"productName\": \"20 Yard\",\n \"loadComposition\": \"Mixed\",\n \"materialType\": \"C&D\",\n \"weight\": {\n \"unit\": \"Ton\",\n \"limitType\": \"Included\",\n \"limit\": 2,\n \"min\": null,\n \"rate\": 85\n },\n \"rental\": {\n \"unit\": \"Day\",\n \"limit\": 7,\n \"price\": 15\n },\n \"tax\": {\n \"mode\": \"LOCATION\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n },\n \"tonnageTax\": {\n \"mode\": \"INHERIT\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ],\n \"charges\": [\n {\n \"id\": \"44444444-5555-6666-7777-888888888888\",\n \"name\": \"Fuel surcharge\",\n \"category\": \"Surcharge\",\n \"pricingType\": \"PERCENT\",\n \"rate\": 5,\n \"tax\": {\n \"mode\": \"NONE\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/webhooks/pricelist.created")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-CurbWaste-Signature"] = '<x-curbwaste-signature>'
request["X-CurbWaste-Event-Id"] = '<x-curbwaste-event-id>'
request["X-CurbWaste-Event-Type"] = '<x-curbwaste-event-type>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"evt_cccccccc-dddd-eeee-ffff-000000000000\",\n \"type\": \"pricelist.created\",\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"data\": {\n \"id\": \"22222222-3333-4444-5555-666666666666\",\n \"name\": \"Acme Corp rates\",\n \"scope\": \"CUSTOMER\",\n \"status\": \"ACTIVE\",\n \"isDefault\": false,\n \"isEcommerce\": false,\n \"isZoneBased\": false,\n \"services\": [\n {\n \"id\": \"b7e4766e-9f13-46ee-9503-201aaa7817da\",\n \"identifier\": \"DUMPSTER\"\n }\n ],\n \"skuCount\": 1,\n \"chargeCount\": 1,\n \"customerCount\": 1,\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"skus\": [\n {\n \"id\": \"33333333-4444-5555-6666-777777777777\",\n \"name\": \"20 yard roll-off\",\n \"code\": \"RO-20\",\n \"description\": null,\n \"price\": 450,\n \"pricingType\": \"FLAT\",\n \"productName\": \"20 Yard\",\n \"loadComposition\": \"Mixed\",\n \"materialType\": \"C&D\",\n \"weight\": {\n \"unit\": \"Ton\",\n \"limitType\": \"Included\",\n \"limit\": 2,\n \"min\": null,\n \"rate\": 85\n },\n \"rental\": {\n \"unit\": \"Day\",\n \"limit\": 7,\n \"price\": 15\n },\n \"tax\": {\n \"mode\": \"LOCATION\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n },\n \"tonnageTax\": {\n \"mode\": \"INHERIT\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ],\n \"charges\": [\n {\n \"id\": \"44444444-5555-6666-7777-888888888888\",\n \"name\": \"Fuel surcharge\",\n \"category\": \"Surcharge\",\n \"pricingType\": \"PERCENT\",\n \"rate\": 5,\n \"tax\": {\n \"mode\": \"NONE\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_bodyHeaders
Body
application/json
Response
200
Acknowledge receipt. Prefer 204 or 200 promptly so the delivery succeeds.
⌘I
pricelist.created
curl --request POST \
--url https://api.example.com/webhooks/pricelist.created \
--header 'Content-Type: application/json' \
--header 'X-CurbWaste-Event-Id: <x-curbwaste-event-id>' \
--header 'X-CurbWaste-Event-Type: <x-curbwaste-event-type>' \
--header 'X-CurbWaste-Signature: <x-curbwaste-signature>' \
--data '
{
"id": "evt_cccccccc-dddd-eeee-ffff-000000000000",
"type": "pricelist.created",
"createdAt": "2026-10-01T18:00:00.000Z",
"data": {
"id": "22222222-3333-4444-5555-666666666666",
"name": "Acme Corp rates",
"scope": "CUSTOMER",
"status": "ACTIVE",
"isDefault": false,
"isEcommerce": false,
"isZoneBased": false,
"services": [
{
"id": "b7e4766e-9f13-46ee-9503-201aaa7817da",
"identifier": "DUMPSTER"
}
],
"skuCount": 1,
"chargeCount": 1,
"customerCount": 1,
"createdAt": "2026-10-01T18:00:00.000Z",
"skus": [
{
"id": "33333333-4444-5555-6666-777777777777",
"name": "20 yard roll-off",
"code": "RO-20",
"description": null,
"price": 450,
"pricingType": "FLAT",
"productName": "20 Yard",
"loadComposition": "Mixed",
"materialType": "C&D",
"weight": {
"unit": "Ton",
"limitType": "Included",
"limit": 2,
"min": null,
"rate": 85
},
"rental": {
"unit": "Day",
"limit": 7,
"price": 15
},
"tax": {
"mode": "LOCATION",
"taxGroupId": null,
"taxGroupName": null
},
"tonnageTax": {
"mode": "INHERIT",
"taxGroupId": null,
"taxGroupName": null
}
}
],
"charges": [
{
"id": "44444444-5555-6666-7777-888888888888",
"name": "Fuel surcharge",
"category": "Surcharge",
"pricingType": "PERCENT",
"rate": 5,
"tax": {
"mode": "NONE",
"taxGroupId": null,
"taxGroupName": null
}
}
]
}
}
'import requests
url = "https://api.example.com/webhooks/pricelist.created"
payload = {
"id": "evt_cccccccc-dddd-eeee-ffff-000000000000",
"type": "pricelist.created",
"createdAt": "2026-10-01T18:00:00.000Z",
"data": {
"id": "22222222-3333-4444-5555-666666666666",
"name": "Acme Corp rates",
"scope": "CUSTOMER",
"status": "ACTIVE",
"isDefault": False,
"isEcommerce": False,
"isZoneBased": False,
"services": [
{
"id": "b7e4766e-9f13-46ee-9503-201aaa7817da",
"identifier": "DUMPSTER"
}
],
"skuCount": 1,
"chargeCount": 1,
"customerCount": 1,
"createdAt": "2026-10-01T18:00:00.000Z",
"skus": [
{
"id": "33333333-4444-5555-6666-777777777777",
"name": "20 yard roll-off",
"code": "RO-20",
"description": None,
"price": 450,
"pricingType": "FLAT",
"productName": "20 Yard",
"loadComposition": "Mixed",
"materialType": "C&D",
"weight": {
"unit": "Ton",
"limitType": "Included",
"limit": 2,
"min": None,
"rate": 85
},
"rental": {
"unit": "Day",
"limit": 7,
"price": 15
},
"tax": {
"mode": "LOCATION",
"taxGroupId": None,
"taxGroupName": None
},
"tonnageTax": {
"mode": "INHERIT",
"taxGroupId": None,
"taxGroupName": None
}
}
],
"charges": [
{
"id": "44444444-5555-6666-7777-888888888888",
"name": "Fuel surcharge",
"category": "Surcharge",
"pricingType": "PERCENT",
"rate": 5,
"tax": {
"mode": "NONE",
"taxGroupId": None,
"taxGroupName": None
}
}
]
}
}
headers = {
"X-CurbWaste-Signature": "<x-curbwaste-signature>",
"X-CurbWaste-Event-Id": "<x-curbwaste-event-id>",
"X-CurbWaste-Event-Type": "<x-curbwaste-event-type>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-CurbWaste-Signature': '<x-curbwaste-signature>',
'X-CurbWaste-Event-Id': '<x-curbwaste-event-id>',
'X-CurbWaste-Event-Type': '<x-curbwaste-event-type>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: 'evt_cccccccc-dddd-eeee-ffff-000000000000',
type: 'pricelist.created',
createdAt: '2026-10-01T18:00:00.000Z',
data: {
id: '22222222-3333-4444-5555-666666666666',
name: 'Acme Corp rates',
scope: 'CUSTOMER',
status: 'ACTIVE',
isDefault: false,
isEcommerce: false,
isZoneBased: false,
services: [{id: 'b7e4766e-9f13-46ee-9503-201aaa7817da', identifier: 'DUMPSTER'}],
skuCount: 1,
chargeCount: 1,
customerCount: 1,
createdAt: '2026-10-01T18:00:00.000Z',
skus: [
{
id: '33333333-4444-5555-6666-777777777777',
name: '20 yard roll-off',
code: 'RO-20',
description: null,
price: 450,
pricingType: 'FLAT',
productName: '20 Yard',
loadComposition: 'Mixed',
materialType: 'C&D',
weight: {unit: 'Ton', limitType: 'Included', limit: 2, min: null, rate: 85},
rental: {unit: 'Day', limit: 7, price: 15},
tax: {mode: 'LOCATION', taxGroupId: null, taxGroupName: null},
tonnageTax: {mode: 'INHERIT', taxGroupId: null, taxGroupName: null}
}
],
charges: [
{
id: '44444444-5555-6666-7777-888888888888',
name: 'Fuel surcharge',
category: 'Surcharge',
pricingType: 'PERCENT',
rate: 5,
tax: {mode: 'NONE', taxGroupId: null, taxGroupName: null}
}
]
}
})
};
fetch('https://api.example.com/webhooks/pricelist.created', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/webhooks/pricelist.created",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'evt_cccccccc-dddd-eeee-ffff-000000000000',
'type' => 'pricelist.created',
'createdAt' => '2026-10-01T18:00:00.000Z',
'data' => [
'id' => '22222222-3333-4444-5555-666666666666',
'name' => 'Acme Corp rates',
'scope' => 'CUSTOMER',
'status' => 'ACTIVE',
'isDefault' => false,
'isEcommerce' => false,
'isZoneBased' => false,
'services' => [
[
'id' => 'b7e4766e-9f13-46ee-9503-201aaa7817da',
'identifier' => 'DUMPSTER'
]
],
'skuCount' => 1,
'chargeCount' => 1,
'customerCount' => 1,
'createdAt' => '2026-10-01T18:00:00.000Z',
'skus' => [
[
'id' => '33333333-4444-5555-6666-777777777777',
'name' => '20 yard roll-off',
'code' => 'RO-20',
'description' => null,
'price' => 450,
'pricingType' => 'FLAT',
'productName' => '20 Yard',
'loadComposition' => 'Mixed',
'materialType' => 'C&D',
'weight' => [
'unit' => 'Ton',
'limitType' => 'Included',
'limit' => 2,
'min' => null,
'rate' => 85
],
'rental' => [
'unit' => 'Day',
'limit' => 7,
'price' => 15
],
'tax' => [
'mode' => 'LOCATION',
'taxGroupId' => null,
'taxGroupName' => null
],
'tonnageTax' => [
'mode' => 'INHERIT',
'taxGroupId' => null,
'taxGroupName' => null
]
]
],
'charges' => [
[
'id' => '44444444-5555-6666-7777-888888888888',
'name' => 'Fuel surcharge',
'category' => 'Surcharge',
'pricingType' => 'PERCENT',
'rate' => 5,
'tax' => [
'mode' => 'NONE',
'taxGroupId' => null,
'taxGroupName' => null
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-CurbWaste-Event-Id: <x-curbwaste-event-id>",
"X-CurbWaste-Event-Type: <x-curbwaste-event-type>",
"X-CurbWaste-Signature: <x-curbwaste-signature>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/webhooks/pricelist.created"
payload := strings.NewReader("{\n \"id\": \"evt_cccccccc-dddd-eeee-ffff-000000000000\",\n \"type\": \"pricelist.created\",\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"data\": {\n \"id\": \"22222222-3333-4444-5555-666666666666\",\n \"name\": \"Acme Corp rates\",\n \"scope\": \"CUSTOMER\",\n \"status\": \"ACTIVE\",\n \"isDefault\": false,\n \"isEcommerce\": false,\n \"isZoneBased\": false,\n \"services\": [\n {\n \"id\": \"b7e4766e-9f13-46ee-9503-201aaa7817da\",\n \"identifier\": \"DUMPSTER\"\n }\n ],\n \"skuCount\": 1,\n \"chargeCount\": 1,\n \"customerCount\": 1,\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"skus\": [\n {\n \"id\": \"33333333-4444-5555-6666-777777777777\",\n \"name\": \"20 yard roll-off\",\n \"code\": \"RO-20\",\n \"description\": null,\n \"price\": 450,\n \"pricingType\": \"FLAT\",\n \"productName\": \"20 Yard\",\n \"loadComposition\": \"Mixed\",\n \"materialType\": \"C&D\",\n \"weight\": {\n \"unit\": \"Ton\",\n \"limitType\": \"Included\",\n \"limit\": 2,\n \"min\": null,\n \"rate\": 85\n },\n \"rental\": {\n \"unit\": \"Day\",\n \"limit\": 7,\n \"price\": 15\n },\n \"tax\": {\n \"mode\": \"LOCATION\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n },\n \"tonnageTax\": {\n \"mode\": \"INHERIT\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ],\n \"charges\": [\n {\n \"id\": \"44444444-5555-6666-7777-888888888888\",\n \"name\": \"Fuel surcharge\",\n \"category\": \"Surcharge\",\n \"pricingType\": \"PERCENT\",\n \"rate\": 5,\n \"tax\": {\n \"mode\": \"NONE\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-CurbWaste-Signature", "<x-curbwaste-signature>")
req.Header.Add("X-CurbWaste-Event-Id", "<x-curbwaste-event-id>")
req.Header.Add("X-CurbWaste-Event-Type", "<x-curbwaste-event-type>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/webhooks/pricelist.created")
.header("X-CurbWaste-Signature", "<x-curbwaste-signature>")
.header("X-CurbWaste-Event-Id", "<x-curbwaste-event-id>")
.header("X-CurbWaste-Event-Type", "<x-curbwaste-event-type>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"evt_cccccccc-dddd-eeee-ffff-000000000000\",\n \"type\": \"pricelist.created\",\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"data\": {\n \"id\": \"22222222-3333-4444-5555-666666666666\",\n \"name\": \"Acme Corp rates\",\n \"scope\": \"CUSTOMER\",\n \"status\": \"ACTIVE\",\n \"isDefault\": false,\n \"isEcommerce\": false,\n \"isZoneBased\": false,\n \"services\": [\n {\n \"id\": \"b7e4766e-9f13-46ee-9503-201aaa7817da\",\n \"identifier\": \"DUMPSTER\"\n }\n ],\n \"skuCount\": 1,\n \"chargeCount\": 1,\n \"customerCount\": 1,\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"skus\": [\n {\n \"id\": \"33333333-4444-5555-6666-777777777777\",\n \"name\": \"20 yard roll-off\",\n \"code\": \"RO-20\",\n \"description\": null,\n \"price\": 450,\n \"pricingType\": \"FLAT\",\n \"productName\": \"20 Yard\",\n \"loadComposition\": \"Mixed\",\n \"materialType\": \"C&D\",\n \"weight\": {\n \"unit\": \"Ton\",\n \"limitType\": \"Included\",\n \"limit\": 2,\n \"min\": null,\n \"rate\": 85\n },\n \"rental\": {\n \"unit\": \"Day\",\n \"limit\": 7,\n \"price\": 15\n },\n \"tax\": {\n \"mode\": \"LOCATION\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n },\n \"tonnageTax\": {\n \"mode\": \"INHERIT\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ],\n \"charges\": [\n {\n \"id\": \"44444444-5555-6666-7777-888888888888\",\n \"name\": \"Fuel surcharge\",\n \"category\": \"Surcharge\",\n \"pricingType\": \"PERCENT\",\n \"rate\": 5,\n \"tax\": {\n \"mode\": \"NONE\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/webhooks/pricelist.created")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-CurbWaste-Signature"] = '<x-curbwaste-signature>'
request["X-CurbWaste-Event-Id"] = '<x-curbwaste-event-id>'
request["X-CurbWaste-Event-Type"] = '<x-curbwaste-event-type>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"evt_cccccccc-dddd-eeee-ffff-000000000000\",\n \"type\": \"pricelist.created\",\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"data\": {\n \"id\": \"22222222-3333-4444-5555-666666666666\",\n \"name\": \"Acme Corp rates\",\n \"scope\": \"CUSTOMER\",\n \"status\": \"ACTIVE\",\n \"isDefault\": false,\n \"isEcommerce\": false,\n \"isZoneBased\": false,\n \"services\": [\n {\n \"id\": \"b7e4766e-9f13-46ee-9503-201aaa7817da\",\n \"identifier\": \"DUMPSTER\"\n }\n ],\n \"skuCount\": 1,\n \"chargeCount\": 1,\n \"customerCount\": 1,\n \"createdAt\": \"2026-10-01T18:00:00.000Z\",\n \"skus\": [\n {\n \"id\": \"33333333-4444-5555-6666-777777777777\",\n \"name\": \"20 yard roll-off\",\n \"code\": \"RO-20\",\n \"description\": null,\n \"price\": 450,\n \"pricingType\": \"FLAT\",\n \"productName\": \"20 Yard\",\n \"loadComposition\": \"Mixed\",\n \"materialType\": \"C&D\",\n \"weight\": {\n \"unit\": \"Ton\",\n \"limitType\": \"Included\",\n \"limit\": 2,\n \"min\": null,\n \"rate\": 85\n },\n \"rental\": {\n \"unit\": \"Day\",\n \"limit\": 7,\n \"price\": 15\n },\n \"tax\": {\n \"mode\": \"LOCATION\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n },\n \"tonnageTax\": {\n \"mode\": \"INHERIT\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ],\n \"charges\": [\n {\n \"id\": \"44444444-5555-6666-7777-888888888888\",\n \"name\": \"Fuel surcharge\",\n \"category\": \"Surcharge\",\n \"pricingType\": \"PERCENT\",\n \"rate\": 5,\n \"tax\": {\n \"mode\": \"NONE\",\n \"taxGroupId\": null,\n \"taxGroupName\": null\n }\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body