customer management module
November 18, 2025 ยท View on GitHub
customer management module
the CUSTOMER MANAGEMENT MODULE contains the functionality to explicitly manage the customer account on the TO side .
POST /collections/customers/items customer -> customerAccount -> customerAccount
Create a TO CUSTOMER ACCOUNT for the customer
creates a CUSTOMER ACCOUNT that can be later used for purchase of a trip
creates a CUSTOMER ACCOUNT that can be later used for purchase of a trip
Request Body
{
"id": "f84d777c-9260-48cd-b634-b11174caf74a",
"initials": "H.",
"firstName": "Hank",
"lastName": "Wolters"
}
Responses
| Code | Content type | Type | Description |
|---|---|---|---|
| 200 | application/json | customerAccount | this IS NOT THE DEFAULT response. Only to return if the customer already existed on the TO side, based on email address, phone number or other supplied details. |
DELETE /collections/customers/items/{customerId}
Delete the CUSTOMER ACCOUNT from the TO system.
The timeline of deletion of the customer account depends on the TO processes, it could be instant, weeks or months.
The timeline of deletion of the customer account depends on the TO processes, it could be instant, weeks or months.
Responses
| Code | Content type | Type | Description |
|---|
GET /collections/customers/items/{customerId} -> customerAccount
Get the customer account from the TO system
Responses
| Code | Content type | Type | Description |
|---|---|---|---|
| 200 | application/json | customerAccount | Customer Account |
PATCH /collections/customers/items/{customerId} -> customerAccount
Update the CUSTOMER ACCOUNT on the TO system
updates the defined fields of the CUSTOMER ACCOUNT.
updates the defined fields of the CUSTOMER ACCOUNT.
Request Body
Responses
| Code | Content type | Type | Description |
|---|---|---|---|
| 200 | application/json | customerAccount | Customer Account |