Sell a membership to a client
Header Parameters
Api-Keystring
Path Parameters
client_idinteger Required
Body Parameters
membership_idinteger Required
Catalog membership ID from /memberships.
startedstring
Start date; defaults to a computed value.
sale_organization_idinteger
Sale branch; defaults to the client's branch.
promoaction_idinteger
ID of the promo-action to apply (e.g. the id returned by
GET /clients/{client_id}/memberships/check_promocode).
promocodestring
Promocode / promo-action code to apply (the validated code
returned by GET /clients/{client_id}/memberships/check_promocode).
discountobject
Discount.
Show child attributes
Response
200
Object
Sold membership (crud envelope)
Response Attributes
successboolean
dataarray
Show child attributes
errorstring
error_codeinteger
totalinteger
Nullable:
True
summaryobject
401
Object
Session not established / invalid key.
Response Attributes
successboolean
dataarray
errorstring
session_expiredboolean
totalinteger
Was this section helpful?
Response
Was this section helpful?