---
title: "Payment history"
method: GET
path: "/payment/{month}/{year}"
tags: ["Payment"]
---

# Payment history

`GET /payment/{month}/{year}`

## Request

- Base URL: `https://queries.test.envia.com`
- URL: `https://queries.test.envia.com/payment/{month}/{year}`
- Auth: HTTP bearer

Get payment history by date. MM: Month in two digits. YYYY: Year in four digits.

## Path parameters

- `month` string, required
- `year` string, required

## Response `200`

Payment history retrieved successfully

- object
  - `data` object[]
    - `id` integer: Payment ID
    - `credit_applied` number: Credit applied
    - `credit_description` string: Credit description
    - `total_paid` number: Total paid amount
    - `paid_at` string, date-time: Payment date
    - `manual_credit` integer: Manual credit flag
    - `invoice_pdf` string: Invoice PDF URL
    - `invoice_xml` string: Invoice XML URL
    - `paid_by` string: Paid by
    - `debt_due_date` string, date: Debt due date
    - `created_by` string: Created by
    - `created_at` string, date-time: Creation date

---

[API](https://skmtc.dev/envia/apis/envia-queries-api.md) - [All operations](https://skmtc.dev/envia/apis/envia-queries-api/llms.txt) - [OpenAPI document](https://skmtc.dev/envia/apis/envia-queries-api/revisions/56f601a52f3f?raw)
