Undo an approved payment-method correction
Applies an unchanged, explicitly approved undo preview for one exact payment source.
/v1/restaurants/{restaurantId}/payment-corrections/undoApplies an unchanged, explicitly approved undo preview for one exact payment source. Use the same apply contract with action=undo, confirmed=true, the unchanged preview fingerprint, expected revision, expiry, reason, and a UUID idempotency key. Undo writes a reversal in the immutable correction ledger and rechecks the resulting report; it preserves unrelated corrections for the same day. Organization-boundary tokens also require fiest.organization.read; when a token covers several organizations, organization_id must identify an exact organization returned by listOrganizations.
Quick request
curl -X POST "https://example.com/v1/restaurants/11111111-1111-4111-8111-111111111111/payment-corrections/undo?organization_id=33333333-3333-4333-8333-333333333333" \ -H "Authorization: Bearer $FIEST_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "businessDate": "2026-07-15", "sourceKind": "order", "sourceRecordId": "fiest-50b6d34f-bc6e-4248-b3d6-839b3dda31a1", "action": "undo", "reason": "The receipt was settled in cash at the counter.", "expectedRevisionId": "11111111-1111-4111-8111-111111111111", "previewFingerprint": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "expiresAt": "2026-07-15T13:00:00.000Z", "confirmed": true, "idempotencyKey": "55555555-5555-4555-8555-555555555555" }'{ "data": { "restaurantId": "11111111-1111-4111-8111-111111111111", "batchId": "22222222-2222-4222-8222-222222222222", "revisionId": "33333333-3333-4333-8333-333333333333", "replayed": false, "report": { "refundReporting": { "policy": "refund-event-date/v1", "legacyTiming": false, "incompleteEvidence": false }, "restaurantId": "11111111-1111-4111-8111-111111111111", "scope": "day", "period": { "startDate": "2026-07-15", "endDate": "2026-07-15", "timeZone": "Europe/Helsinki", "dayStartHour": 4 }, "currency": "EUR", "rawRows": [ { "key": "card", "label": "Card", "transactionCount": 459, "grossMinor": 2795000, "netMinor": 2390000, "vatMinor": 405000, "grossByRateMinor": null, "vatByRateMinor": null } ], "adjustedRows": null, "rawTotalMinor": 2795000, "adjustedTotalMinor": null, "status": "review_required", "warnings": [ { "code": "correction_ledger_unavailable", "message": "Raw values are available; adjusted values need review.", "businessDate": null, "correctionId": null } ], "days": [], "corrections": [], "sources": [], "appliedCorrectionIds": [], "rawSourceBasis": "services_accounting", "calculationVersion": "services-accounting/payment-report/1", "schemaVersion": null, "currentSourceFingerprint": null, "readOnly": true } }}Authorization
fiestOAuth fiest.restaurant.read, fiest.accounting.read, fiest.analytics.read, fiest.accounting.corrections.writeOAuth 2.1 authorization code with PKCE. Partner clients and redirect URIs must be approved by Fiest before use.
In: header
Scope: fiest.restaurant.read, fiest.accounting.read, fiest.analytics.read, fiest.accounting.corrections.write
Path Parameters
A restaurant identifier returned by the authorized restaurant list.
uuidQuery Parameters
An organizationId returned by GET /v1/organizations. Required for restaurant-scoped calls when a Management portfolio authorization covers more than one organization; omitted for a single-restaurant authorization and optional for a one-organization grant.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json