Webhook events
customer.created
Delivered when a customer is created, through the API, MCP, or CurbWaste. Respond with 2xx quickly. Failed deliveries are retried (up to 8 attempts, exponential backoff from 60 seconds).
customer.created
curl --request POST \
--url https://api.example.com/webhooks/customer.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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"type": "customer.created",
"createdAt": "2026-08-07T18:00:00.000Z",
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"displayName": "Acme Corp",
"customerNumber": "C001",
"status": "ACTIVE",
"email": "billing@acme.com",
"phone": "555-0100",
"companyName": null,
"billingEmails": [
"ap@acme.com"
],
"notes": "Net 30",
"customerLabels": [],
"globalLabels": [
{
"id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"name": "Permit",
"code": "PRM"
}
],
"createdAt": "2026-08-07T18:00:00.000Z",
"updatedAt": "2026-08-07T18:00:00.000Z"
}
}
'import requests
url = "https://api.example.com/webhooks/customer.created"
payload = {
"id": "evt_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"type": "customer.created",
"createdAt": "2026-08-07T18:00:00.000Z",
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"displayName": "Acme Corp",
"customerNumber": "C001",
"status": "ACTIVE",
"email": "billing@acme.com",
"phone": "555-0100",
"companyName": None,
"billingEmails": ["ap@acme.com"],
"notes": "Net 30",
"customerLabels": [],
"globalLabels": [
{
"id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"name": "Permit",
"code": "PRM"
}
],
"createdAt": "2026-08-07T18:00:00.000Z",
"updatedAt": "2026-08-07T18:00:00.000Z"
}
}
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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
type: 'customer.created',
createdAt: '2026-08-07T18:00:00.000Z',
data: {
id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
displayName: 'Acme Corp',
customerNumber: 'C001',
status: 'ACTIVE',
email: 'billing@acme.com',
phone: '555-0100',
companyName: null,
billingEmails: ['ap@acme.com'],
notes: 'Net 30',
customerLabels: [],
globalLabels: [{id: 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', name: 'Permit', code: 'PRM'}],
createdAt: '2026-08-07T18:00:00.000Z',
updatedAt: '2026-08-07T18:00:00.000Z'
}
})
};
fetch('https://api.example.com/webhooks/customer.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/customer.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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
'type' => 'customer.created',
'createdAt' => '2026-08-07T18:00:00.000Z',
'data' => [
'id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'displayName' => 'Acme Corp',
'customerNumber' => 'C001',
'status' => 'ACTIVE',
'email' => 'billing@acme.com',
'phone' => '555-0100',
'companyName' => null,
'billingEmails' => [
'ap@acme.com'
],
'notes' => 'Net 30',
'customerLabels' => [
],
'globalLabels' => [
[
'id' => 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb',
'name' => 'Permit',
'code' => 'PRM'
]
],
'createdAt' => '2026-08-07T18:00:00.000Z',
'updatedAt' => '2026-08-07T18:00:00.000Z'
]
]),
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/customer.created"
payload := strings.NewReader("{\n \"id\": \"evt_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\",\n \"type\": \"customer.created\",\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"data\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"displayName\": \"Acme Corp\",\n \"customerNumber\": \"C001\",\n \"status\": \"ACTIVE\",\n \"email\": \"billing@acme.com\",\n \"phone\": \"555-0100\",\n \"companyName\": null,\n \"billingEmails\": [\n \"ap@acme.com\"\n ],\n \"notes\": \"Net 30\",\n \"customerLabels\": [],\n \"globalLabels\": [\n {\n \"id\": \"bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb\",\n \"name\": \"Permit\",\n \"code\": \"PRM\"\n }\n ],\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"updatedAt\": \"2026-08-07T18:00:00.000Z\"\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/customer.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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\",\n \"type\": \"customer.created\",\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"data\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"displayName\": \"Acme Corp\",\n \"customerNumber\": \"C001\",\n \"status\": \"ACTIVE\",\n \"email\": \"billing@acme.com\",\n \"phone\": \"555-0100\",\n \"companyName\": null,\n \"billingEmails\": [\n \"ap@acme.com\"\n ],\n \"notes\": \"Net 30\",\n \"customerLabels\": [],\n \"globalLabels\": [\n {\n \"id\": \"bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb\",\n \"name\": \"Permit\",\n \"code\": \"PRM\"\n }\n ],\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"updatedAt\": \"2026-08-07T18:00:00.000Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/webhooks/customer.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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\",\n \"type\": \"customer.created\",\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"data\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"displayName\": \"Acme Corp\",\n \"customerNumber\": \"C001\",\n \"status\": \"ACTIVE\",\n \"email\": \"billing@acme.com\",\n \"phone\": \"555-0100\",\n \"companyName\": null,\n \"billingEmails\": [\n \"ap@acme.com\"\n ],\n \"notes\": \"Net 30\",\n \"customerLabels\": [],\n \"globalLabels\": [\n {\n \"id\": \"bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb\",\n \"name\": \"Permit\",\n \"code\": \"PRM\"\n }\n ],\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"updatedAt\": \"2026-08-07T18:00:00.000Z\"\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
customer.created
curl --request POST \
--url https://api.example.com/webhooks/customer.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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"type": "customer.created",
"createdAt": "2026-08-07T18:00:00.000Z",
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"displayName": "Acme Corp",
"customerNumber": "C001",
"status": "ACTIVE",
"email": "billing@acme.com",
"phone": "555-0100",
"companyName": null,
"billingEmails": [
"ap@acme.com"
],
"notes": "Net 30",
"customerLabels": [],
"globalLabels": [
{
"id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"name": "Permit",
"code": "PRM"
}
],
"createdAt": "2026-08-07T18:00:00.000Z",
"updatedAt": "2026-08-07T18:00:00.000Z"
}
}
'import requests
url = "https://api.example.com/webhooks/customer.created"
payload = {
"id": "evt_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"type": "customer.created",
"createdAt": "2026-08-07T18:00:00.000Z",
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"displayName": "Acme Corp",
"customerNumber": "C001",
"status": "ACTIVE",
"email": "billing@acme.com",
"phone": "555-0100",
"companyName": None,
"billingEmails": ["ap@acme.com"],
"notes": "Net 30",
"customerLabels": [],
"globalLabels": [
{
"id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"name": "Permit",
"code": "PRM"
}
],
"createdAt": "2026-08-07T18:00:00.000Z",
"updatedAt": "2026-08-07T18:00:00.000Z"
}
}
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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
type: 'customer.created',
createdAt: '2026-08-07T18:00:00.000Z',
data: {
id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
displayName: 'Acme Corp',
customerNumber: 'C001',
status: 'ACTIVE',
email: 'billing@acme.com',
phone: '555-0100',
companyName: null,
billingEmails: ['ap@acme.com'],
notes: 'Net 30',
customerLabels: [],
globalLabels: [{id: 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', name: 'Permit', code: 'PRM'}],
createdAt: '2026-08-07T18:00:00.000Z',
updatedAt: '2026-08-07T18:00:00.000Z'
}
})
};
fetch('https://api.example.com/webhooks/customer.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/customer.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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
'type' => 'customer.created',
'createdAt' => '2026-08-07T18:00:00.000Z',
'data' => [
'id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'displayName' => 'Acme Corp',
'customerNumber' => 'C001',
'status' => 'ACTIVE',
'email' => 'billing@acme.com',
'phone' => '555-0100',
'companyName' => null,
'billingEmails' => [
'ap@acme.com'
],
'notes' => 'Net 30',
'customerLabels' => [
],
'globalLabels' => [
[
'id' => 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb',
'name' => 'Permit',
'code' => 'PRM'
]
],
'createdAt' => '2026-08-07T18:00:00.000Z',
'updatedAt' => '2026-08-07T18:00:00.000Z'
]
]),
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/customer.created"
payload := strings.NewReader("{\n \"id\": \"evt_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\",\n \"type\": \"customer.created\",\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"data\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"displayName\": \"Acme Corp\",\n \"customerNumber\": \"C001\",\n \"status\": \"ACTIVE\",\n \"email\": \"billing@acme.com\",\n \"phone\": \"555-0100\",\n \"companyName\": null,\n \"billingEmails\": [\n \"ap@acme.com\"\n ],\n \"notes\": \"Net 30\",\n \"customerLabels\": [],\n \"globalLabels\": [\n {\n \"id\": \"bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb\",\n \"name\": \"Permit\",\n \"code\": \"PRM\"\n }\n ],\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"updatedAt\": \"2026-08-07T18:00:00.000Z\"\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/customer.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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\",\n \"type\": \"customer.created\",\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"data\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"displayName\": \"Acme Corp\",\n \"customerNumber\": \"C001\",\n \"status\": \"ACTIVE\",\n \"email\": \"billing@acme.com\",\n \"phone\": \"555-0100\",\n \"companyName\": null,\n \"billingEmails\": [\n \"ap@acme.com\"\n ],\n \"notes\": \"Net 30\",\n \"customerLabels\": [],\n \"globalLabels\": [\n {\n \"id\": \"bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb\",\n \"name\": \"Permit\",\n \"code\": \"PRM\"\n }\n ],\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"updatedAt\": \"2026-08-07T18:00:00.000Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/webhooks/customer.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_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\",\n \"type\": \"customer.created\",\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"data\": {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"displayName\": \"Acme Corp\",\n \"customerNumber\": \"C001\",\n \"status\": \"ACTIVE\",\n \"email\": \"billing@acme.com\",\n \"phone\": \"555-0100\",\n \"companyName\": null,\n \"billingEmails\": [\n \"ap@acme.com\"\n ],\n \"notes\": \"Net 30\",\n \"customerLabels\": [],\n \"globalLabels\": [\n {\n \"id\": \"bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb\",\n \"name\": \"Permit\",\n \"code\": \"PRM\"\n }\n ],\n \"createdAt\": \"2026-08-07T18:00:00.000Z\",\n \"updatedAt\": \"2026-08-07T18:00:00.000Z\"\n }\n}"
response = http.request(request)
puts response.read_body