mcp-pagbrasil
v0.1.0PagBrasil — cross-border acquiring into Brazil: Pix, Boleto Flash, refunds
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_order
Create an order / request a payment (POST /order/add, form-urlencoded). payment_type selects the method (pix | boleto | creditcard). Returns XML: for Pix it carries pix_code (copy-paste) and pix_image; for boleto, the bar code and PDF URL. order_number must be unique per customer_taxid.
| Parameter | Type | Description |
|---|---|---|
amount_brl * | string | Amount in Brazilian Real, major units as a string (e.g. '125.00') |
customer_name * | string | Buyer full name |
customer_taxid * | string | Buyer CPF (individuals) or CNPJ (companies) — must be a valid Brazilian tax id |
order_number * | string | Unique order reference per customer_taxid (idempotency anchor) |
payment_type * | string | Payment method |
address_city | string | Buyer city |
address_state | string | Buyer state (UF) |
address_street | string | Buyer street address |
address_zip | string | Buyer CEP |
customer_email | string | Buyer email |
customer_phone | string | Buyer phone |
product_name | string | Product / charge description |
get_order
Request information about an order (POST /order/get). Returns the same XML order shape as create_order, including current payment status — poll this to detect Pix/boleto settlement.
| Parameter | Type | Description |
|---|---|---|
order_number * | string | The order_number used at create time |
refund_order
Request a refund for a settled order (POST /order/refund). Pass amount_brl for a partial refund; omit for a full refund.
| Parameter | Type | Description |
|---|---|---|
order_number * | string | The order_number to refund |
amount_brl | string | Amount to refund in BRL, major units (e.g. '50.00'). Omit for a full refund. |