New required header parameter `idempotency_key` added
Existing callers do not send `idempotency_key` and will immediately fail request validation.
// Non-breaking parameter default const idempotency_key = req.query.idempotency_key ?? "default";
Edit or upload base and candidate YAML/JSON specifications side-by-side to evaluate breaking rules, SemVer impact, and compatibility patches in real time.
Catches removed response field, type change, and new required request parameter
1.4.0 → 2.0.0
6
Blocks merge until versioned or adapted
2/2
10 total contract changes audited
Existing callers do not send `idempotency_key` and will immediately fail request validation.
// Non-breaking parameter default const idempotency_key = req.query.idempotency_key ?? "default";
Property `amount_minor` changed type from `integer` to `string`, which breaks strict client deserializers and validation.
// Backward-compatible adapter for amount_minor const normalized = typeof payload?.amount_minor === "integer" ? coerceTo_string(payload.amount_minor) : payload.amount_minor;
Clients submitting `EUR` will now be rejected.
All existing clients omitting `billing_country` will immediately fail validation with HTTP 400/422.
// Non-breaking server fallback const billing_country = req.body.billing_country ?? DEFAULT_BILLING_COUNTRY;
Existing consumers reading `response.201.receipt_url` will receive `undefined` or crash during JSON decoding.
// Keep deprecated alias in serializer during migration window
return {
...newResponse,
receipt_url: deriveLegacy_receipt_url(newResponse), // @deprecated
};Clients expecting a non-null `integer` may throw null-pointer exceptions at runtime.
Strongly typed mobile/Java/Swift/Rust clients with exhaustive enum switches may fail to decode `refunded`.
Consumers should schedule migration before removal in a future major release.
Backwards-compatible additive field detected.
Backwards-compatible additive endpoint.