---
updatedAt: 2026-11-02T09:23:25.000Z
agentTools:
  projectIndex: https://docs.paymongo.com/llms.txt
---

# Get Payment Method Breakdown

Retrieve the authenticated account's net revenue for a date window grouped by payment method, with each method's share of the window's payment count. Livemode is derived from the authenticating secret key. Returns 204 when the window has no activity.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "contact": {
      "name": "Account Management and Experience Team"
    },
    "description": "Owns the PayMongo merchant/consumer account lifecycle: creation, identity verification, partner-KYC reliance, activation, trade-name updates, and parent–child account linking. Called directly by API integrators (secret key) and by internal PayMongo services over the /v2/internal surface.\n",
    "title": "Accounts",
    "version": "1.0.0",
    "summary": "PayMongo account lifecycle: child-account create, verify, activate, and parent–child linking.",
    "license": {
      "name": "PayMongo Internal",
      "identifier": "LicenseRef-PayMongo-Internal"
    },
    "x-paymongo-service-slug": "accounts-api",
    "x-paymongo-service-tier": "tier-1",
    "x-paymongo-owner-slack": "#accounts-api-channel",
    "x-paymongo-repo": "https://github.com/paymongo/accounts-api",
    "x-paymongo-data-classification": "financial"
  },
  "servers": [
    {
      "url": "https://accounts-api.paymongo.com",
      "description": "Production"
    },
    {
      "url": "https://accounts-api.paymongo-uat.com",
      "description": "UAT"
    },
    {
      "url": "https://accounts-api.paymongo-stg.com",
      "description": "Staging"
    }
  ],
  "tags": [
    {
      "name": "Analytics",
      "description": "Pre-aggregated merchant reporting: net revenue, its breakdown, and payment method share."
    }
  ],
  "paths": {
    "/v2/analytics/payment_method_breakdown": {
      "get": {
        "description": "Retrieve the authenticated account's net revenue for a date window grouped by payment method, with each method's share of the window's payment count. Livemode is derived from the authenticating secret key. Returns 204 when the window has no activity.",
        "parameters": [
          {
            "description": "Start of the window, YYYY-MM-DD",
            "example": "2026-08-01",
            "in": "query",
            "name": "created_at.gte",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "End of the window, YYYY-MM-DD",
            "example": "2026-08-31",
            "in": "query",
            "name": "created_at.lte",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payment method breakdown retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodBreakdownResponseRootDTO"
                }
              }
            }
          },
          "204": {
            "description": "No analytics data for the window"
          },
          "400": {
            "description": "Invalid query parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseRootDTO"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseRootDTO"
                }
              }
            }
          },
          "404": {
            "description": "No analytics data for this account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseRootDTO"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseRootDTO"
                }
              }
            }
          },
          "503": {
            "description": "Merchant analytics temporarily unavailable; retry after the Retry-After interval",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseRootDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "BasicAuth": []
          }
        ],
        "summary": "Get Payment Method Breakdown",
        "tags": [
          "Analytics"
        ],
        "operationId": "list_analytics_payment_method_breakdown"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "PayMongo secret key (sk_live_… / sk_test_…) sent as the HTTP Basic auth username with an empty password. Test-mode keys (sk_test_…) return static mock responses that neither persist nor read live data, except where an endpoint says otherwise.\n\nTest-mode linking request endpoints resolve only ids prefixed `lr_test_`; any other id returns 404. The id suffix selects the mocked status, so `lr_test_accepted`, `lr_test_declined` and `lr_test_cancelled` model settled requests (and are rejected by accept/decline/cancel), while any other `lr_test_…` id is pending. Created invites for a consumer email carry ids prefixed `lr_test_consumer_`; reading one answers `account_type` `consumer`, and accepting one returns 403, as live refuses every consumer at invite accept.\n\nTest-mode invites validate `policy_selection` the same way live does: unknown resources, capabilities, or options return 400; a `manage` option without a matching `view` returns 400; an account not on the rollout returns 403. Created invites echo the normalized selection and derived `policies`; off-rollout accounts get no `policy_selection` and null `policies`. Reads and accept/decline/cancel return a fixed sample offer (`transfer` view `global`) since nothing is persisted.\n\nTest-mode amendments check `policy_selection` the same way live does, as a delta: unknown resources, capabilities or options return 400, so does a selection naming no capability or the full-access wildcard, an account not on the rollout returns 403, and an option the child's account type cannot hold fails that entry alone. Every other entry succeeds, because the rejections live returns from the relationship (no active relationship, a full-access relationship, and a delta that changes nothing) need data test mode does not read. Created amendments carry ids prefixed `lr_test_amendment_`; reading, accepting or declining any id containing `amendment` answers `request_type` `amendment` with a fixed sample delta, since nothing was persisted to echo. The list mock holds no amendment, so `request_types=amendment` returns an empty page.\n\nTest-mode account creation checks `policy_selection` the same way live does (the 400s above, the account-type rule, and 403 for an account not on the rollout). The 201 carries `relationship.id` `mr_test_relationship` with `policies` derived from the request: the selected grants, the default grant set when the field is omitted, the full-access grant for `fully_managed`, or null for an empty selection. `mr_test_relationship` does not resolve on the relationship reads.\n\nThe two relationship reads, `GET /v2/relationships` and `GET /v2/relationships/{id}`, return your real links under a test-mode key, scoped as always to relationships you are the parent or the child of. A relationship is not mode-specific, so there is one set of links rather than a live set and a test set, and the `Account-ID` header resolves against it in both modes. The account ids and the `linking_request_id` inside those links are live ids: the account and linking request endpoints will not resolve them under a test-mode key.\n"
      }
    },
    "schemas": {
      "ErrorCode": {
        "enum": [
          "invalid_query_parameters",
          "invalid_request_body",
          "parameter_required",
          "parameter_invalid",
          "not_found",
          "unauthorized",
          "forbidden",
          "internal_server_error",
          "too_many_requests",
          "service_unavailable"
        ],
        "type": "string",
        "x-enum-varnames": [
          "ErrInvalidQueryParameters",
          "ErrInvalidRequestBody",
          "ErrParameterRequired",
          "ErrParameterInvalid",
          "ErrNotFound",
          "ErrUnauthorized",
          "ErrForbidden",
          "ErrInternalServerError",
          "ErrTooManyRequests",
          "ErrServiceUnavailable"
        ]
      },
      "ErrorDetail": {
        "description": "Details about a specific error",
        "properties": {
          "code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ErrorCode"
              }
            ],
            "description": "Code is an application-specific error code, expressed as a string value.",
            "example": "not_found"
          },
          "detail": {
            "description": "Detail is a human-readable explanation specific to this occurrence of the problem.",
            "example": "Explanation of error code for this case",
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Source"
              }
            ],
            "description": "Source is an object containing references to the primary source of the error"
          }
        },
        "type": "object"
      },
      "ErrorResponseRootDTO": {
        "description": "Standard error response containing one or more errors",
        "properties": {
          "errors": {
            "description": "Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetail"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "Source": {
        "description": "Source of the error, providing context like JSON Pointer or query parameter",
        "properties": {
          "header": {
            "description": "Header indicates the name of a single request header which caused the error.",
            "example": "X-Header-Name",
            "type": "string"
          },
          "parameter": {
            "description": "Parameter indicates which URI query parameter caused the error.",
            "example": "field_name",
            "type": "string"
          },
          "pointer": {
            "description": "Pointer is a \"JSON Pointer\" [RFC6901] to the value in the request document that caused the error.",
            "example": "/data/customers/0/attributes/name",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PaymentMethodBreakdownDTO": {
        "properties": {
          "breakdown": {
            "items": {
              "$ref": "#/components/schemas/PaymentMethodEntryDTO"
            },
            "type": "array"
          },
          "id": {
            "example": "org_2b3c4d5e6f7a8b9c0d1e2f3a",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PaymentMethodBreakdownResponseRootDTO": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PaymentMethodBreakdownDTO"
          }
        },
        "type": "object"
      },
      "PaymentMethodEntryDTO": {
        "properties": {
          "livemode": {
            "description": "Derived from the authenticating secret key, not from the request.",
            "example": true,
            "type": "boolean"
          },
          "net_revenue": {
            "example": 486200,
            "type": "number"
          },
          "payment_count": {
            "example": 1204,
            "type": "integer"
          },
          "payment_method": {
            "example": "gcash",
            "type": "string"
          },
          "percentage": {
            "description": "Share of the window's payment count, not of its net revenue.",
            "example": 38.76,
            "type": "number"
          }
        },
        "type": "object"
      }
    }
  }
}
```