Medusa Payment Collections API

A payment collection is one or more payments of an order. They're also used for outstanding payments due to order exchanges or claims. Every purchase or request for payment starts with a payment collection. A payment collection holds the payment sessions used to authorize the payment amount, and the payments to be captured / refunded. These API routes allow admin users to manage payment collections.

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

POST /admin/payment-collections Create a payment collection for an order · Create Payment Collection #
Ask an LLM
“How do I create a payment collection for an order?”
“Can I set the amount a payment collection is for?”
Tell an agent
Create a payment collection for order {order_id} for {amount}.
Set up a new payment collection on order {order_id} for {amount}.
DELETE /admin/payment-collections/{id} Delete a payment collection · Delete a Payment Collection #
Ask an LLM
“How do I delete a payment collection?”
“Can I remove a payment collection by its ID?”
Tell an agent destructive · confirm first
Delete payment collection {id}.
Remove the payment collection {id}.
POST /admin/payment-collections/{id}/mark-as-paid Mark a payment collection as paid · Mark a Payment Collection as Paid #
Ask an LLM
“How do I mark a payment collection as paid?”
“Does marking a payment collection as paid create a payment session and capture the payment?”
Tell an agent
Mark payment collection {id} as paid for order {order_id}.
Mark payment collection {id} paid using provider {provider_id} for order {order_id}.
POST /admin/payment-collections/{id}/payment-sessions Initialize a payment session in a payment collection · Initialize Payment Session in Payment Collection #
Ask an LLM
“How do I initialize a payment session inside a payment collection?”
“Can I re-initialize a payment session for an order placed outside checkout?”
Tell an agent
Initialize a payment session in payment collection {id} with provider {provider_id}.
Re-initialize payment session {id} for provider {provider_id}.
POST /store/payment-collections Create a payment collection for a cart · Create Payment Collection #
Ask an LLM
“How do I create a payment collection for a cart during checkout?”
“What is needed to start a payment collection for a cart?”
Tell an agent
Create a payment collection for cart {cart_id}.
Start a payment collection for cart {cart_id} using publishable key {key}.
POST /store/payment-collections/{id}/payment-sessions Initialize a payment session on a payment collection · Initialize Payment Session of a Payment Collection #
Ask an LLM
“How do I start a payment session in checkout for a payment collection?”
“Do I need a non-zero amount on a payment collection to create its session?”
Tell an agent
Initialize a {provider_id} payment session on collection {id}.
Create a checkout session for collection {id} using provider {provider_id} with data {data}.

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-payment-collections-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-payment-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Payment Collections API
  version: 2.19.0
  description: 'Operations tagged Payment Collections 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 (48 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-payment-collections-api-openapi.yml