---
title: "Approve Bills in Billing Period"
method: POST
path: "/organizations/{orgId}/bills/billingperiod/{lastDateInBillingPeriod}/{billingFrequency}/approve"
tags: ["Bill"]
---

# Approve Bills in Billing Period

`POST /organizations/{orgId}/bills/billingperiod/{lastDateInBillingPeriod}/{billingFrequency}/approve`

## Request

- Base URL: `https://api.m3ter.com`
- URL: `https://api.m3ter.com/organizations/{orgId}/bills/billingperiod/{lastDateInBillingPeriod}/{billingFrequency}/approve`
- Auth: OAuth 2
  - Authorization code: `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize`, token URL `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/token`
  - Client credentials, token URL `/oauth/token`
- TypeScript: <https://skmtc.dev/m3ter-com/apis/m3ter-api/docs/organizations/:orgId/bills/billingperiod/:lastDateInBillingPeriod/:billingFrequency/approve/post.ts> (a function with typed inputs; its response is checked against the schema)

Approve all Bills within a specified billing period. This endpoint allows you to approve Bills on various frequencies, such as daily, weekly, monthly, or annually. Specify the last day of the period to define the range. 

For example, to approve all Bills on monthly billing up to September with due date of 1st of month, use the last day of September, which is September 30th.

## Path parameters

- `orgId` string, required
- `lastDateInBillingPeriod` string, required
- `billingFrequency` string, required

## Response `200`

Returns a message indicating the success/failure of Bills approval

- BillApprovalResponse
  - `message` string: A message indicating the success or failure of the Bills' approval, along with relevant details.

## Other responses

- `4XX`: Error message
- `5XX`: Error message

---

[API](https://skmtc.dev/m3ter-com/apis/m3ter-api.md) - [All operations](https://skmtc.dev/m3ter-com/apis/m3ter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/m3ter-com/apis/m3ter-api/revisions/85c514abc692?raw)
