Controls how the update is applied:
- PATCH - Only update specified fields, retaining existing values for unspecified fields
- REPLACE - Replace only the specified fields at the top level of the payment link object. Unspecified top-level fields (like options, state) are preserved. When updating nested objects like options or state, the entire nested object is replaced with the provided values. (default)
Example behavior:
- Original payment link has:
{webhook_url: "old-url", options: {currency: "USD", amount: "10.00"}}
- Update with PATCH mode and
{webhook_url: "new-url"}: Results in {webhook_url: "new-url", options: {currency: "USD", amount: "10.00"}}
- Update with REPLACE mode and
{webhook_url: "new-url"}: Results in {webhook_url: "new-url", options: {currency: "USD", amount: "10.00"}}
- Update with REPLACE mode and
{options: {currency: "EUR"}}: Results in {webhook_url: "old-url", options: {currency: "EUR"}} (note that amount is removed)