STOQ - Developer Documentation
  • Getting Your STOQ API Key
  • Back in Stock API
    • List and filter Intents
    • Get a specific Intent
    • Notify a single Intent
    • Notify multiple intents in bulk
  • JavaScript API
  • Preorder Metafields
    • Shop Level Metafields
    • Product Variant Level Metafields
Powered by GitBook
On this page
Export as PDF
  1. Back in Stock API

Notify multiple intents in bulk

PreviousNotify a single IntentNextJavaScript API

Last updated 26 days ago

Notify multiple intents in bulk

post
Authorizations
Body
intent_idsstring[]Optional

Array of intent IDs

allow_resendbooleanOptional

Allow resending notifications

Responses
200
All notifications sent successfully
application/json
207
Partial success (some notifications failed)
application/json
400
Bad request
401
Unauthorized
post
POST /api/v1/external/intents/bulk_notify_intent HTTP/1.1
Host: app.stoqapp.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43

{
  "intent_ids": [
    "text"
  ],
  "allow_resend": true
}
{
  "success": [
    "text"
  ],
  "failed": [
    {
      "intent_id": "text",
      "error": "text"
    }
  ]
}