Update customer by customerId
Authorization
bearerAuth In: header
Path Parameters
Request Body
application/json
The system will randomly generate a fake email if not provided
emailId of the customer in external system
Role of the customer
"customer""customer" | "employee" | "tester" | "untracked" | "unknown"Customer priority. default to 0, which means any regular customer. customers with higher priority will have their shopping sessions prioritized during processing, the lower priority is opposite.
0-10 <= value <= 10This object can contain custom metadata information
nullNew password that will be set for the user
password8 <= length <= 255Current password of the user
password8 <= length <= 255If true, the customer cannot enter the store
Card/payment provider, deprecated, use card.provider instead
"NONE""NONE" | "STRIPE" | "PAYTER" | "ADYEN" | "FREEDOM_PAY" | "GENERIC"Card token to charge customer, pass null to delete the existing payment instrument, deprecated, use card.cardToken instead
Response Body
application/json
application/json
curl -X PATCH "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/customers/0" \ -H "Content-Type: application/json" \ -d '{}'{
"id": 0,
"externalId": "string",
"role": "customer",
"metadata": {
"arbitraryKey": "arbitraryValue"
},
"priority": 0,
"email": "user@example.com",
"firstName": "string",
"lastName": "string",
"phone": "string"
}{
"message": "Invalid request body",
"type": "E_INVALID_BODY",
"errors": [
{
"error": "\"email\" is required",
"rule": "any.required",
"field": "\"email\""
}
]
}How is this guide?
Notifies Register frontend to start a flow POST
Notifies Register frontend to start a flow of registering new customer with specified token this endpoint has been deprecated use api/admin/v2/stores/{storeId}/check-in/{checkInDeviceId}/remote-register instead
Set a card token for a customer PATCH
Next Page