Skip to main content

Customers

Get Customer​

Get a specific customer by its ID.

VerbGET
URLhttps://api.s.unit.sh/ready-to-launch/customers/:customerId
Required Scopecustomers
Timeout (Seconds)5

Example Request:

curl -X GET 'https://api.s.unit.sh/ready-to-launch/customers/10014' \
-H "Authorization: Bearer ${TOKEN}"

Response​

Returns customer details including the list of associated user IDs.

Response is a JSON:API document.

200 OK​

NameTypeDescription
idstringIdentifier of the customer resource.
typestringType of the customer resource. Always customer.
attributesJSON ObjectJSON object representing the customer data.

Attributes​

NameTypeDescription
createdAtstringThe date the customer was created.
statusstringThe status of the customer (Active or Archived).
customerTypestringThe type of the customer (individual or business).
userIdsarrayList of user IDs associated with this customer.

Example Response:

{
"data": {
"type": "customer",
"id": "10014",
"attributes": {
"createdAt": "2023-10-20T10:15:22.123Z",
"status": "Active",
"customerType": "individual",
"userIds": ["user_12345", "user_67890"]
}
}
}

List Customers​

Get a list of customers.

VerbGET
URLhttps://api.s.unit.sh/ready-to-launch/customers
Required Scopecustomers
Timeout (Seconds)5

Query Parameters​

NameTypeDefaultDescription
filter[customerId]string(empty)Optional. Filter customers by customer ID.
filter[userId]string(empty)Optional. Filter customers by user ID.

Example Request:

curl -X GET 'https://api.s.unit.sh/ready-to-launch/customers' \
-H "Authorization: Bearer ${TOKEN}"

Response​

Returns a list of customers with their details.

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataArray of customersArray of customer resources.

Attributes​

NameTypeDescription
createdAtstringThe date the customer was created.
statusstringThe status of the customer (Active or Archived).
customerTypestringThe type of the customer (individual or business).
userIdsarrayList of user IDs associated with this customer.

Example Response:

{
"data": [
{
"type": "customer",
"id": "10014",
"attributes": {
"createdAt": "2023-10-20T10:15:22.123Z",
"status": "Active",
"customerType": "individual",
"userIds": ["user_12345", "user_67890"]
}
},
{
"type": "customer",
"id": "10016",
"attributes": {
"createdAt": "2023-11-05T14:30:00.000Z",
"status": "Active",
"customerType": "business",
"userIds": ["user_11111"]
}
}
]
}