/api/v2/mor/public/cards/analyticsGet the API key's merchant card portfolio and daily usage analytics.
Days defaults to 30 and is clamped to 7–90. Balances use stored values; spend totals include successful USD card payments. Company scope comes exclusively from the current API key. MOR success and business-error properties use camelCase. Validation may return application/problem+json; authentication may return plain text. The existing sensitive-operation 429 body uses Message, Code and Status. 429 means the configured request limit was exceeded; honor Retry-After when present.
Authentication
Send your API key in the x-api-key header on every request.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| days (query) | unknown | No |
Responses
200 — OK
| Field | Type | Required | Description |
|---|---|---|---|
| periodDays | unknown | No | |
| generatedAt | string (date-time) | No | |
| totalCards | unknown | No | |
| activeCards | unknown | No | |
| cancelledCards | unknown | No | |
| assignedCards | unknown | No | |
| unassignedCards | unknown | No | |
| cardsUsedInPeriod | unknown | No | |
| transactionCount | unknown | No | |
| totalAvailableBalance | unknown | No | |
| totalPendingBalance | unknown | No | |
| totalSpendUsd | unknown | No | |
| averageTransactionUsd | unknown | No | |
| dailyUsage | array of object | No |
400 — Bad Request
| Field | Type | Required | Description |
|---|---|---|---|
| message | string | No | |
| code | string | No |
401 — Unauthorized
| Field | Type | Required | Description |
|---|---|---|---|
| type | string | No | |
| title | string | No | |
| status | unknown | No | |
| detail | string | No | |
| instance | string | No |
403 — Forbidden
| Field | Type | Required | Description |
|---|---|---|---|
| message | string | No | |
| code | string | No |
404 — Not Found
| Field | Type | Required | Description |
|---|---|---|---|
| message | string | No | |
| code | string | No |
409 — Conflict
| Field | Type | Required | Description |
|---|---|---|---|
| message | string | No | |
| code | string | No |
429 — Too Many Requests
| Field | Type | Required | Description |
|---|---|---|---|
| type | string | No | |
| title | string | No | |
| status | unknown | No | |
| detail | string | No | |
| instance | string | No |
500 — Internal Server Error
| Field | Type | Required | Description |
|---|---|---|---|
| message | string | No | |
| code | string | No |
503 — Service Unavailable
| Field | Type | Required | Description |
|---|---|---|---|
| message | string | No | |
| code | string | No |
Example request
curl -X GET "https://{base_url}/api/v2/mor/public/cards/analytics" \
-H "x-api-key: YOUR_API_KEY"This page is generated from the live OpenAPI specification and always matches the current API.