customer management module

November 18, 2025 ยท View on GitHub

home

modules

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
Request Body
{
  "id": "f84d777c-9260-48cd-b634-b11174caf74a",
  "initials": "H.",
  "firstName": "Hank",
  "lastName": "Wolters"
}
Responses
CodeContent typeTypeDescription
200application/jsoncustomerAccountthis 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.
Responses
CodeContent typeTypeDescription

GET /collections/customers/items/{customerId} -> customerAccount

Get the customer account from the TO system
Responses
CodeContent typeTypeDescription
200application/jsoncustomerAccountCustomer Account

PATCH /collections/customers/items/{customerId} -> customerAccount

Update the CUSTOMER ACCOUNT on the TO system
updates the defined fields of the CUSTOMER ACCOUNT.
Request Body
Responses
CodeContent typeTypeDescription
200application/jsoncustomerAccountCustomer Account