Qashier MCP by usefulapi

v1.11.1
io.usefulapi/qashier Checked 2 days ago Published 1 day ago

Read checkout sessions; create payment links, expire sessions and refund payments in Qashier.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

qashier_list_checkout_sessions List checkout sessions

List online payment Checkout Sessions, newest first, with status (open/complete/expired), payment status, amount in cents, refunds and receipt number. Cursor pagination: pass starting_after with the last id. GET /checkout/sessions.

ParameterTypeDescription
ending_beforestringCursor: a session id; returns the previous page before it.
limitintegerPage size 1-100 (default 10).
starting_afterstringCursor: a session id; returns the next page after it.
statusstringOnly sessions with this status.

qashier_get_checkout_session Get checkout session

Get one Checkout Session by id: status, payment status, payment method, amount in cents, checkout url and refunds. GET /checkout/sessions/{id}.

ParameterTypeDescription
session_id *stringCheckout Session id.

qashier_create_checkout_session Create checkout session

WRITE: create a payment Checkout Session for ONE item and return its payment url. It charges nothing until the customer pays at that url. Amount is in cents (SGD 12.50 = 1250). POST /checkout/sessions.

ParameterTypeDescription
currency *stringCurrency code, uppercase, for example SGD, MYR, PHP.
return_url *stringhttps URL where the customer returns after paying or cancelling.
success_url *stringhttps URL where the customer goes when payment is complete.
unit_amount *integerAmount to charge in cents (non-negative integer).
customer_emailstringEmail that receives the payment receipt.
expires_atintegerExpiry as epoch seconds, 30 minutes to 24 hours from now (default 24 hours).
idempotency_keystringOptional idempotency key (max 255 chars). Reuse the same key to retry safely without a duplicate.

qashier_expire_checkout_session Expire checkout session

WRITE: expire an OPEN Checkout Session so the customer can no longer pay it. It fails if the session is not open. POST /checkout/sessions/{id}/expire.

ParameterTypeDescription
session_id *stringCheckout Session id.
idempotency_keystringOptional idempotency key (max 255 chars). Reuse the same key to retry safely without a duplicate.

qashier_refund_payment Refund payment

WRITE, MONEY: refund a paid Checkout Session to the customer's original payment method. Omit amount for a full refund; amount is in cents. The refund runs asynchronously (status pending). This call has no idempotency key, so do NOT retry it: check qashier_get_checkout_session first. POST /refund.

ParameterTypeDescription
session_id *stringId of the completed Checkout Session to refund.
amountintegerPartial refund in cents. Omit to refund the full amount.