---
title: "Apply a payment to an invoice."
method: POST
path: "/Ams/{ClientID}/InvoicePayments"
tags: ["Ams"]
---

# Apply a payment to an invoice.

`POST /Ams/{ClientID}/InvoicePayments`

## Request

- Base URL: `https://ws.yourmembership.com`
- URL: `https://ws.yourmembership.com/Ams/{ClientID}/InvoicePayments`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/yourmembership/apis/ym-rest-services/docs/Ams/:ClientID/InvoicePayments/post.ts> (a function with typed inputs; its response is checked against the schema)

Apply a payment to an invoice.

## Path parameters

- `ClientID` integer, required

## Request body `application/x-www-form-urlencoded`

- object
  - `InvoiceNo` integer
  - `Amount` integer
  - `Type` 'ach' | 'cash' | 'cc' | 'check'
  - `RefNo` string
  - `PaymentDate` string, date-time
  - `PayerName` string
  - `PayerEmail` string
  - `BillOrganization` string
  - `UpdateInvoiceInfo` boolean
  - `AutoCloseInvoice` boolean
  - `UseInvoiceAddress` boolean
  - `BillAddress1` string
  - `BillAddress2` string
  - `BillCity` string
  - `BillLocation` string
  - `BillPostalCode` string
  - `BillCountry` string
  - `BillPhone` string
  - `PaymentNotes` string
  - `InternalNotes` string
  - `UsingRedis` boolean
  - `AppInitTime` string, date-time
  - `ServerID` string
  - `ResponseStatus` string
  - `BypassCache` boolean
  - `DateCached` string, date-time
  - `Device` string

## Response `200`

Success

- InvoicePaymentsResponse: InvoicePaymentsResponse
  - `InvoiceNo` integer
  - `Amount` integer
  - `Type` 'ach' | 'cash' | 'cc' | 'check'
  - `RefNo` string
  - `PaymentDate` string, date-time
  - `PayerName` string
  - `PayerEmail` string
  - `BillOrganization` string
  - `UpdateInvoiceInfo` boolean
  - `AutoCloseInvoice` boolean
  - `UseInvoiceAddress` boolean
  - `BillAddress1` string
  - `BillAddress2` string
  - `BillCity` string
  - `BillLocation` string
  - `BillPostalCode` string
  - `BillCountry` string
  - `BillPhone` string
  - `PaymentNotes` string
  - `InternalNotes` string
  - `UsingRedis` boolean
  - `AppInitTime` string, date-time
  - `ServerID` string
  - `ClientID` integer
  - `ResponseStatus` ResponseStatus: ResponseStatus
    - `ErrorCode` string
    - `Message` string
    - `StackTrace` string
    - `Errors` ResponseError[]
      - `ErrorCode` string
      - `FieldName` string
      - `Message` string
      - `Meta` DictionaryStringString: Dictionary<String,String>
    - `Meta` DictionaryStringString: Dictionary<String,String>
  - `BypassCache` boolean
  - `DateCached` string, date-time
  - `Device` string

---

[API](https://skmtc.dev/yourmembership/apis/ym-rest-services.md) - [All operations](https://skmtc.dev/yourmembership/apis/ym-rest-services/llms.txt) - [OpenAPI document](https://skmtc.dev/yourmembership/apis/ym-rest-services/revisions/8d8a2e7e7d56?raw)
