PUT member_services/Membership/{code}

This method allows updates to memberships in the Centaman database. The request should include the unique linkfield of the membership in the URL and a membership object containing the modified fields as the body.

Requires: HTTPS, Basic Auth.

Return Codes:

OK - Membership updated successfully.

Not Found - The membership to update could not be found.

Bad Request - Supplied membership object is invalid.

Request Information

Parameters

NameDescriptionAdditional information
code
Linkfield of the membership to be updated.

Define this parameter in the request URI.

membership
Modified membership object.        
            Modifiable fields - 
              ExpiryDate
              JoinDate
              Cancelled
              Activated
            Other fields cannot be changed and will be ignored.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Linkfield": "sample string 1",
  "TypeName": "sample string 2",
  "Cancelled": true,
  "Activated": true,
  "UniquePackageId": "sample string 3",
  "MemberCode": 5,
  "TypeCode": 6,
  "Cost": 7.0,
  "Tax": 8.0,
  "Paid": 9.0,
  "JoinDate": "2026-04-02T18:24:05.8178053-05:00",
  "ExpiryDate": "2026-04-02T18:24:05.8178053-05:00",
  "IsGift": true,
  "PurchaserRenewal": true,
  "PackageID": "sample string 10",
  "PaymentGatewayReference": "sample string 11",
  "Coupon": {
    "CouponCode": "sample string 1",
    "DiscountAmount": 2.0,
    "StockID": 3
  },
  "CardDiscount": {
    "DiscountAmount": 1.0,
    "StockID": 2
  }
}