Medusa Gift Cards API

A gift card is a prepaid card that can be used to pay for items during checkout. Gift cards can be purchased by customers, or created by admin users. When a gift card is redeemed, its amount is added to the customer's store credit account, which can then be used to pay for items during checkout. These API routes allow admin users to manage gift cards, transfer gift cards between customers, and more. Gift Card routes are only available through the [Loyalty Plugin](https://docs.medusajs.com/resources/commerce-modules/loyalty).

GitHub OpenAPI

Operations 6

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/gift-cards List gift cards · List Gift Cards #
Ask an LLM
“Which gift cards exist in the admin store?”
“Can I list gift cards issued to a particular customer?”
Tell an agent
List gift cards issued to customer {customer_id}.
Show gift cards created between {created_at}.
POST /admin/gift-cards Create a gift card · Create Gift Card #
Ask an LLM
“How do I issue a new gift card with a code and value?”
“Can I set an expiry date when creating a gift card?”
Tell an agent
Create a gift card with code {code} worth {value} {currency_code} expiring at {expires_at}.
Issue gift card {code} for customer {customer_id} referencing {reference}.
GET /admin/gift-cards/{id} Get a gift card · Get a Gift Card #
Ask an LLM
“What are the details of a specific gift card?”
“Can I look up a gift card by its ID?”
Tell an agent
Get gift card {id}.
Show the status and expiry of gift card {id}.
POST /admin/gift-cards/{id} Update a gift card · Update a Gift Card #
Ask an LLM
“Can I change the value or expiry of an existing gift card?”
“Is it possible to add a note to a gift card?”
Tell an agent
Set the value of gift card {id} to {value}.
Change the expiry of gift card {id} to {expires_at}.
GET /admin/gift-cards/{id}/orders List orders a gift card was used in · List Gift Card's Orders #
Ask an LLM
“In which orders was a given gift card redeemed?”
“Can I see the order history for one gift card?”
Tell an agent
List the orders where gift card {id} was used.
Show the order history for gift card {id}.
GET /store/gift-cards/{idOrCode} Look up a gift card by ID or code · Get a Gift Card #
Ask an LLM
“How do I redeem a gift card when I only have its code?”
“Can I fetch a gift card using either its ID or its code?”
Tell an agent
Get the gift card with code {idOrCode}.
Look up gift card {idOrCode} using its code.

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-gift-cards-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-gift-cards-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Gift Cards API
  version: 2.19.0
  description: 'Operations tagged Gift Cards 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 (104 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-gift-cards-api-openapi.yml