{"openapi":"3.1.0","info":{"title":"Pagos360 (BYOK) API","version":"0.1.0","description":"Pagos360 (BYOK) lets an AI assistant read your own Pagos360 data through the Pagos360 API with a key you supply (Pagos360 API key). Read-only: 8 tools (get_account_balances, get_collection_report, get_chargeback_report, get_refund_report, get_settlement_report, get_retentions_report, get_payment_request, get_card_installment_plans). The BYOK key travels with each request, is used for that one...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-pagos360.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-pagos360/docs"},"termsOfService":"https://connectorbay.com/byok-pagos360/terms"},"servers":[{"url":"https://byok-pagos360.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-pagos360/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_account_balances":{"post":{"operationId":"get_account_balances","summary":"Get the account's available and unavailable balance. Use for \"What is my Pagos360 available balance\".","description":"Get the account's available and unavailable balance. Use for \"What is my Pagos360 available balance\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_account_balancesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_collection_report":{"post":{"operationId":"get_collection_report","summary":"Get the collections report for one past day: totals and each payment with channel, amount paid, fees, net amount and ava","description":"Get the collections report for one past day: totals and each payment with channel, amount paid, fees, net amount and availability date (payer names are left out). Use for \"What did Pagos360 collect on 19-08-2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"description":"Collection day. Format dd-mm-yyyy; must be before today.","maxLength":200,"title":"Date","type":"string"}},"required":["date"],"title":"get_collection_reportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_chargeback_report":{"post":{"operationId":"get_chargeback_report","summary":"Get the chargebacks (reversals) report for one past day with total and per-request reverted amount. Use for \"Were there ","description":"Get the chargebacks (reversals) report for one past day with total and per-request reverted amount. Use for \"Were there chargebacks on Pagos360 on 19-08-2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"description":"Chargeback day. Format dd-mm-yyyy; must be before today.","maxLength":200,"title":"Date","type":"string"}},"required":["date"],"title":"get_chargeback_reportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_refund_report":{"post":{"operationId":"get_refund_report","summary":"Get the refunds report for one past day with total and per-request refunded amount. Use for \"Which refunds did Pagos360 ","description":"Get the refunds report for one past day with total and per-request refunded amount. Use for \"Which refunds did Pagos360 process on 27-12-2025\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"description":"Refund day. Format dd-mm-yyyy; must be before today.","maxLength":200,"title":"Date","type":"string"}},"required":["date"],"title":"get_refund_reportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_settlement_report":{"post":{"operationId":"get_settlement_report","summary":"Get the settlement report for one past day: credits, debits and the net settled amount per request (approved settlements","description":"Get the settlement report for one past day: credits, debits and the net settled amount per request (approved settlements only). Use for \"How much did Pagos360 settle on 20-08-2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"description":"Settlement day. Format dd-mm-yyyy; must be before today.","maxLength":200,"title":"Date","type":"string"}},"required":["date"],"title":"get_settlement_reportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_retentions_report":{"post":{"operationId":"get_retentions_report","summary":"Get the tax withholdings and perceptions report for one past day with type, jurisdiction, tax base, rate and amount. Use","description":"Get the tax withholdings and perceptions report for one past day with type, jurisdiction, tax base, rate and amount. Use for \"What tax withholdings did Pagos360 apply on 14-02-2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"description":"Withholding day. Format dd-mm-yyyy; must be before today.","maxLength":200,"title":"Date","type":"string"}},"required":["date"],"title":"get_retentions_reportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_payment_request":{"post":{"operationId":"get_payment_request","summary":"Get one payment request by id: state, due date, total, external reference and the results of collected payments (payer n","description":"Get one payment request by id: state, due date, total, external reference and the results of collected payments (payer name and email are left out). Use for \"What is the state of Pagos360 payment request 5\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Payment request id returned when it was created.","title":"Id","type":"integer"}},"required":["id"],"title":"get_payment_requestArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_card_installment_plans":{"post":{"operationId":"get_card_installment_plans","summary":"Get card installment plans for an amount: for each card brand the number of installments, installment amount, total, and","description":"Get card installment plans for an amount: for each card brand the number of installments, installment amount, total, and CFT, TNA and TEA rates. Use for \"What card installment plans does Pagos360 offer for 1000 pesos\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"amount":{"description":"Purchase amount in pesos as text, for example 1000 or 1250.50.","maxLength":200,"title":"Amount","type":"string"}},"required":["amount"],"title":"get_card_installment_plansArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}