Rest API

Frontend API

Get list membership

Endpoint: /V1/lof-membership/customerProductMembership

Method: GET

Params:

  • storeId

Response Data:

{
  "entity_id": "string",
  "sku": "string",
  "type_id": "string",
  "name": "string",
  "status": "string",
  "duration": "string",
  "duration_array": "string",
  "attribute_set_id": "string",
  "has_options": "string",
  "required_options": "string",
  "created_at": "string",
  "updated_at": "string",
  "price": "string",
  "tax_class_id": "string",
  "final_price": "string",
  "minimal_price": "string",
  "min_price": "string",
  "max_price": "string",
  "tier_price": "string",
  "cat_index_position": "string",
  "url_key": "string",
  "customer_group": "string",
  "featured_package": "string",
  "short_description": "string",
  "news_from_date": "string",
  "news_to_date": "string",
  "store_id": "string",
  "membership_order": 0
}

Get list membership plans

Endpoint: /V1/lof-membership/customerProductMemberships

Method: GET

Params:

  • searchCriteria

Response Data:

Example:

Get my membership information (required customer logged in before)

Endpoint: /V1/lof-membership/myMembership

Method: GET

Params:

  • storeId - int (optional)

Response Data:

Customer submit cancel membership

Endpoint: /V1/lof-membership/customerCancelrequest

Method: PUT

Params:

Response Data:

Backend API

Get List membership groups

Endpoint: /V1/lof-membership/groups

Method: GET

Params:

  • searchCriteria

Response Data:

Get Membership Group by ID

Endpoint: /V1/lof-membership/group/:groupId

Method: GET

Params:

  • groupId - Int

Reponse Data:

Delete Membership Group by ID

Endpoint: /V1/lof-membership/group/:groupId

Method: DELETE

Params:

  • groupId - Int

Response Data:

Boolean

Save/Update Membership Group

Endpoint: /V1/lof-membership/group

Method: POST-PUT

Params:

Response:

Get List Membership Packages

Endpoint: /V1/lof-membership/memberships

Method: GET

Params:

  • searchCriteria

Response Data:

Get Membership Package by ID

Endpoint: /V1/lof-membership/membership/:membershipId

Method: GET

Params:

  • membershipId - Int

Response Data:

Delete membership package

Endpoint: /V1/lof-membership/membership/{membershipId}

Method: DELETE

Params:

  • membershipId - Int

Response Data:

Boolean

Save/Update membership package

Endpoint: /V1/lof-membership/membership

Method: POST-PUT

Params:

Response Data:

Get List transactions

Endpoint: /V1/lof-membership/transactions

Method: GET

Params:

  • search

Reponse Data:

Get transaction by ID

Endpoint: /V1/lof-membership/transaction/{transactionId}

Method: GET

Params:

  • transactionId - Int

Response Data:

Delete transaction by ID

Endpoint: /V1/lof-membership/transaction/{transactionId}

Method: DELETE

Params:

  • transactionId - Int

Response Data:

Boolean

Save/Update Transaction

Endpoint: /V1/lof-membership/transaction

Method: POST-PUT

Params:

Response Data:

Get List Cancel Requests

Endpoint: /V1/lof-membership/cancelrequests

Method: GET

Params:

  • search

Response Data:

Get Cancel Request By Id

Endpoint: /V1/lof-membership/cancelrequest/{entityId}

Method: GET

Params:

  • entityId - Int

Response Data:

Delete cancel request

Endpoint: /V1/lof-membership/cancelrequest/{entityId}

Method: DELETE

Params:

  • entityId - Int

Response Data:

Boolean

Save/Update Cancel Request

Endpoint: ​/V1​/lof-membership​/cancelrequest

Method: POST-PUT

Params:

Response Data:

Last updated