---
title: "Sign a monthly MRR certificate with Stripe's dashboard figures (#4045)"
method: POST
path: "/accountant/companies/{customerId}/metrics/mrr-certificates/{month}/sign"
tags: ["Overview"]
---

# Sign a monthly MRR certificate with Stripe's dashboard figures (#4045)

`POST /accountant/companies/{customerId}/metrics/mrr-certificates/{month}/sign`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/metrics/mrr-certificates/{month}/sign`
- Auth: HTTP bearer

Records Stripe's dashboard MRR and active subscribers, their differences from the certificate (MRR against the ending MRR; active subscribers, which Stripe counts per customer, against the active customer count), and the signed-in accountant as signer, once. The accountant must be assigned to the customer with access to the entity (an entity grant); API keys and service principals cannot sign. A figure that differs requires a note.

## Path parameters

- `customerId` string, uuid, required
- `month` string, required

## Query parameters

- `entityId` string, uuid

## Request body

- object
  - `stripeMrrMinorUnits` string, required
  - `stripeActiveSubscribers` integer, required: Stripe's Billing active subscribers; Stripe counts customers, so it is compared with activeCustomerCount.
  - `note` string, nullable

## Response `200`

The signed certificate.

- object
  - `success` boolean, required
  - `data` MrrMonthCertificate, required: #4045: one monthly MRR certificate (migration 595). Money is minor units as decimal strings.
    - `month` string, date, required
    - `currency` string, required
    - `minorUnit` integer, required
    - `endingMrrMinorUnits` string, required
    - `activeCustomerCount` integer, required
    - `activeSubscriptionCount` integer, required
    - `publicationLogId` string, required
    - `sources` object[], required
      - `sourceId` string, uuid
      - `epochId` string, uuid
      - `baselineId` string, uuid
      - `walkStartedAt` string, date-time
      - `walkCompletedAt` string, date-time
      - `objectsSeen` integer
      - `pageCount` integer
      - `paginationExhausted` boolean
      - `planSha256` string
      - `chainSha256` string
      - `summary` object
      - `subscriptionCountsByStatus` object
    - `definitionsVersion` string, required
    - `canonicalJson` string, required: The exact text whose SHA-256 is certificateSha256.
    - `certificateSha256` string, required
    - `issuedAt` string, date-time, required
    - `definitionBridge` string[]: Present in the JSON export only.
    - `signature` object, nullable, required
      - `signerUserId` string, uuid
      - `signerName` string
      - `signedAt` string, date-time
      - `stripeMrrMinorUnits` string
      - `stripeActiveSubscribers` integer: Stripe's Billing active subscribers, which counts customers (one per customer with an active subscription).
      - `mrrDifferenceMinorUnits` string: stripeMrrMinorUnits minus endingMrrMinorUnits.
      - `subscriberDifference` integer: stripeActiveSubscribers minus activeCustomerCount.
      - `note` string, nullable

## Other responses

- `400`: A figure differs and no note was given, or the figures are invalid.
- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: No certificate for that month.
- `409`: The certificate is already signed.
- `422`: Request failed validation

## Changes

- **2026-11-09** `44f159018769`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/metrics/mrr-certificates/:month/sign/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
