Update customer extra field
Last updated
Was this helpful?
PUT https://app.ecwid.com/api/v3/{storeId}/store_extrafields/customers/{extrafield_key}
Request:
PUT /api/v3/1003/store_extrafields/customers/6r0fUGw HTTP/1.1
Authorization: Bearer secret_token
Host: app.ecwid.com
Content-Type: application/json
Cache-Control: no-cache
{
"title": "Personal card ID",
"shownOnOrderDetails": true
}Response:
{
"updateCount": 1
}Your app must have the following access scopes to make this request: update_customers_extrafields
All path params are required.
storeId
number
Ecwid store ID.
extrafield_key
string
Internal key (identificator) of the customer extra field.
The Authorization header is required.
Authorization
Bearer secret_ab***cd
Access token of the application.
A JSON object with the following fields:
title
string
Extra field visible at the checkout and in Ecwid admin.
type
string
Extra field type that defines its functionality.
Two values are supported for customer extra fields:
text - Single-line text input. Supports placeholders and pre-defined values (default).
datetime - Customizable date and time picker in the form of a calendar widget on the checkout.
shownOnOrderDetails
boolean
Defines if the extra field should be visible on the order details page in Ecwid admin.
A JSON object with the following fields:
updateCount
number
The number of updated items that defines if the request was successful. One of:
1 if the item was updated,
0 if the item was not updated
Last updated
Was this helpful?
Was this helpful?
