The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
PUT /Ams/{ClientID}/MembershipPromoCodes/{MembershipID}/{MemberID} HTTP/1.1
Host: ws.yourmembership.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"MembershipID":0,"MemberID":0,"PromoCode":"String","UsingRedis":true,"AppInitTime":"2025-01-15T07:46:04.6467430-05:00","ServerID":"WS-6-64-014","ClientID":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"BypassCache":false,"DateCached":"2025-01-15T08:51:54.3235397-05:00","Device":"Desktop"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"MembershipPromoCodeList":[{"FriendlyName":"String","FlatDiscount":0,"PercentDiscount":0,"PromoCodeID":0,"ClientID":0,"PromoCode":"String","Expires":"0001-01-01T00:00:00.0000000","GLCode":"String","QBClass":"String","Start":"0001-01-01T00:00:00.0000000","UsageLimit":0,"UsageOnePerUser":false}],"MembershipID":0,"MemberID":0,"PromoCode":"String","UsingRedis":true,"AppInitTime":"2025-01-15T07:46:04.6467430-05:00","ServerID":"WS-6-64-014","ClientID":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"BypassCache":false,"DateCached":"2025-01-15T08:51:54.3235397-05:00","Device":"Desktop"}