Skip to content

Check policy conflicts

API v2 is in public beta: endpoints and fields can change before general availability. See the changelog

GET/preorders/products/inventory_policy_conflicts

Costs 1 rate-limit point · Rate limits

Name the enabled out-of-stock offers that still sell these variants, before turning 'Continue selling' off on them.

shopify_variant_ids are up to 100 Shopify variant gids (repeat the param or comma-separate). 'Continue selling' is one value per variant, and an out-of-stock offer takes preorders only while it is on, so turning it off stops preorders in every offer listed. shared_variant_count is how many of the variants are in one; each offer's variant_count is how many of them it sells. Informational: the write applies anyway.

Also searched asinventory policy conflictswhich offers need continue sellinglinked offers warningwhat breaks if I turn off continue selling

Query parameters

  • shopify_variant_idsstring

    Comma-separated variants to check, up to 100, as gid://shopify/ProductVariant/<id>; repeating the parameter also works.

Returns

  • shared_variant_countinteger
    Example: 1
  • offersarray of objects
    Show 3 child attributesHide child attributes
    • idstring
      Example: string
    • internal_namestring
      Example: string
    • variant_countinteger
      Example: 1

Errors

422
invalid_params

One or more fields failed the action's schema.

422
validation_failed

The request failed validation.

Any request can also fail with auth_invalid (401) or rate_limited (429).

Every error has the same shape: see Errors and the list of error codes.

GET/preorders/products/inventory_policy_conflicts
curl "https://app.stoqapp.com/api/v2/external/preorders/products/inventory_policy_conflicts" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
{
  "shared_variant_count": 1,
  "offers": [
    {
      "id": "string",
      "internal_name": "string",
      "variant_count": 1
    }
  ]
}