Skip to content

API reference

Create a disabled Shopify Sheet schedule

POST
/v1/shopify-sheet/schedules

Requires sync:write. Creates a schedule, disabled, at revision 1, for one Shopify shop, { connectionId, shopGid }, which must be a selected, active Shopify shop of the workspace’s own selection, whose connection is not stopped (shop_unavailable otherwise). A shop has at most one Daily sales schedule: a second schedule for the same shop is refused with schedule_conflict, and moving the Sheet is a change of the existing schedule’s destination. The window is 1 to 90 days, counted in the shop’s own days. The destination must be active, must hold its grant and must not be bound to a GA4, Google Ads, Search Console or custom-dataset Sheet destination. The schedule plans an export only once enabled (nothing is extracted by this route). An enabled schedule writes nothing to the Sheet while Shopify data is not served to the workspace’s API reads; its status then reports serving_disabled.

Exactly these fields; the workspace comes from the current API key. No timezone, token, spreadsheet ID or due time is accepted.

object
destinationId
required
string
/^[A-Za-z0-9_-]{1,128}$/
windowDays
required
integer
>= 1 <= 90
minIntervalMinutes
required
integer
>= 5 <= 44640
shop
required

One Shopify shop, a live selection of the workspace. A shop has at most one Daily sales schedule.

object
connectionId
required
string
/^[A-Za-z0-9_-]{1,128}$/
shopGid
required

The shop’s Shopify GID (gid://shopify/Shop/ and its number), as the shop was selected on the connection.

string
/^gid://shopify/Shop/[0-9]{1,30}$/

Create a disabled Shopify Sheet schedule.

object
scheduleId
required
string
/^[A-Za-z0-9_-]{1,128}$/
enabled
required
boolean
destinationId
required
string
/^[A-Za-z0-9_-]{1,128}$/
windowDays
required
integer
>= 1 <= 90
minIntervalMinutes
required
integer
>= 5 <= 44640
shop
required

One Shopify shop, a live selection of the workspace. A shop has at most one Daily sales schedule.

object
connectionId
required
string
/^[A-Za-z0-9_-]{1,128}$/
shopGid
required

The shop’s Shopify GID (gid://shopify/Shop/ and its number), as the shop was selected on the connection.

string
/^gid://shopify/Shop/[0-9]{1,30}$/
revision
required
integer
Allowed value: 1

invalid_request, invalid_json, invalid_schedule.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable

unauthorized.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed value: unauthorized
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
WWW-Authenticate
required
string
Allowed value: Bearer

forbidden, destination_permission_required, workspace_paused (the workspace is paused), subscription_lapsed (the paid term has ended).

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: forbidden destination_permission_required schedule_inactive workspace_paused subscription_lapsed
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable

destination_not_found, shop_unavailable.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: destination_not_found shop_unavailable schedule_not_found export_not_found not_found
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable

method_not_allowed.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed value: method_not_allowed
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable
Allow
required
string
Allowed value: POST

destination_conflict, destination_unavailable, schedule_conflict.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed destination_unavailable schedule_conflict redrive_conflict
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable

request_too_large.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed value: request_too_large
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable

unsupported_media_type, unsupported_encoding.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: unsupported_media_type unsupported_encoding
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable

rate_limited — the key’s or its workspace’s per-plan request allowance for this route’s class is used up. It is answered after authentication, on every API-key operation in this document and on MCP, and never on /health. A download link is limited the same way, after its lookup, by the key that issued it and the export’s workspace. Retry-After is the window in seconds and RateLimit-Limit is the limit of the bucket that refused. No remaining count is returned. The limits themselves are not published here.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: rate_limited
Retry-After
required
string
/^[1-9][0-9]*$/
RateLimit-Limit
required
string
/^[1-9][0-9]*$/

automation_unavailable.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule shop_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found shop_unavailable method_not_allowed destination_conflict destination_unavailable schedule_conflict request_too_large unsupported_media_type unsupported_encoding automation_unavailable