Update Membership
PATCH /memberships/:membershipId
You can update the following fields:
| Property | Type | Description |
|---|---|---|
autoRenew | boolean | Whether the membership renews automatically |
validFrom | string (YYYY-MM-DD) | Date for when the membership starts |
validTo | string (YYYY-MM-DD) | Date for when the membership expires. Including the date |
payerId | string (UUIDv4) or null | The customer who paid for the membership. Set or change it with the customer's id; null removes the payer. The membership is then listed in that customer's paidMemberships instead of the previous payer's |
The payer must be a customer of your organization, not deleted, in the same mode (live or test) as your key. Otherwise the request fails with 400 and PAYER_NOT_FOUND. A payerId that is neither a string nor null fails with PAYER_ID_NOT_STRING. Other fields fail with FIELD_NOT_ALLOWED.
The response is the updated Membership, with changeLog.