Update order extra field

PUT https://app.ecwid.com/api/v3/{storeId}/orders/{orderId}/extraFields/{extraFieldId}

Request and response example

Request:

PUT /api/v3/1003/orders/JJ5HH/extraFields/tips HTTP/1.1
Authorization: Bearer secret_token
Host: app.ecwid.com
Content-Type: application/json
Cache-Control: no-cache

{
    "value": "4%",
    "showInInvoice": true,
    "showInNotifications": false
}

Response:

{
    "updateCount": 1
}

Required access scopes

Your app must have the following access scopes to make this request: update_orders

Path params

All path params are required.

Param
Type
Description

storeId

number

Ecwid store ID.

orderId

string

Order ID. Can contain prefixes and suffixes, for example: EG4H2,J77J8,SALE-G01ZG

extraFieldId

string

ID of the extra field.

Headers

The Authorization header is required.

Header
Format
Description

Authorization

Bearer secret_ab***cd

Access token of the application.

Request JSON

A JSON object with the following fields:

Field
Type
Description

value

string

Value for the order extra field.

title

string

Name visible at the checkout above the extra field.

orderDetailsDisplaySection

string

Defines where on the order details page the extra field is shown to the store owner. One of:

shipping_info - Order shipping details.

billing_info - Order payment details.

customer_info - Details about the customer.

order_comments - Order comments left by the customer.

orderBy

string

Number that defines the extra field position in Ecwid admin. The smaller the number, the higher the position is. Starts with "0" and iterates by 1.

showInNotifications

boolean

Defines if extra field should be visible in order emails sent to the customer. Disabled by default (false). The orderDetailsDisplaySection value defines where the extra field will appear.

showInInvoice

boolean

Defines if the extra field should be visible in order tax invoices.

Response JSON

A JSON object with the following fields:

Field
Type
Description

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?