Skip to main content

Customer Service

Manages customers.


Endpoints


Create Customer

POST /customers

Create a new customer.

Request Body

FieldTypeRequiredDescriptionExample
externalIdstringYesExternal customer ID for integration with external systems."customer-external-id-123"
statusenumYesCustomer status. Must be one of: active, inactive, deleted, suspended."active"

Example Request:

{
"externalId": "customer-external-id-123",
"status": "active"
}

Success Response

Returns the created customer object.

{
"id": "c1d2e3f4-5678-90ab-cdef-1234567890ab",
"externalId": "customer-external-id-123",
"status": "active",
"createdAt": "2025-11-18T12:34:56.789Z"
}

Error Responses

  • 400 Bad Request: Validation failed (missing or invalid fields)
  • 409 Conflict: Duplicate externalId

List Customers

GET /customers

Retrieve all customers.

Success Response

Returns an array of customer objects.

[
{
"id": "c1d2e3f4-5678-90ab-cdef-1234567890ab",
"externalId": "customer-external-id-123",
"status": "active",
"createdAt": "2025-11-18T12:34:56.789Z"
}
// ...more customers
]

Get Customer

GET /customers/:id

Retrieve details for a specific customer.

Path Parameters

ParameterTypeRequiredDescription
iduuidYesCustomer unique ID

Success Response

{
"id": "c1d2e3f4-5678-90ab-cdef-1234567890ab",
"externalId": "customer-external-id-123",
"status": "active",
"createdAt": "2025-11-18T12:34:56.789Z"
}

Error Responses

  • 404 Not Found: Customer not found
  • 400 Bad Request: Invalid customer ID format

Update Customer

PUT /customers/:id

Update the status of an existing customer.

Path Parameters

ParameterTypeRequiredDescription
iduuidYesCustomer unique ID

Request Body

FieldTypeRequiredDescriptionExample
statusenumYesCustomer status to update. Must be one of: active, inactive, deleted, suspended."active"

Example Request:

{
"status": "active"
}

Success Response

Returns the updated customer object.

{
"id": "c1d2e3f4-5678-90ab-cdef-1234567890ab",
"externalId": "customer-external-id-123",
"status": "active",
"createdAt": "2025-11-18T12:34:56.789Z"
}

Error Responses

  • 400 Bad Request: Validation failed
  • 404 Not Found: Customer not found

Get All Addresses for Customer

GET /customers/:id/accounts/addresses

Retrieve all blockchain addresses for all accounts associated with a customer.

Path Parameters

ParameterTypeRequiredDescription
iduuidYesCustomer unique ID

Success Response

Returns an array of addresses.

[
"0x1234567890abcdef...",
"0xabcdef1234567890..."
]

Error Responses

  • 404 Not Found: Customer not found
  • 400 Bad Request: Invalid customer ID format

Delete Customer

DELETE /customers/:id

Note: Customer deletion is not permitted. This endpoint will always return a 405 Method Not Allowed error.

Error Response

  • 405 Method Not Allowed: Customer deletion is not permitted

Error Format

All error responses follow this format:

{
"error": {
"code": "ERROR_CODE",
"message": "Description of the error",
"details": [
{
"field": "fieldName",
"message": "Field-specific error message"
}
]
}
}

Field Descriptions

FieldTypeDescription
iduuidUnique identifier for the customer
externalIdstringExternal customer ID
statusenumCustomer status (see CustomerStatus enum)
createdAtstringISO8601 timestamp of customer creation

For enum values, see CustomerStatus definition.