curl --request PUT \
--url https://api-eu.flexportal.io/v1/customers/{customerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Tenant-ID: <tenant-id>' \
--data '
{
"customerId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"company": "<string>",
"phone": "<string>",
"customerType": "individual",
"status": "active",
"billingAddress": {
"contactName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"country": "<string>",
"company": "<string>",
"buildingInfo": "<string>",
"locality": "<string>",
"adminArea": "<string>",
"postalCode": "<string>"
},
"shippingAddress": {
"contactName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"country": "<string>",
"company": "<string>",
"buildingInfo": "<string>",
"locality": "<string>",
"adminArea": "<string>",
"postalCode": "<string>"
}
}
'{
"success": true,
"message": "<string>",
"customerId": "<string>",
"customer": {
"customerId": "<string>",
"tenantId": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"customerType": "individual",
"totalOrders": 123,
"totalDevicesRented": 123,
"totalMonthlyRevenue": 123,
"status": "active",
"orderIds": [
"<string>"
],
"rentalIds": [
"<string>"
],
"createdBy": "<string>",
"company": "<string>",
"phone": "<string>",
"customFields": {},
"lastBillingAddress": {
"contactName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"country": "<string>",
"company": "<string>",
"buildingInfo": "<string>",
"locality": "<string>",
"adminArea": "<string>",
"postalCode": "<string>"
},
"lastShippingAddress": {
"contactName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"country": "<string>",
"company": "<string>",
"buildingInfo": "<string>",
"locality": "<string>",
"adminArea": "<string>",
"postalCode": "<string>"
},
"createdAt": "<unknown>",
"updatedAt": "<unknown>"
}
}Updates customer details such as name, phone, or addresses.
curl --request PUT \
--url https://api-eu.flexportal.io/v1/customers/{customerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Tenant-ID: <tenant-id>' \
--data '
{
"customerId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"company": "<string>",
"phone": "<string>",
"customerType": "individual",
"status": "active",
"billingAddress": {
"contactName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"country": "<string>",
"company": "<string>",
"buildingInfo": "<string>",
"locality": "<string>",
"adminArea": "<string>",
"postalCode": "<string>"
},
"shippingAddress": {
"contactName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"country": "<string>",
"company": "<string>",
"buildingInfo": "<string>",
"locality": "<string>",
"adminArea": "<string>",
"postalCode": "<string>"
}
}
'{
"success": true,
"message": "<string>",
"customerId": "<string>",
"customer": {
"customerId": "<string>",
"tenantId": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"customerType": "individual",
"totalOrders": 123,
"totalDevicesRented": 123,
"totalMonthlyRevenue": 123,
"status": "active",
"orderIds": [
"<string>"
],
"rentalIds": [
"<string>"
],
"createdBy": "<string>",
"company": "<string>",
"phone": "<string>",
"customFields": {},
"lastBillingAddress": {
"contactName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"country": "<string>",
"company": "<string>",
"buildingInfo": "<string>",
"locality": "<string>",
"adminArea": "<string>",
"postalCode": "<string>"
},
"lastShippingAddress": {
"contactName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"country": "<string>",
"company": "<string>",
"buildingInfo": "<string>",
"locality": "<string>",
"adminArea": "<string>",
"postalCode": "<string>"
},
"createdAt": "<unknown>",
"updatedAt": "<unknown>"
}
}API key obtained from FlexPortal dashboard
Your tenant identifier
The customer ID
111individual, business active, inactive Show child attributes
Show child attributes
Customer updated
true, false Show child attributes
individual, business active, inactive Show child attributes
Show child attributes