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.
openapi: 3.2.0
info:
title: Payments AI MoR Merchant Public Invoices API
version: 1.0.0
description: Merchant Public API, partner onboarding, and buyer checkout endpoints. Authenticate every call with a Merchant API Key (pai_test_* / pai_live_*). The same key reaches its own merchant resources and those of any sub-merchant it has onboarded via POST /v1/public-api/merchants.
servers:
- url: https://sandbox.mor.payments.ai/api
description: Sandbox API
tags:
- name: Invoices
paths:
/v1/public-api/merchants/{merchantId}/invoices:
get:
operationId: PublicApiInvoices_listInvoices
parameters:
- name: merchantId
in: path
required: true
schema:
type: string
- name: page
in: query
required: false
schema:
type: integer
format: int32
explode: false
- name: limit
in: query
required: false
schema:
type: integer
format: int32
explode: false
- name: status
in: query
required: false
schema:
type: string
explode: false
- name: search
in: query
required: false
schema:
type: string
explode: false
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
type: object
additionalProperties: {}
summary: List invoices
tags:
- Invoices
/v1/public-api/merchants/{merchantId}/invoices/{id}:
get:
operationId: PublicApiInvoices_getInvoice
parameters:
- name: merchantId
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
type: object
additionalProperties: {}
summary: Get invoice
tags:
- Invoices
/v1/public-api/merchants/{merchantId}/invoices/{id}/download:
get:
operationId: PublicApiInvoices_downloadInvoice
parameters:
- name: merchantId
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: The request has succeeded.
headers:
content-disposition:
required: true
schema:
type: string
content:
application/pdf:
schema:
type: string
format: binary
summary: Download invoice
tags:
- Invoices
components:
securitySchemes:
UserOAuthCredentialAuth:
type: http
scheme: Bearer
description: 'Signed-in user OAuth credential (`pai_mcp_*`) issued through the dashboard consent screen for this API: the authorization and token requests name the RFC 8707 resource `<API_URL>/v1/public-api` (ADR-0020). Credentials issued for the MCP server, or for no resource, are rejected with 401 `auth.invalid_token` and `WWW-Authenticate: Bearer resource_metadata="<API_URL>/.well-known/oauth-protected-resource/v1/public-api", error="invalid_token"`. Valid on the environment that issued it only. Each operation that accepts it names one required permission; a missing permission is 403 `auth.insufficient_scope` with `WWW-Authenticate: Bearer error="insufficient_scope", scope="<permission>"`. A merchant outside the user''s active memberships is 403 `merchant.access_forbidden`; a team role below the operation''s minimum is 403 `team.role_forbidden`.'
MerchantApiKeyAuth:
type: http
scheme: Bearer
description: 'Merchant API key from Developer Tools → API Keys. Example: `Authorization: Bearer pai_test_...`. Also accepted for any active sub-merchant this key''s own merchant created.'