---
title: "Download the invoice PDF of a card payment, issuing the invoice first when it has none"
method: POST
path: "/v1/stripe/transactions/{id}/invoice"
tags: ["Payment"]
---

# Download the invoice PDF of a card payment, issuing the invoice first when it has none

`POST /v1/stripe/transactions/{id}/invoice`

## Request

- Base URL: `https://console-api-sandbox.akash.network`
- URL: `https://console-api-sandbox.akash.network/v1/stripe/transactions/{id}/invoice`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

## Path parameters

- `id` string, uuid, required: ID of the card payment's transaction

## Headers

- `x-organization-id` string
- `x-project-id` string, uuid

## Response `200`

PDF of the card payment's paid invoice

## Other responses

- `400`: The transaction is not a successful card payment
- `403`: The caller cannot read this billing, or cannot have a missing invoice issued
- `404`: No such transaction for the caller, or invoices are not enabled for the caller

## Changes

- **2026-10-16** `5b7494160a65`: 1 breaking, 1 info
  - removed the media type `application/json` for the response with the status `200`
  - added the media type `application/pdf` for the response with the status `200`
- **2026-10-15** `bb97e5bacb6f`: 2 info
  - added the new optional `header` request parameter `x-organization-id`
  - added the new optional `header` request parameter `x-project-id`
- **2026-10-15** `9196ef7d8011`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/akash-network/apis/akash-network-console-api/changes/v1/stripe/transactions/:id/invoice/post.md)

---

[API](https://skmtc.dev/akash-network/apis/akash-network-console-api.md) - [All operations](https://skmtc.dev/akash-network/apis/akash-network-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akash-network/apis/akash-network-console-api/revisions/b959efa6d493?raw)
