Customers
Example REST registration — persist, outbox, then consume.
Customer registration is a reference Experience API. It demonstrates Connect patterns; it is not a production customer master.
Flow
POST /api/v1/customers(JWT, Operator+)- Validate, persist
customers, writeaudit_logand an outbox rowPENDING - HTTP
201withLocation— no Kafka produce on the request thread - Outbox publisher emits
CustomerCreatedtocustomer.events - Catalog workflow
customer-created-consumestarts and recordsmessage_history
Request
{
"firstName": "Ada",
"lastName": "Lovelace",
"email": "ada@example.com",
"phone": "+1-555-0100"
}Optional header: X-Correlation-Id. Errors use RFC 7807 Problem Details.
| Method | Path |
|---|---|
POST | /api/v1/customers |
GET | /api/v1/customers |
GET | /api/v1/customers/{id} |
Try it
If this fails
| Symptom | Cause |
|---|---|
| 201, no Kafka message | Outbox publisher down, or CDC/poll misconfigured — Outbox |
| 409 | Duplicate email / domain uniqueness |