Bulk Resend EDI Documents
POST/api/spscommerce/:integrationInstance/documents/bulk-resend
Send several outbound documents that failed to send again. A document already sent is skipped: resending a sent warehouse order can make the 3PL ship twice, so use Resend EDI Document for those, one at a time. Documents that can't be resent are skipped and counted.
integrations:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Targets: send ids (up to 1,000 selected rows), or scope: "all" to act on every row the list's filters match. With scope: "all", pass the list's filters (filter[...], filter_groups) on the query string exactly as on the list endpoint. One request may change up to 1,000 rows; more answers 422 and asks you to narrow the filters. Ids that belong to another connection are ignored.
Authentication: Requires Bearer token and the integrations.update permission.
Request
Responses
- 202
- 401
- 403
- 404
- 422
- 429
Accepted
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.