---
title: "Mark invoice paid"
method: POST
path: "/invoices/{id}/mark_paid"
tags: ["Invoices"]
---

# Mark invoice paid

`POST /invoices/{id}/mark_paid`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/invoices/{id}/mark_paid`
- Auth: API key in header `Authorization`

Records that an open or past-due invoice was paid outside Crevio, such as by bank transfer or cash. No card is charged. The invoice becomes `paid` with `paid_out_of_band` true, its payment link stops working, and `invoice.paid` is sent. Refuses a paid or void invoice with code `invoice_not_payable`.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Response `200`

Invoice marked paid

- Invoice
  - `id` string, required
  - `object` string, required
  - `status` 'open' | 'paid' | 'past_due' | 'void', required
  - `number` string, required
  - `description` string, nullable, required
  - `customer_name` string, nullable, required
  - `email_address` string, nullable, required
  - `collection_method` 'send_invoice' | 'charge_automatically', required
  - `due_at` string, date-time, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `checkout_url` string, nullable, required
  - `pdf_url` string, required: The invoice as a PDF. Anyone with the link can open it, so share it only with the contact.
  - `amount` number, nullable, required
  - `currency` string, nullable, required
  - `paid_at` string, nullable, required
  - `paid_out_of_band` boolean, required: True when the invoice was marked paid for a payment made outside Crevio, such as cash or a bank transfer. No order exists for it.
  - `contact` union: ID by default, full object when expanded
    - string
    - Contact
      - `id` string, required
      - `object` string, required
      - `email` string, required
      - `name` string, nullable, required
      - `first_name` string, nullable, required
      - `last_name` string, nullable, required
      - `phone_number` string, nullable, required
      - `company` string, nullable, required
      - `lifecycle` 'lead' | 'customer', required
      - `became_customer_at` string, date-time, nullable, required
      - `notes` string, nullable, required
      - `confirmed_at` string, date-time, nullable, required
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
      - `deleted_at` string, date-time, nullable, required
      - `purge_at` string, nullable, required
      - `subscribed` boolean
      - `anonymized` boolean, required
      - `metadata` object, required
      - `orders_count` integer, required: Live orders that went through: refunded ones count, while pending, failed and test-mode orders don't.
      - `total_spend` integer, required: Lifetime spend in the smallest unit of the account's currency, net of refunds. Test-mode orders and disputed charges are left out.
      - `tags` unknown[], required
        - unknown
  - `price_variant` union, required: ID by default, full object when expanded
    - string
    - PriceVariant
      - `id` string, required
      - `object` string, required
      - `name` string, required
      - `amount` integer, nullable, required
      - `amount_type` 'free' | 'fixed' | 'custom', required
      - `billing_type` 'subscription' | 'one_time' | 'payment_plan', required
      - `recurring_interval` 'day' | 'week' | 'month' | 'year' | 'null', nullable, required
      - `interval_count` integer, required
      - `installment_count` integer, nullable, required
      - `setup_fee_amount` integer, nullable, required
      - `trial_period_days` integer, nullable, required
      - `revoke_after_days` integer, nullable, required
      - `quantity_available` integer, nullable, required
      - `archived` boolean, nullable, required
      - `position` integer, required
      - `hidden` boolean, nullable, required
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
      - `currency` string, nullable, required
      - `discounted_from_amount` integer, nullable, required
      - `minimum_amount` integer, nullable, required
      - `maximum_amount` integer, nullable, required
      - `preset_amount` integer, nullable, required
      - `waitlist` boolean, required
      - `form_id` string, nullable, required: The form (`form_...`) asked at every checkout of this variant, including waitlist applications. Its answers become a form submission on the order or waitlist entry.
      - `benefits` string[]
      - `cross_sells` string[], required: Price variants (`price_...`) recommended at checkout when this one is bought, at most 2.
      - `purchase_url` string, required
      - `product` string, required
  - `order` union: ID by default, full object when expanded
    - string
    - Order
      - `id` string, required
      - `object` string, required
      - `status` 'succeeded' | 'pending' | 'failed' | 'refunded' | 'partially_refunded' | 'disputed', required
      - `livemode` boolean, required
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
      - `withdrawal_waiver_at` string, nullable, required: When the buyer agreed at checkout to immediate access and to losing the EU 14-day withdrawal right. Null when not asked.
      - `metadata` object, nullable, required
      - `amount` integer, required: Amount charged after discounts, in the smallest currency unit (79 = $0.79).
      - `currency` string, required
      - `amount_refunded` integer, required: Amount refunded so far, in the smallest currency unit.
      - `contact` union, required: ID by default, full object when expanded
        - string
        - Contact
          - `id` string, required
          - `object` string, required
          - `email` string, required
          - `name` string, nullable, required
          - `first_name` string, nullable, required
          - `last_name` string, nullable, required
          - `phone_number` string, nullable, required
          - `company` string, nullable, required
          - `lifecycle` 'lead' | 'customer', required
          - `became_customer_at` string, date-time, nullable, required
          - `notes` string, nullable, required
          - `confirmed_at` string, date-time, nullable, required
          - `created_at` string, date-time, required
          - `updated_at` string, date-time, required
          - `deleted_at` string, date-time, nullable, required
          - `purge_at` string, nullable, required
          - `subscribed` boolean
          - `anonymized` boolean, required
          - `metadata` object, required
          - `orders_count` integer, required: Live orders that went through: refunded ones count, while pending, failed and test-mode orders don't.
          - `total_spend` integer, required: Lifetime spend in the smallest unit of the account's currency, net of refunds. Test-mode orders and disputed charges are left out.
          - `tags` unknown[], required
            - unknown
      - `line_items` OrderItem[]
        - `id` string, required
        - `object` string, required
        - `quantity` integer, required
        - `amount` integer, required
        - `order` union: ID by default, full object when expanded
          - string
          - Order (recursive)
        - `price_variant` union, required: ID by default, full object when expanded
          - string
          - PriceVariant
            - `id` string, required
            - `object` string, required
            - `name` string, required
            - `amount` integer, nullable, required
            - `amount_type` 'free' | 'fixed' | 'custom', required
            - `billing_type` 'subscription' | 'one_time' | 'payment_plan', required
            - `recurring_interval` 'day' | 'week' | 'month' | 'year' | 'null', nullable, required
            - `interval_count` integer, required
            - `installment_count` integer, nullable, required
            - `setup_fee_amount` integer, nullable, required
            - `trial_period_days` integer, nullable, required
            - `revoke_after_days` integer, nullable, required
            - `quantity_available` integer, nullable, required
            - `archived` boolean, nullable, required
            - `position` integer, required
            - `hidden` boolean, nullable, required
            - `created_at` string, date-time, required
            - `updated_at` string, date-time, required
            - `currency` string, nullable, required
            - `discounted_from_amount` integer, nullable, required
            - `minimum_amount` integer, nullable, required
            - `maximum_amount` integer, nullable, required
            - `preset_amount` integer, nullable, required
            - `waitlist` boolean, required
            - `form_id` string, nullable, required: The form (`form_...`) asked at every checkout of this variant, including waitlist applications. Its answers become a form submission on the order or waitlist entry.
            - `benefits` string[]
            - `cross_sells` string[], required: Price variants (`price_...`) recommended at checkout when this one is bought, at most 2.
            - `purchase_url` string, required
            - `product` string, required
        - `product` union, required: ID by default, full object when expanded
          - string
          - Product
            - `id` string, required
            - `object` string, required
            - `name` string, required
            - `slug` string, required
            - `status` 'draft' | 'active' | 'archived', required
            - `description` string, required
            - `confirmation_message` string, nullable, required
            - `created_at` string, date-time, required
            - `updated_at` string, date-time, required
            - `metadata` object, required
            - `body_html` string, required
            - `button_cta` string, nullable, required
            - `url` string, required: Deprecated: a product's page lives wherever its site puts it, so build links from your site's own routes.
            - `available_from` string, date-time, nullable, required
            - `available_until` string, date-time, nullable, required
            - `tax_code` string, nullable, required: Stripe tax code (txcd_XXXXXXXX); null uses the account's default
            - `published_at` string, date-time, nullable, required
            - `reviews_count` integer, required
            - `average_rating` number, nullable, required
            - `seo` union: ID by default, full object when expanded
              - …
            - `media_gallery` MediaGalleryItem[], required
              - …
            - `price_variants` PriceVariant[], required
              - …
            - `reviews` Review[]
              - …
      - `checkout` string, nullable, required: Null for a renewal, which no checkout started.
      - `billing_reason` 'subscription_create' | 'subscription_cycle' | 'null', nullable, required: As Stripe names the invoice: `subscription_create` for the purchase that started a subscription, `subscription_cycle` for each paid renewal after it. Null for a one-time purchase.
      - `subscription` string, nullable, required: The subscription this order started or renewed.
      - `billing_address` Address, nullable, required
        - `name` string, nullable, required
        - `line1` string, nullable, required
        - `line2` string, nullable, required
        - `city` string, nullable, required
        - `state` string, nullable, required
        - `postal_code` string, nullable, required
        - `country` string, nullable, required
      - `shipping_address` Address, nullable, required
        - `name` string, nullable, required
        - `line1` string, nullable, required
        - `line2` string, nullable, required
        - `city` string, nullable, required
        - `state` string, nullable, required
        - `postal_code` string, nullable, required
        - `country` string, nullable, required
      - `charge` string, nullable, required
      - `application_fee_amount` integer, nullable, required: Crevio's platform fee on this payment, in the smallest currency unit. Null when the payment carried no fee, such as a test order, or the order has no charge.
      - `form_submissions` FormSubmission[], required: The buyer's answers to the price variant's form at checkout.
        - `id` string, required
        - `object` string, required
        - `answers` object[], required
          - `field_type` string, required
          - `label` string, required
          - `required` boolean, required
          - `value` union, required: A `consent` answer is `true` when the person ticked it.
            - string
            - string[]
            - boolean
          - `options` string[]
        - `respondent_type` string, required
        - `confirmation_requested_at` string, date-time, nullable, required
        - `confirmed_at` string, date-time, nullable, required
        - `delivered_at` string, date-time, nullable, required
        - `created_at` string, date-time, required
        - `respondent_id` string, required
        - `form_id` string, required

## Other responses

- `400`: The invoice is already paid or void
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-12-05** `ccbd8fcbd6d7`: 5 info
  - added the required property `order/oneOf[#/components/schemas/Order]/line_items/items/price_variant/oneOf[#/components/schemas/PriceVariant]/cross_sells` to the response with the `200` status
  - added the required property `order/oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/price_variants/items/cross_sells` to the response with the `200` status
  - added the required property `order/oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/tax_code` to the response with the `200` status
  - added the required property `pdf_url` to the response with the `200` status
  - …1 more
- **2026-12-02** `63aa87cb8751`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/invoices/:id/mark_paid/post.md)

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) - [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/ccbd8fcbd6d7?raw)
