> For the complete documentation index, see [llms.txt](https://devs.truebit.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devs.truebit.io/integrating-truebit-tasks/get-invoice.md).

# Get Invoice

## API Doc

Interactive API docs can be found at: <https://run.truebit.network/transcript-query/api-docs/>

## Overview

By calling this endpoint, you’ll receive the Invoice Transcript associated with the given  `executionId`  or `transcriptHash`.

## Find transcript invoice by executionId

> Returns the transcript invoice associated with the given executionId parameter

```json
{"openapi":"3.1.0","info":{"title":"Transcript and Invoice","version":"1.148.0"},"tags":[{"name":"Invoice","description":"Invoice info of a task execution"}],"servers":[{"description":"Production","url":"https://run.truebit.network"},{"description":"Current environment relative paths","url":"/"}],"paths":{"/task/{executionId}/transcriptInvoice":{"get":{"operationId":"getTranscriptInvoiceByExecutionId","tags":["Invoice"],"summary":"Find transcript invoice by executionId","description":"Returns the transcript invoice associated with the given executionId parameter","parameters":[{"name":"executionId","in":"path","description":"Execution Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice"}}}},"404":{"description":"Cannot find any invoice for given executionId","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}}},"components":{"schemas":{"Invoice":{"type":"object","properties":{"executionId":{"type":"string"},"taskId":{"type":"string"},"taskCreated_timeStamp":{"type":"integer"},"invoiceId":{"type":"string"},"stepGasPrice":{"type":"number"},"byteGasPrice":{"type":"number"},"accounting_signature":{"type":"string"},"lineItem":{"type":"array","items":{"$ref":"#/components/schemas/LineItem"}}}},"LineItem":{"type":"object","properties":{"operation":{"type":"string","enum":["Pay","Charge","Penalty"]},"account":{"type":"string"},"total_steps_computed":{"type":"integer"},"peak_memory_used":{"type":"integer"},"transferredBytes":{"type":"object","description":"Decoded request/response body sizes captured by the enclave for API executions. Excludes HTTP framing/headers and TLS overhead.","properties":{"requestBodyDecodedBytes":{"type":"integer"},"responseBodyDecodedBytes":{"type":"integer"}}},"reason":{"type":"string"}}}}}}
```

### Response Data

It returns the Invoice Transcript associated with the given `executionId`  or `transcriptHash`  &#x20;

* [Invoice Transcript example](/architecture/execution-transcripts/invoice-transcript.md)
