Skip to content

feat: support requestid for idempotent write ops#564

Open
vdor wants to merge 1 commit intointuit:masterfrom
vdor:feature/requestid
Open

feat: support requestid for idempotent write ops#564
vdor wants to merge 1 commit intointuit:masterfrom
vdor:feature/requestid

Conversation

@vdor
Copy link
Copy Markdown

@vdor vdor commented Sep 26, 2025

What

  • DataService::setRequestId($id)
  • Appends ?requestid=... to write URIs
  • Append only for Add, Update, Void, SendEmail
  • After each write, requestid is reset (opt-in per call, prevents accidental reuse)

Why

Adds official idempotency support per Intuit docs:

Usage

use QuickBooksOnline\API\DataService\DataService;

$dataService = DataService::Configure($ops);
$result = $dataService->setRequestId('uuid-1234')->Add($invoice);

Closes #563

@vdor vdor force-pushed the feature/requestid branch from f2fe146 to cff16de Compare October 28, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for requestid query parameter

1 participant