How updates work
PATCH /v1/transaction_bundles/{id} is additive: items you do not include in the request remain in the bundle unchanged.
- To update an existing item: include its
idplus all required fields. Missing required fields may be cleared to zero/empty values. - To add a new item: omit
id. A new item is created and appended to the bundle. - To leave an item unchanged: do not include it in the request at all.
Always resend all required fields when updating an item, not just the fields you want to change.
Refund
For a refund (full or partial)-
Fetch the bundle to get the transaction
idand membership/donationid: -
PATCH with the reimbursed status,
reimbursed_amount, and the updatedamounton the linked memberships and donations:
GET /v1/transaction_statuses to find the id of the Reimbursed status for your group (kind: reimbursed).
If a product should deleted, patch the bundle then delete the products.
