Update a payment setting gift card
How to update an existing payment setting gift card via API
To update an existing payment setting gift card, send a PATCH request to the /api/2026-05/payment_setting_gift_cards/:id endpoint, where id is the ID of the resource that you want to update.
Here below the list of all the possible arguments that you can pass with the request body.
Request
PATCH https://yourdomain.commercelayer.io/api/2026-05/payment_setting_gift_cards/:id
Arguments
type
string
Required
id
string
Required
attributes.gateway_version
string
Optional
attributes.idempotency_window_mins
integer
Optional
attributes.auto_capture
boolean
Optional
attributes.auto_place
boolean
Optional
attributes.name
string
Optional
attributes._disable
boolean
Optional
attributes._enable
boolean
Optional
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
Example
The following request updates the payment setting gift card identified by the ID "XAyRWNUzyN":
On success, the API responds with a 200 OK status code, returning the updated resource object:
Last updated