Create a client and sell a membership
Header Parameters
Api-Keystring
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
clientallof
Fields can be sent at the top level or nested inside a client object.
On create, surname, name, and sex are required.
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?