---
title: "Posts a payment to a past due invoice."
method: POST
path: "/v2.1/accounts/{accountId}/billing_payments"
tags: ["Payments"]
---

# Posts a payment to a past due invoice.

`POST /v2.1/accounts/{accountId}/billing_payments`

Posts a payment to a past due invoice.

This method can only be used if the `paymentAllowed` value for a past due invoice is true. This can be determined calling [Billing::listInvoicesPastDue](/docs/esign-rest-api/reference/billing/invoices/listpastdue/).

The response returns information for a single payment
if a payment ID was used in the endpoint, or a list of payments.
If the from date or to date queries or payment ID are not used,
the response returns payment information for the last 365 days.

If the request was for a single payment ID, the `nextUri` and `previousUri` properties are not returned.

Privileges required: account administrator

## Path parameters

- `accountId` string, required

## Request body

- BillingPaymentRequest
  - `paymentAmount` string — The payment amount for the past due invoices. This value must match the pastDueBalance value retrieved using Get Past Due Invoices.

## Response `201`

Successful response.

## Other responses

- `400` — Error encountered.

---

[API](https://skmtc.net/docusign/apis/docusign-esignature-rest-api.md) · [All operations](https://skmtc.net/docusign/apis/docusign-esignature-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docusign/docusign-esignature-rest-api/revisions/77f1998c313d/schema)
