Bulk create events
Changed onAccepts up to 1,000 events. external_id and shopify_customer_id must already match a profile. Items are validated per the event catalog. See Bulk requests for per-item results and retry behaviour.
Request
- Base URLhttps://api.pscrpt.com/v1
- URLhttps://api.pscrpt.com/v1/events/batch
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.pscrpt.com/oauth/authorizeToken URL: https://api.pscrpt.com/oauth/token scopes: events:write
Headers
Deduplicates retries for 24 hours: the same key returns the original response with Idempotency-Replayed: true; the same key with a different body returns 409 idempotency_key_reused.
Overrides the key's pinned API revision for this request.
Request body
Example request
{
"events": [
{
"identifier": {
"type": "email"
}
}
]
}Response
Per-item results in request order. Failed items carry a per-item error; successes carry the event reference.
Changes
- info
added the success response with the status
- info
- breaking
removed the required property
//from the response with the status - info
removed
subschema #1from the/response propertyallOflist for the response status - info
the response property
//became required for the status
- breaking