Chorus Pay MCP by usefulapi

v1.5.1
io.usefulapi/chorus-pay Checked 4 days ago Published 1 day ago

Read, create, update and cancel order quotes for public bodies in Chorus Pay.

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

choruspay_list_orders List orders

List orders (quotes) with pagination. Returns data, has_more and next_cursor. Chorus Pay API: GET /orders.

ParameterTypeDescription
cursorstringCursor from next_cursor in the previous page.
limitintegerResults per page (1 to 100, default 10).
statusstringFilter by status, e.g. created, opened, accepted, invoiced, cancelled, action_required, paid.

choruspay_get_order Get an order

Get one order by id: status, client, lines, totals and the Chorus Pay link. Chorus Pay API: GET /orders/:id.

ParameterTypeDescription
order_id *stringOrder id, e.g. ord_a1b2c3d4e5f6 (from choruspay_list_orders or choruspay_create_order).

choruspay_create_order Create an order quote

Create an order (quote) with status draft. This tool does not send it to the client. Repeating the same call sends the same Idempotency-Key, so it does not create a second quote. Chorus Pay API: POST /orders.

ParameterTypeDescription
description *stringQuote description (1 to 500 characters).
items *arrayQuote lines (at least one).
client_infoobjectClient details. When omitted, the client enters the SIRET at checkout.
discount_htnumberOverall discount excluding VAT, shown as a 'Remise' line.
endpage_urlstringRedirect URL after the client accepts the quote. Defaults to your supplier setting.
idempotency_keystringOptional Idempotency-Key. When omitted, one is derived from the request.
metadataobjectYour own key-value data (max 50 keys).

choruspay_update_order Update an order

Change the redirect URL and/or the metadata of an order. Metadata keys you give are added or overwritten; other keys stay. Chorus Pay API: PATCH /orders/:id.

ParameterTypeDescription
order_id *stringOrder id, e.g. ord_a1b2c3d4e5f6 (from choruspay_list_orders or choruspay_create_order).
endpage_urlRedirect URL after the client accepts the quote. Pass null to remove the redirect.
metadataobjectMetadata to merge into the order.

choruspay_cancel_order Cancel an order

Cancel an order that is cancelled in your shop or tool. Chorus Pay emails the client. Replaying the call is safe. Fails with 409 once the invoice is filed on Chorus Pro. Chorus Pay API: POST /orders/:id/cancel.

ParameterTypeDescription
order_id *stringOrder id, e.g. ord_a1b2c3d4e5f6 (from choruspay_list_orders or choruspay_create_order).