Menu

apiConfirmBatch

MutationKey required

Shop API: applies a held batch as submitted, breaker bypassed. Confirming twice replays the first result.

Arguments

NameTypeDescription
batchIdString!required

Returns

ApiBatchResultView!

Example

GraphQL
mutation ApiConfirmBatch($batchId: String!) {
  apiConfirmBatch(batchId: $batchId) {
    applied
    dryRun
    failed
    held
    items {
      error
      offerId
      ok
      skipReason
      skipped
      sku
    }
    pendingBatchId
    reason
    replayed
  }
}
curl
curl -sS https://api.wamia.tn/connect/graphql \
  -H 'content-type: application/json' \
  -H 'x-api-key: wamia_…' \
  -H 'user-agent: my-integration/1.0.0 (+https://shop.example.tn)' \
  -H 'wamia-idempotency-key: 6f0e1a2b-…' \
  --data '{"query":"mutation ApiConfirmBatch($batchId: String!) { apiConfirmBatch(batchId: $batchId) { applied dryRun failed held items { error offerId ok skipReason skipped sku } pendingBatchId reason replayed } }"}'