Apply a bulk edit

​

Starts the change a preview described. The edit runs in the background: this call returns a job right away, and you poll GET /v1/inventory/bulk/jobs/{jobId} until status is completed.

The lines changed are the lines the selection matched when the job started, not the lines it matches later. A line sold, removed or changed in the meantime is skipped and counted in counts.skipped, not failed. If more lines match when the job starts than the preview counted, nothing is changed and the call returns PLAN_STALE. A fewer-lines result is processed and the difference is counted as skipped.

Applying the same planId again returns the same job. The edit cannot be undone, except by running another edit. While it runs, other changes to your inventory are refused with INVENTORY_BUSY.

Send an Idempotency-Key header to make retries safe: the same key returns the same response for 24 hours.

Requires the inventory:write scope.

Body

required
application/json
  • The planId from POST /v1/inventory/bulk/edit/preview.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/inventory/bulk/edit/apply
curl https://public-api.cardnexus.com/v1/inventory/bulk/edit/apply \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "planId": ""
}'
{
  "job": {
    "id": "6717b0c4e2d1c0b9a8f7e6d5",
    "kind": "edit",
    "status": "pending",
    "format": null,
    "mode": null,
    "counts": {
      "total": 1840,
      "succeeded": 0,
      "failed": 0,
      "skipped": 0
    },
    "progress": 0,
    "errorMessage": null,
    "downloadUrl": null,
    "errorReportUrl": null,
    "expiresAt": null,
    "createdAt": "2026-10-22T09:15:40.000Z"
  }
}