Complete pairing and provision store credentials
Called by the store plugin (HMAC auth) after the merchant installs the plugin and the admin has triggered pairing from the console. The plugin supplies its one-time pairing code plus platform-specific store API credentials scoped to Sarvex’s needs. Sarvex validates the credentials, provisions signing keys, encrypts and persists the credentials server-side, and marks the connector healthy.
The store_credentials payload is platform-specific and optional in the wire
envelope (a deployment where credentials are provisioned out-of-band may omit it),
but live checkout and write-back require credentials to be present.
Credential boundary: store_credentials carries integration credentials
(REST API keys, webhook secrets) — not payment credentials. Payment credentials
are never handled here; see the payment-credential boundary invariant.
/connectors/pairing/completeX-Sarvex-SignatureAPI key · headerrequiredHMAC-SHA256 signature over the raw request body plus the X-Sarvex-Timestamp
and X-Sarvex-Sequence headers, keyed by the per-connector signing secret
issued at pairing. Used only by the store plugin for /connector/*. Replays
(seen sequence) are rejected with 409.
application/jsonconnector_idstringrequiredThe connector ID returned by POST /connectors at begin-pairing.
pairing_codestringrequiredOne-time pairing code issued to the console operator.
store_credentialsstore_credentials_woocommerce | store_credentials_magentoPlatform-specific store API credentials. The shape is discriminated by the platform recorded on the connector. Required for live checkout and write-back; may be omitted for profile-only deployments.
Show propertiesHide properties
store_base_urlstring<uri>requiredPublic storefront URL (e.g. https://mystore.com).
consumer_keystringrequiredWooCommerce REST API v3 OAuth consumer key.
consumer_secretstringrequiredWooCommerce REST API v3 OAuth consumer secret.
webhook_secretstringrequiredWebhook signature verification key.
store_currencystringISO 4217 currency code (default USD).
base_urlstring<uri>requiredMagento instance base URL (e.g. https://mystore.magentosite.cloud).
admin_userstringrequiredMagento admin API username.
admin_passwordstringrequiredMagento admin API password.
store_codestringrequiredMagento store code (e.g. default).
store_currencystringrequiredISO 4217 currency code the store operates in.
webhook_secretstringrequiredWebhook signature verification secret.
Pairing completed; connector is healthy.
connector_idstringstore_idstringstatusstringhealthyRequest body failed validation.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | nullMissing or invalid credentials.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | nullInvalid or expired pairing code, or credential validation failed.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | null