Get Customer Class by ID
GET
/v2/customerclass/{id}
const url = 'https://api-crm-staging.divinea.com/api/v2/customerclass/example';const options = {method: 'GET', headers: {APIKey: '<APIKey>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-crm-staging.divinea.com/api/v2/customerclass/example \ --header 'APIKey: <APIKey>'Authorizations
Sezione intitolata “Authorizations”Parameters
Sezione intitolata “Parameters”Path Parameters
Sezione intitolata “Path Parameters”id
required
string format: uuid
Customer Class ID
Responses
Sezione intitolata “Responses”OK
Media type*/*
CustomerClassDTO
Data Transfer Object representing a Customer Class entity
object
caseDiscountRate
Case discount rate (percentage)
number
Example
10classId
Numeric class ID (auto-incremental)
integer format: int32
Example
1className
Name of the class
string
Example
ConsumerclassType
Type of the class
string
Example
WholesalecreatedAt
Timestamp
Record creation timestamp
object
date
integer format: int32
day
integer format: int32
hours
integer format: int32
minutes
integer format: int32
month
integer format: int32
nanos
integer format: int32
seconds
integer format: int32
time
integer format: int64
timezoneOffset
integer format: int32
year
integer format: int32
Example
2025-10-13T12:30:00discountRate
Discount rate (percentage)
number
Example
0id
Unique identifier of the customer class (UUID)
string format: uuid
Example
550e8400-e29b-41d4-a716-446655440000isActive
Whether the customer class is active
boolean
Example
trueisExpired
Whether the customer class has expired (computed from validityDate)
boolean
Example
falseisPaid
Whether the customer class is paid
boolean
Example
falseprice
Price amount
number
Example
99.99priceType
Price type: MONTHLY, YEARLY, or UNA_TANTUM
string
Example
MONTHLYupdatedAt
Timestamp
Record last update timestamp
object
date
integer format: int32
day
integer format: int32
hours
integer format: int32
minutes
integer format: int32
month
integer format: int32
nanos
integer format: int32
seconds
integer format: int32
time
integer format: int64
timezoneOffset
integer format: int32
year
integer format: int32
Example
2025-10-13T12:45:00validityDate
Timestamp
Validity date when the customer class expires
object
date
integer format: int32
day
integer format: int32
hours
integer format: int32
minutes
integer format: int32
month
integer format: int32
nanos
integer format: int32
seconds
integer format: int32
time
integer format: int64
timezoneOffset
integer format: int32
year
integer format: int32
Example
2025-12-31T23:59:59wineryId
required
Winery ID associated with the customer class (UUID)
string format: uuid
Example
e1234567-e89b-12d3-a456-426614174000