---
title: "Trigger the payment of an unpaid eSIM invoice. Can only be used for invoices with 'balance' payment method."
method: POST
path: "/esims/invoice/{id}/pay"
tags: ["Invoices"]
---

# Trigger the payment of an unpaid eSIM invoice. Can only be used for invoices with 'balance' payment method.

`POST /esims/invoice/{id}/pay`

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

Success

- object
  - `meta` object
  - `data` Invoice
    - `id` string
    - `created_time` string
    - `completed_time` string
    - `status` string
    - `user` object
      - `id` string
      - `email` string
    - `payment` object
      - `method` string
      - `address` string
      - `currency` string
      - `price` number
      - `status` string
      - `commission` number
    - `orders` object[]
      - `id` string
      - `status` string
      - `product` object
        - `id` string
        - `name` string
        - `value` string
        - `currency` string
        - `image` string
        - `_href` string
      - `created_time` string
      - `delivered_time` string

## Other responses

- `403` — Forbidden. Not enough funds.
- `404` — Invoice not found or already paid.

---

[API](https://skmtc.dev/bitrefill/apis/bitrefill-api-documentation.md) · [All operations](https://skmtc.dev/bitrefill/apis/bitrefill-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bitrefill/bitrefill-api-documentation/revisions/09e1bde6bae5/schema)
