Medusa Store Credit Accounts API

A store credit account is a ledger of store credit transactions for a customer. They hold the customer's store credit balance, including their credit and debit amounts. Store credit accounts allow you to build features that let customers pay for items using their store credit balance, such as gift cards or loyalty points. These API routes allow admin users to manage store credit accounts, their transactions, and more. Store Credit Account routes are only available for Cloud users using the [Loyalty Plugin](https://docs.medusajs.com/resources/commerce-modules/loyalty).

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /admin/store-credit-accounts List store credit accounts · List Store Credit Accounts #
Ask an LLM
“Which customers have store credit accounts?”
“Can I list store credit accounts in a specific currency?”
Tell an agent
List store credit accounts for customer {customer_id}.
Show store credit accounts in currency {currency_code}.
POST /admin/store-credit-accounts Create a store credit account · Create Store Credit Account #
Ask an LLM
“How do I create a store credit account for a customer?”
“Can I set metadata on a new store credit account?”
Tell an agent
Create a store credit account in {currency_code}.
Create a store credit account for customer {customer_id} in {currency_code}.
GET /admin/store-credit-accounts/{id} Get a store credit account · Get a Store Credit Account #
Ask an LLM
“What is the balance of a specific store credit account?”
“Can I look up one store credit account by its ID?”
Tell an agent
Get store credit account {id}.
Show the balance of store credit account {id}.
POST /admin/store-credit-accounts/{id}/credit Add credit to a store credit account · Add Credit to Store Credit Account #
Ask an LLM
“How do I top up a customer's store credit account?”
“Can I add a note when crediting a store credit account?”
Tell an agent
Credit store credit account {id} with {amount}.
Add {amount} to store credit account {id} with note {note}.
GET /admin/store-credit-accounts/{id}/transactions List transactions on a store credit account · List Transactions #
Ask an LLM
“What transactions have happened on a store credit account?”
“Can I search a customer's store credit transactions?”
Tell an agent
List transactions on store credit account {id}.
Show store credit transactions for account {id} matching {q}.
GET /store/store-credit-accounts List my store credit accounts · List Customer's Store Credit Accounts #
Ask an LLM
“What store credit accounts do I have?”
“Can I see only my store credit accounts in a given currency?”
Tell an agent
List my store credit accounts.
Show my store credit accounts in {currency_code}.
POST /store/store-credit-accounts/claim Claim a store credit account · Claim a Store Credit Account #
Ask an LLM
“How do I claim a store credit account from a gift card?”
“Can I claim an anonymous store credit account?”
Tell an agent
Claim store credit account {code}.
Redeem store credit code {code} for my account.
GET /store/store-credit-accounts/{id} Get the logged-in customer's store credit account · Get Customer's Store Credit Account #
Ask an LLM
“How do I see the store credit account tied to the logged-in customer?”
“Can I get the localized details of one of my store credit accounts?”
Tell an agent
Retrieve my store credit account {id} using publishable key {api_key}.
Fetch store credit account {id} localized for {locale}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/medusa:medusa-store-credit-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

medusa-store-credit-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Store Credit Accounts API
  version: 2.19.0
  description: 'Operations tagged Store Credit Accounts across 2 of this provider''s published API definitions: medusa-admin-openapi.yaml, medusa-store-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


# --- truncated at 32 KB (101 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-store-credit-accounts-api-openapi.yml