Update order data defaults for the signed-in user's merchant
PUT
/api/merchants/self/order-data-defaults
deprecated
Requires: Merchants.SelfServiceSettings.Manage, merchant scope.
Resolves the merchant from the signed-in user's context, which is established at interactive sign-in. A credential that carries no merchant context, such as an API key, receives `400 Merchants:NoCurrentMerchant` even when it holds the required scope and permission. API-key callers write the same values through `PUT /api/merchants/{id}` with `processing.orderDataDefaults` set, which requires the `Merchants.Merchants.Update` permission. The built-in Merchant role does not hold it, so a key owned by a merchant account has no API path to this setting; a reseller-owned or administrator-owned key does.
Signed in, you can send this request to your own sandbox merchant from the console and read the answer. Sign in to try it.
Example request
Every block below sends the same request. Replace {{BASE_URL}} with the address of the API you are calling and {{API_KEY}} with your own key.
The request body is a OrderDataDefaultSettingsDto. See the Request body section below for its fields.
Parameters
Request body
application/json
, required
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings
required |
OrderDataDefaultSettings OrderDataDefaultSettings | The order data default settings values.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
Fields of OrderDataDefaultSettings:
This body has no documented fields. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
concurrencyStamp
required |
string | Concurrency stamp for optimistic concurrency control.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
isFeatureEnabled
required |
boolean | Whether the `AllowOrderDataDefaultsConfig` feature is enabled for this merchant.
Read-only: set by the server, ignored on update.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
virtualTerminalFields
required |
VirtualTerminalFields VirtualTerminalFields | The merchant's Virtual Terminal field configuration at the time of load.
Used by the UI to enforce cross-field constraints (e.g. a default tax rate
requires `taxAmount` to be enabled).
Read-only: set by the server, ignored on update.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
Fields of VirtualTerminalFields:
This body has no documented fields. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
This request body has no documented fields.
Responses
Errors
A failed request returns the platform error envelope. The
error reference lists every value
error.code can carry and shows the four response shapes.
Authentication
ApiKeywith scopes