API reference · Store
Set vacation mode
/meTurn vacation mode on or off for the seller. Vacation mode hides the seller's listings from browse.
Example
These examples send requests to the sandbox.
curl --request PATCH \
--url 'https://api-sandbox.snapcaster.ca/api/v1/marketplace/me' \
--header "Authorization: Bearer $MARKETPLACE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"vacation": true
}'{
"success": true,
"data": {
"sellerId": 0,
"sellerCode": "string",
"storeName": "string",
"currency": "string",
"region": "string",
"subscription": "orders",
"active": true,
"vacation": true,
"counts": {
"total": 0,
"matched": 0,
"unmatched": 0,
"browsable": 0
},
"readiness": {
"browseEligible": true,
"effectiveTermsVersion": "string",
"incompletePrerequisites": [
{
"code": "SELLER_ACTIVE",
"message": "string",
"action": {
"type": "string",
"method": "GET",
"href": "string"
}
}
]
}
}
}Endpoint
| Environment | URL |
|---|---|
| Sandbox | https://api-sandbox.snapcaster.ca/api/v1/marketplace |
| Production | https://api.snapcaster.ca/api/v1/marketplace |
marketplaceApiKey-http bearer. Send the seller's marketplace API key asAuthorization: Bearer mp_{sellerCode}_{hex}. Themp_{sellerCode}_prefix identifies the seller; the trailing hex is the secret. The seller generates the key and supplies it to your platform.
Request
Headers
X-Snapcaster-Api-VersionstringOverride the platform pin for this request only. Webhook versions and the platform pin do not change.
Constraints: allowed values:
2026-10Example2026-10
This operation takes no Idempotency-Key. Retries says how to resend it safely.
Request body
vacationboolean requiredWhether the seller has temporarily hidden all listings from browse.
Response
200
Updated store status.
Response body: Store
successboolean requiredWhether the operation completed as requested.
Constraints: allowed values:
truedataStorerequiredStatus The operation or event payload.
Show child fieldsHide child fields
data.integer requiredsellerId The seller's numeric id, the
data.seller_idon every webhook event for this seller. Store it withsellerCodewhen you validate a key, so you can route events before the first sale.data.string requiredsellerCode data.string requiredstoreName data.string requiredcurrency The ISO 4217 currency code used for monetary amounts.
data.string requiredregion The market region whose rules and currency apply.
data.string or null requiredsubscription Your platform's subscription, the event families it receives:
orders,inventoryorboth. Snapcaster sets it during onboarding. The order operations answer aninventorysubscription with403 SUBSCRIPTION_EXCLUDES_ORDERS.nullwhen the seller is linked to no platform.Constraints: allowed values:
orders,inventory,both,nulldata.boolean requiredactive False while the seller is suspended.
data.boolean requiredvacation Whether the seller has temporarily hidden all listings from browse.
data.object requiredcounts Counts for the seller's listings.
Show child fieldsHide child fields
data.integer requiredcounts. total The total number of records.
data.integer requiredcounts. matched The number of listings matched to the canonical catalog.
data.integer requiredcounts. unmatched The number of listings not yet matched to the canonical catalog.
data.integer requiredcounts. browsable Zero while suspended or on vacation.
data.object requiredreadiness The seller’s current browse-readiness assessment.
Show child fieldsHide child fields
data.boolean requiredreadiness. browseEligible See Browse readiness in Core concepts.
data.string requiredreadiness. effectiveTermsVersion data.array of object requiredreadiness. incompletePrerequisites See Browse readiness in Core concepts.
Show child fieldsHide child fields
data.string requiredreadiness. incompletePrerequisites[]. code The stable machine-readable code for this result.
Constraints: allowed values:
SELLER_ACTIVE,VACATION_DISABLED,SHIPPING_OPTION_CONFIGURED,CONNECTED_ACCOUNT_CANADIAN,PAYOUTS_READY,CURRENT_SELLER_TERMS_ACCEPTED,TAX_PROFILE_COMPLETE,CANADIAN_SHIPMENT_ORIGIN_CONFIRMED,AUTHENTICATOR_ENROLLED,AUTHENTICATOR_RECOVERY_VERIFIED,OPERATOR_REVIEW_APPROVED,SHOP_LINK_ACTIVE,BILLING_TERMS_ACCEPTED,BILLING_AGENT_ELECTION_REQUIRED,REPORTING_IDENTITY_REQUIREDdata.string requiredreadiness. incompletePrerequisites[]. message A human-readable explanation of the result.
data.object requiredreadiness. incompletePrerequisites[]. action The request that closes the prerequisite.
VACATION_DISABLED's action isPATCH /api/v1/marketplace/me, which the marketplace API key can send with{"vacation": false}. Every other/api/action is an account API request made with the seller's Snapcaster login, and amailto:action is an email to Snapcaster.Show child fieldsHide child fields
data.string requiredreadiness. incompletePrerequisites[]. action. type data.string requiredreadiness. incompletePrerequisites[]. action. method Constraints: allowed values:
GET,POST,PATCH,PUTdata.string requiredreadiness. incompletePrerequisites[]. action. href The relative API path for the corrective action.
data.objectreadiness. incompletePrerequisites[]. review Present on the
OPERATOR_REVIEW_APPROVEDentry only: where the seller readiness review stands. Never carries a reason.Show child fieldsHide child fields
data.string requiredreadiness. incompletePrerequisites[]. review. status Constraints: allowed values:
incomplete,follow_up_required,rejected
Errors
Errors return a Marketplace body, except HTTP 413, 500 (Api). Error codes explains both error bodies and lists every code.
400
INVALID_REQUESTUNSUPPORTED_API_VERSIONThe request failed validation (
INVALID_REQUEST). Unknown or retired API-version override (UNSUPPORTED_API_VERSION).Do this: Correct the fields named in the error details, then retry the request. For UNSUPPORTED_API_VERSION, choose a supported version from the API versioning guide.
401
UNAUTHORIZEDMissing or invalid marketplace API key (
UNAUTHORIZED).Do this: Send the marketplace API key for this seller as a Bearer token, then retry.
413
PAYLOAD_TOO_LARGEThe body is larger than this route accepts (
PAYLOAD_TOO_LARGE).Do this: Send a smaller body and retry.
500
INTERNAL_ERRORAn unexpected failure (
INTERNAL_ERROR).Do this: Retry with bounded retries and jitter. If the failure persists, contact Snapcaster with the X-Correlation-ID response header.