Get a customer
GET
/customers/{id}Authorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idintegerrequiredResponses
200Customer entity
_linksHalLinksidintegershop_idintegeremailstringnamestringFull name (first and last)
phone_numberstringphone_validatedbooleanvalidation_methodstringcompany_namestringcompany_id_numberstringCompany tax/ID number (RUT, DNI, etc.), formatted
company_activity_codestringcustomer_statusstringCustomer account status.
Allowed:
publicprivatependingopt_inbooleanWhether the contact has opted in to marketing emails.
sourcestringlast_logged_onstring<date-time>last_ip_addressstringhas_passwordbooleantotal_spentintegerIn cents
available_orders_countintegersalesperson_idintegerfavorite_product_idsinteger[]used_promotion_idsinteger[]tagsstring[]created_onstring<date-time>updated_onstring<date-time>_embeddedobjectShow propertiesHide properties
contact_groupobjectPresent when the contact belongs to a group
addressesAddress[]Show propertiesHide properties
Array of
Addressstreetstringstreet_2stringlocality_namestringregion_namestringcountry_namestringpostal_codestring403Access denied
404Customer not found
Request
curl -X GET "https://api.onbolder.com/v2/customers/0" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.onbolder.com/v2/customers/0", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.onbolder.com/v2/customers/0",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"id": 3001,
"shop_id": 1,
"email": "jane@example.com",
"name": "Jane Smith",
"customer_status": "private",
"phone_number": "+15551234567",
"phone_validated": true,
"created_on": "2024-03-10T11:00:00Z",
"_links": {
"self": {
"href": "https://api.onbolder.com/v2/customers/3001"
},
"orders": {
"href": "https://api.onbolder.com/v2/orders?shop_id=1&contact_email=jane@example.com"
},
"customers:update": {
"href": "https://api.onbolder.com/v2/customers/3001",
"method": "put"
}
}
}Access denied
Customer not found