> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Introduction ## Article: Introduction ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/memberships/memberships-service-plugin/introduction.md ## Article Content: # About the Memberships Service Plugin The Wix eCommerce Memberships Service Plugin allows you to integrate with Wix as a membership provider. This means you can enable customers to purchase various goods using memberships issued by your service. By integrating your service with Wix, you can facilitate key membership operations such as membership retrieval, charging, and voiding membership transactions. These operations are seamlessly integrated into the site's checkout page, enhancing the overall customer experience. With the Memberships SPI, you can: + Provide the memberships that can be used to pay for a given list of items + Charge memberships + Void a previous membership use ## Before you begin + It's important to ensure that your implementation of the memberships provider service plugin endpoints adheres to the provided specifications. + This SPI is focused on memberships as a payment method. It does not cover how a customer subscribes to a membership. + For these APIs to function, a gift card provider must be integrated with the site. This integration can be achieved by any of the following: - Marking your app as [dependent](https://dev.wix.com/docs/build-apps/launch-your-app/market-listing/add-your-app-audience-info.md) on Wix Stores, Wix Bookings, or Wix Restaurants, which blocks the installation of your app and prompts users to install the required app first. - Making your app dependent on a third-party app that implements the Service Plugin. There is currently no way to block installation on sites that don't have the third-party app installed, or to check that a site has installed the required app. + Implementation of this Service Plugin is dependent on configuration of the eCommerce Memberships Provider extension in the [app dashboard](https://dev.wix.com/dc3/my-apps/): | Name | Type | Description | |-----------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `deploymentUri` | string | Required. Base URI where the endpoints are called. Wix eCommerce appends the endpoint path to the base URI. For example, to call the List Eligible Memberships endpoint at `https://my-memberships.com/v1/list-eligible-memberships`, the base URI you provide here is `https://my-emberships.com/`. | - Configuration setup: When a site owner installs and authorizes your app to provide gift card operations, Wix will send a JSON Web Token (JWT) with an instance ID to your deployment URI + endpoint path. The app should collect the JWT, decode it, and store the resulting instance ID. For example, the token in this request: ```curl $ curl -X POST https://ext-server.com/wix-spi/account-ids -H 'Content-Type: plain/text' -d 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZUlkIjoiMDQ0NjY3ZjQtYzEzZi00NmMyLTg1MDYtZGU5ZTQyMjkzODk2In0.fxedHrnHUFi6V- S5OH8gL-pY4STxFWZHjj-xo9QUwQY' ``` Decodes into: ```json { "instanceId": "044667f4-c13f-46c2-8506-de9e42293896" } ```