curl --request PUT \
--url https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials \
--header 'Content-Type: application/json' \
--header 'X-Ignite-Merchant-Token: <api-key>' \
--data '
{
"credentials": {
"REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE"
}
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials"
payload = { "credentials": { "REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE" } }
headers = {
"X-Ignite-Merchant-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Ignite-Merchant-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({credentials: {REPLACE_WITH_CREDENTIAL_NAME: 'REPLACE_WITH_VALID_VALUE'}})
};
fetch('https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials';
const options = {
method: 'PUT',
headers: {'X-Ignite-Merchant-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({credentials: {REPLACE_WITH_CREDENTIAL_NAME: 'REPLACE_WITH_VALID_VALUE'}})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials"
payload := strings.NewReader("{\n \"credentials\": {\n \"REPLACE_WITH_CREDENTIAL_NAME\": \"REPLACE_WITH_VALID_VALUE\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Ignite-Merchant-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {
"actual_currency": "<string>",
"expected_currency": "<string>",
"missing_store_scopes": [
"<string>"
]
},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Replace merchant connection credentials
Replace the store credentials of an existing connection after a rotation or refusal. The new credentials must reach the same store; the connection keeps its ID, catalog and orders and resumes syncing. If the connection changed while the store was checked, 409 connection_changed is returned: reload and retry. Authenticate with the X-Ignite-Merchant-Token header.
Raw HTTP template
Replace path, credential and schema placeholders using valid resources. The planned host requires activation; use your assigned API URL meanwhile. Preserve a write’s original idempotency key when its contract supports retry. If sending raw HTTP/1.1, use CRLF for request and header lines. Set Content-Length to the byte length of the final encoded body after replacing placeholders, including multipart delimiters and line endings.
PUT /v1/merchant/connections/{connection_id}/credentials HTTP/1.1
Host: sandbox.ignite-checkout.ai
X-Ignite-Merchant-Token: <MerchantToken-credential>
Content-Type: application/json
Content-Length: <body-length-in-bytes>
{
"credentials": {
"REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE"
}
}
HTTP/2 header equivalent
Logical headers over negotiated HTTPS HTTP/2, not a wire-format message. The endpoint, JSON and idempotency rules are unchanged. See HTTP and transport.
:method: PUT
:scheme: https
:authority: sandbox.ignite-checkout.ai
:path: /v1/merchant/connections/{connection_id}/credentials
x-ignite-merchant-token: <MerchantToken-credential>
content-type: application/json
{
"credentials": {
"REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE"
}
}
curl --request PUT \
--url https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials \
--header 'Content-Type: application/json' \
--header 'X-Ignite-Merchant-Token: <api-key>' \
--data '
{
"credentials": {
"REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE"
}
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials"
payload = { "credentials": { "REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE" } }
headers = {
"X-Ignite-Merchant-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Ignite-Merchant-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({credentials: {REPLACE_WITH_CREDENTIAL_NAME: 'REPLACE_WITH_VALID_VALUE'}})
};
fetch('https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials';
const options = {
method: 'PUT',
headers: {'X-Ignite-Merchant-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({credentials: {REPLACE_WITH_CREDENTIAL_NAME: 'REPLACE_WITH_VALID_VALUE'}})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/merchant/connections/{connection_id}/credentials"
payload := strings.NewReader("{\n \"credentials\": {\n \"REPLACE_WITH_CREDENTIAL_NAME\": \"REPLACE_WITH_VALID_VALUE\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Ignite-Merchant-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {
"actual_currency": "<string>",
"expected_currency": "<string>",
"missing_store_scopes": [
"<string>"
]
},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Body
Response
Successful Response