post https://api.momence.com/api/v2/member/checkout/compatible-memberships
This endpoint will return list of bought memberships potentially compatible with specified checkout cart.
NOTE: The endpoint also returns memberships that are incompatible which is indicated by the incompatibility field. This is so you can present user with a reason why the membership is not usable in this case.
Incompatibility | Description |
---|---|
session-membership-excluded | session is not included in specified membership |
session-bought-membership-will-expire | bought membership will expire before the session start and it's not scheduled to renew |
session-bought-membership-pack-will-expire | pack will expire before the session starts |
session-bought-membership-already-used | bought membership was already used for this session and it's not allowed to use it multiple times |
session-bought-membership-usage-limit-reached | subscription has reached its usage limit for the renewal period that's aligned with session |
session-bought-membership-usage-limit-reached-for-semester-or-course | subscription has reached its usage limit for the renewal period or periods that're aligned with the whole semester or course |
session-bought-membership-daily-limit-reached | bought membership was already used today and is limited to one use per day |
session-bought-membership-no-event-credits-left | no event credits are left in the pack |
session-bought-membership-no-money-credits-left | no money credits are left in the pack |
session-bought-membership-on-demand | bought membership is only usable for on-demand content, not classes |
session-bought-membership-starts-later | bought membership starts being valid after the session start |
session-bought-membership-invalid-type | bought membership is not usable for this |
session-bought-membership-disabled | membership linked with the bought membership was disabled and thus it can't be used |
session-bought-membership-frozen | bought membership is frozen when the session happens |
session-subscription-ticket-limit | subscription is limited to one ticket |
unknown | unknown reason |