3-D Secure: creates or replaces the merchant's binding for one provider.
PUT
/api/merchants/{id}/three-d-secure-bindings/{providerType}
deprecated
Requires: Merchants.Merchants.Update, merchant scope.
Example body: ``` { "isEnabled": true, "policyMode": "Attempt", "apiKey": "…", "jwtSecret": "…", "endpointEnvironment": "Sandbox", "requestorUrl": "https://checkout.example.com", "challengeEnabled": true, "protocolVersion": "2.2.0" } ``` Omitting `jwtSecret` keeps the secret already stored, which is what a caller that read the binding first will naturally send, because reads never return it. Optionally send `If-Match: "<concurrencyStamp>"` for optimistic concurrency (409 on a stale stamp).
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 MerchantThreeDSBinding. See the Request body section below for its fields.
Parameters
| Name | In | Type | Description | ||||
|---|---|---|---|---|---|---|---|
id
required |
path | string (uuid) | The merchant id.
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.
| ||||
providerType
required |
path | ThreeDSProviderType ThreeDSProviderType | The provider to bind (authoritative; any provider on the body is ignored).
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.
| ||||
suppressNulls
required |
query | boolean | If true, omit properties with null 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.
|
Request body
application/json
, required
| Field | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
providerType
required |
ThreeDSProviderType ThreeDSProviderType | Which 3-D Secure provider this entry binds the merchant to. A null provider type is treated
as no binding at all rather than as `Fake`, so an incompletely
boarded row cannot silently become a live selection.
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.
| ||||||
isEnabled
required |
boolean | Master enable flag for this provider on this merchant. When `false` or null, the binding
is not used even though the row exists.
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.
| ||||||
policyMode
required |
ThreeDSPolicyMode ThreeDSPolicyMode | How hard the merchant wants authentication applied. Null means the platform default, which
callers read as `Off`.
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.
| ||||||
apiKey
required |
string | The vendor API key. Not a secret in the sense the JWT secret is (it is sent as a request
header and appears as a JWT audience), so it round-trips on reads; it is still never logged.
Required: When IsEnabled is true.
nullablemax length 256
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.
| ||||||
jwtSecret
required |
string | The shared secret the request JWT is signed with.
<b>Stored encrypted.</b> It is stripped, not decrypted, on every read that leaves the server:
the admin UI and the API both see null here and re-send the secret only when the operator
changes it. Only the server-side call to the provider ever uses the plaintext.
nullablemax length 512
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.
| ||||||
jwtSecretConfigured
required |
boolean | Whether a JWT secret is stored for this binding, for the editor that is never allowed to see the
secret itself.
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.
| ||||||
endpointEnvironment
required |
ThreeDSEndpointEnvironment ThreeDSEndpointEnvironment | Which of the vendor's environments this binding points at. Null reads as
`Sandbox`.
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.
| ||||||
requestorUrl
required |
string | The merchant-facing origin the vendor validates authentication requests against: the HPP or
checkout origin the cardholder's browser is on. HTTPS only.
Conditional: When RequestorUrl is not empty.
Required: When IsEnabled is true.
nullablemax length 512
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.
| ||||||
challengeEnabled
required |
boolean | Whether the merchant permits the vendor to raise an interactive challenge. Null reads as not
enabled.
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.
| ||||||
protocolVersion
required |
string | The 3-D Secure protocol version to request, from
`SupportedProtocolVersions`. Null means the provider's own
default.
Conditional: When ProtocolVersion is not empty.
nullablemax length 16
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.
| ||||||
providerRegistrationId
required |
string (uuid) | Optional pointer at a vendor-side registration record for this merchant, for vendors that
board a merchant out of band and hand back an identifier. Nullable because most bindings
carry credentials and nothing else, and because a deleted registration should leave an
inspectable dangling reference rather than a hard failure.
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.
|
This request body has no documented fields.
Responses
200 OK
Body:
MerchantThreeDSBinding
MerchantThreeDSBinding
Each item has these fields.
| Field | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
providerType
required |
ThreeDSProviderType ThreeDSProviderType | Which 3-D Secure provider this entry binds the merchant to. A null provider type is treated
as no binding at all rather than as `Fake`, so an incompletely
boarded row cannot silently become a live selection.
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.
| ||||||
isEnabled
required |
boolean | Master enable flag for this provider on this merchant. When `false` or null, the binding
is not used even though the row exists.
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.
| ||||||
policyMode
required |
ThreeDSPolicyMode ThreeDSPolicyMode | How hard the merchant wants authentication applied. Null means the platform default, which
callers read as `Off`.
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.
| ||||||
apiKey
required |
string | The vendor API key. Not a secret in the sense the JWT secret is (it is sent as a request
header and appears as a JWT audience), so it round-trips on reads; it is still never logged.
Required: When IsEnabled is true.
nullablemax length 256
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.
| ||||||
jwtSecret
required |
string | The shared secret the request JWT is signed with.
<b>Stored encrypted.</b> It is stripped, not decrypted, on every read that leaves the server:
the admin UI and the API both see null here and re-send the secret only when the operator
changes it. Only the server-side call to the provider ever uses the plaintext.
nullablemax length 512
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.
| ||||||
jwtSecretConfigured
required |
boolean | Whether a JWT secret is stored for this binding, for the editor that is never allowed to see the
secret itself.
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.
| ||||||
endpointEnvironment
required |
ThreeDSEndpointEnvironment ThreeDSEndpointEnvironment | Which of the vendor's environments this binding points at. Null reads as
`Sandbox`.
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.
| ||||||
requestorUrl
required |
string | The merchant-facing origin the vendor validates authentication requests against: the HPP or
checkout origin the cardholder's browser is on. HTTPS only.
Conditional: When RequestorUrl is not empty.
Required: When IsEnabled is true.
nullablemax length 512
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.
| ||||||
challengeEnabled
required |
boolean | Whether the merchant permits the vendor to raise an interactive challenge. Null reads as not
enabled.
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.
| ||||||
protocolVersion
required |
string | The 3-D Secure protocol version to request, from
`SupportedProtocolVersions`. Null means the provider's own
default.
Conditional: When ProtocolVersion is not empty.
nullablemax length 16
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.
| ||||||
providerRegistrationId
required |
string (uuid) | Optional pointer at a vendor-side registration record for this merchant, for vendors that
board a merchant out of band and hand back an identifier. Nullable because most bindings
carry credentials and nothing else, and because a deleted registration should leave an
inspectable dangling reference rather than a hard failure.
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.
|
This response has no documented body fields.
403 Forbidden
Body:
RemoteServiceErrorResponse
RemoteServiceErrorResponse
Each item has these fields.
| Field | Type | Description |
|---|---|---|
error
required |
RemoteServiceErrorInfo RemoteServiceErrorInfo |
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.
|
This response has no documented body fields.
401 Unauthorized
Body:
RemoteServiceErrorResponse
RemoteServiceErrorResponse
Each item has these fields.
| Field | Type | Description |
|---|---|---|
error
required |
RemoteServiceErrorInfo RemoteServiceErrorInfo |
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.
|
This response has no documented body fields.
400 Bad Request
Body:
RemoteServiceErrorResponse
RemoteServiceErrorResponse
Each item has these fields.
| Field | Type | Description |
|---|---|---|
error
required |
RemoteServiceErrorInfo RemoteServiceErrorInfo |
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.
|
This response has no documented body fields.
404 Not Found
Body:
RemoteServiceErrorResponse
RemoteServiceErrorResponse
Each item has these fields.
| Field | Type | Description |
|---|---|---|
error
required |
RemoteServiceErrorInfo RemoteServiceErrorInfo |
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.
|
This response has no documented body fields.
501 Not Implemented
Body:
RemoteServiceErrorResponse
RemoteServiceErrorResponse
Each item has these fields.
| Field | Type | Description |
|---|---|---|
error
required |
RemoteServiceErrorInfo RemoteServiceErrorInfo |
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.
|
This response has no documented body fields.
500 Internal Server Error
Body:
RemoteServiceErrorResponse
RemoteServiceErrorResponse
Each item has these fields.
| Field | Type | Description |
|---|---|---|
error
required |
RemoteServiceErrorInfo RemoteServiceErrorInfo |
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.
|
This response has no documented body fields.
default The request failed. The body carries the standard error envelope: a machine-readable `error.code`, a human-readable `error.message`, and `error.validationErrors` when the failure was a validation rejection. The error reference lists the values `error.code` can take. The request failed. The body carries the standard error envelope: a machine-readable `error.code`, a human-readable `error.message`, and `error.validationErrors` when the failure was a validation rejection. The error reference lists the values `error.code` can take.
Body:
RemoteServiceErrorResponse
RemoteServiceErrorResponse
Each item has these fields.
| Field | Type | Description |
|---|---|---|
error
required |
RemoteServiceErrorInfo RemoteServiceErrorInfo |
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.
|
This response has no documented body fields.
429 The request was refused because a rate limit was exceeded, or because something a later retry can clear stopped it. A rate limit refusal carries an `application/problem+json` body: wait at least the interval `Retry-After` names before retrying, then back off. Limits are tuned per deployment, so read the allowance from the response headers rather than assuming a fixed ceiling. Any other refusal carries the standard error envelope as `application/json`, and its `error.code` names the cause.
Body:
RemoteServiceErrorResponse
RemoteServiceErrorResponse
Each item has these fields.
| Field | Type | Description |
|---|---|---|
error
required |
RemoteServiceErrorInfo RemoteServiceErrorInfo |
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.
|
This response has no documented body fields.
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.