HomeGuidesAPI ReferenceChangelogDiscussions
GuidesDiscussionsAPI ReferenceChangelogMy ApplicationLog In
API Reference

Update Customer by ID

Updates a single Customer object

Log in to see full request history
Path Params
int64
required

ID of Customer to update

Body Params

Customer data that needs to be changed

boolean
Defaults to false

Flag. If set to True will allow checks to be accepted on the POS for this customer.

integer

Deprecated - HouseAccount resource used instead.

integer

Deprecated - HouseAccount resource used instead.

boolean

Flag. If set to True, the customer is visible on the POS and Management Console.

string

Deprecated - CustomerAddress resource used instead.

addresses
array of objects

Array that lists all valid addresses linked to this customer. The address with "primary_billing": true is considered the default.

addresses
date-time

ISO8601 timestamp used to specify the customer's birthdate. Visible on the POS.

string
length ≤ 20

Unused field. Intended to store the customer's credit card expiry date.

string
length ≤ 200

Unused field. Intended to store the first name on the customer's credit card.

string
length ≤ 200

Unused field. Intended to store the last name on the customer's credit card.

string
length ≤ 4

Unused field. Intended to store the last 4 digits of the customer's credit card number.

string

Deprecated - CustomerAddress resource used instead.

string
length ≤ 100

Field used to store the name of the company the customer is associated with. Required if "type" is set to 1.

date-time

ISO8601 timestamp used to specify when the customer's contract expires. If the "Contract Expiration" setting is enabled, alerts will be thrown on the POS when the current date passes this timestamp.

uri
required

URI of the User API object that created this resource.

date-time

ISO8601 timestamp of the time the resource was created.

customer_groups
array of uris

List of CustomerGroup API objects that this customer is linked to.

customer_groups
boolean

Flag. If set to True, the Customer resource is deactivated and becomes inaccessible via API. Irreversible.

float

Decimal field. No longer in use anywhere in the code.

string

Field used to define the e-mail address of the user. Can be used as a primary identifier via an internal system setting.

boolean

Flag. If set to True, the customer consents to marketing e-mails. Only applicable if customer privacy settings are enabled via an internal system setting.

string

Localized date time field. Unused in the system.

string
length ≤ 255

Expensify account login token. No longer used.

string
length ≤ 200

Field used to specify the customer's first name. Used for customer lookup on the POS.

integer
Defaults to 0

Customer gender.

gift_card_numbers
array of strings

List of gift card code numbers associated with this customer.

gift_card_numbers
boolean

Flag. If set to True, the customer is marked as a visitor. Part of the deprecated visitor tracking feature.

string
length ≤ 200

Field used to specify the customer's last name. Used for customer lookup on the POS.

string
length ≤ 200

Customer's vehicle license plate number. Not used for any tracking, but displayed on the POS.

string
length ≤ 255

Reference number for an external loyalty integration

string
length ≤ 255

Reference ID for an external loyalty integration.

string

Free-text field used to add notes about the customer. Displayed on the POS.

boolean
Defaults to true

Flag. If set to True, the customer e-mail address can be used. Only used as a reference field during CRM export, does not actually represent customer consent like the "email_opt_in" field does.

float

Decimal field. No longer in use anywhere in the code.

string
length ≤ 20

Field used to specify the customer's phone number. Can be used as a primary identifier via an internal system setting.

boolean

Flag. If set to True, the customer consents to marketing phone calls & messages. Only applicable if customer privacy settings are enabled via an internal system setting.

string
length ≤ 255

Customer PIN - used for customers to be able to log in to Revel Kiosk stations and redeem their rewards.

boolean

Flag. If set to True, the customer consents to marketing via physical mail. Only applicable if customer privacy settings are enabled via an internal system setting.

string
length ≤ 200

Free-form text field. Can be used to store any information and used as a primary identifier via an internal system setting.

reward_card_numbers
array of strings

List of loyalty card codes associated with this customer.

reward_card_numbers
integer

Placeholder field that stores the source of customer changes. Used temporarily to create a change log entry.

string

Deprecated - CustomerAddress resource used instead.

boolean
Defaults to false

Flag. Does not do anything in Revel, but can be used for third party integrations.

string
length ≤ 255

Free-form text field - visible in CRM export file, but does not do anything in Revel.

integer

Integer field - visible in CRM export file, but does not do anything in Revel.

string
length ≤ 255

Customer's title (e.g. Mr, Mrs, Ms, Dr)

integer
Defaults to 0

Deprecated - see CustomerHistory resource instead.

integer
Defaults to 0

Deprecated - see CustomerHistory resource instead.

boolean
Defaults to false

Flag. If set to True, the customer is regarded as a point of contact for his company. Changes the way the customer is presented on the POS.

integer
Defaults to 0
uri
required

URI of the User API object that last made changes to this resource.

date-time

ISO8601 timestamp of the last time the resource was updated.

uuid

Resource UUID - must be unique.

vehicles
array of objects

List of CustomerVehicle resources associated with this customer.

vehicles
date-time

ISO8601 timestamp of the last time the resource was updated by Revel. Separate from "updated_by" in case of API changes.

string

Deprecated - CustomerAddress resource used instead.

Responses

301

Invalid request URL - make sure that the URL ends with a trailing slash.

400

Invalid input - please run the request body through a JSON validator.

401

Authentication error - make sure the API key & secret is valid, active and provided in the "API-AUTHENTICATION" header.

404

Customer not found

445

Message: Integrity Error - an invalid value was provided for one of the fields.

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json