> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api-docs.papertracc.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api-docs.papertracc.com/_mcp/server.

# Get Receipt

GET https://api.papertracc.com/v1/receipts/{id}

Fetches one receipt. When the customer paid net of withholding tax, `wht_tax_id`, `wht_rate`, `wht_base` and `wht_amount` describe the tax withheld. `amount` is the gross settled against the invoice, and the cash received is `amount` less `wht_amount`.

Requires the `can_view_sales_receipt` permission on the key owner's role.

**Keys:** secret key only.

Reference: https://api-docs.papertracc.com/core/sales/receipts/get-receipt

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.
- `identity` header (required) — The identity for the active workspace.

## Servers

- `https://api.papertracc.com/v1` (Production, default)
- `https://api.papertracc.com/rc-1` (Release Candidate 1)

## Request

### Path parameters

- `id` (string, required)

## Response

### 200

OK

- `data` (ReceiptsIdGetResponsesContentApplicationJsonSchemaData, required)
- `status` (boolean, required)
- `message` (string, required)

## Errors

### 401 Unauthorized Error

The API key is missing or invalid, the key owner is no longer an active member of the organisation, or the key owner is not a member of the workspace in the `identity` header.

- `status` (boolean, required)
- `message` (string, required)
- `error_code` (enum, optional) — Machine-readable reason. Present on 402 and 403 responses.
  - Allowed values: `PERMISSION_DENIED`, `SERVICE_DISABLED`, `OPEN_API_NOT_ENABLED`
- `permission` (string, optional) — The role permission the request needs. Set when `error_code` is `PERMISSION_DENIED`.
- `service` (string, optional) — The workspace service that is turned off. Set when `error_code` is `SERVICE_DISABLED`.

### 402 Payment Required Error

The workspace's subscription plan does not include the Open API.

- `status` (boolean, required)
- `message` (string, required)
- `error_code` (enum, optional) — Machine-readable reason. Present on 402 and 403 responses.
  - Allowed values: `PERMISSION_DENIED`, `SERVICE_DISABLED`, `OPEN_API_NOT_ENABLED`
- `permission` (string, optional) — The role permission the request needs. Set when `error_code` is `PERMISSION_DENIED`.
- `service` (string, optional) — The workspace service that is turned off. Set when `error_code` is `SERVICE_DISABLED`.

### 403 Forbidden Error

Either the key owner's role does not include the permission this endpoint needs (`PERMISSION_DENIED`), or the service this endpoint belongs to is turned off for the workspace (`SERVICE_DISABLED`).

- `status` (boolean, required)
- `message` (string, required)
- `error_code` (enum, optional) — Machine-readable reason. Present on 402 and 403 responses.
  - Allowed values: `PERMISSION_DENIED`, `SERVICE_DISABLED`, `OPEN_API_NOT_ENABLED`
- `permission` (string, optional) — The role permission the request needs. Set when `error_code` is `PERMISSION_DENIED`.
- `service` (string, optional) — The workspace service that is turned off. Set when `error_code` is `SERVICE_DISABLED`.

## Types

### ReceiptsIdGetResponsesContentApplicationJsonSchemaData

- `id` (string, required)
- `items` (list of ReceiptsIdGetResponsesContentApplicationJsonSchemaDataItemsItems, required)
- `amount` (string, required)
- `status` (string, required)
- `content` (ReceiptsIdGetResponsesContentApplicationJsonSchemaDataContent, required)
- `customer` (ReceiptsIdGetResponsesContentApplicationJsonSchemaDataCustomer, required)
- `account_id` (string, required)
- `created_at` (datetime, required)
- `project_id` (string, required)
- `adjustments` (list of ReceiptsIdGetResponsesContentApplicationJsonSchemaDataAdjustmentsItems, required)
- `receipt_date` (datetime, required)
- `currency_code` (string, required)
- `exchange_rate` (string, required)
- `journal_status` (string, required)
- `reverse_charge` (boolean, required)
- `journal_entry_id` (string, required)
- `receipt_reference` (string, required)
- `file_url` (any, optional)
- `sales_personnel` (ReceiptsIdGetResponsesContentApplicationJsonSchemaDataSalesPersonnel, optional, nullable)
- `wht_tax_id` (string, optional, nullable) — The withholding tax profile applied when the customer paid net of withholding tax, or null.
- `wht_rate` (string, optional) — The withholding rate applied, as a percentage.
- `wht_base` (string, optional) — The amount the withholding rate was applied to.
- `wht_amount` (string, optional) — The tax withheld by the customer. `amount` is the gross settled against the invoice; the cash received is `amount` less `wht_amount` and any `discount_amount`.
- `discount_amount` (string, optional) — The early-payment discount allowed on this receipt. 0.00 when none was taken. The cash received is `amount` less `wht_amount` and `discount_amount`.

### ReceiptsIdGetResponsesContentApplicationJsonSchemaDataItemsItems

- `rate` (string, required) — Decimal value serialized as a string, e.g. "12.50".
- `amount` (string, required) — Decimal value serialized as a string, e.g. "12.50".
- `detail` (string, required)
- `tax_id` (string, required)
- `quantity` (double, required) — Quantity of the line, as a number with at most 4 decimal places.
- `account_id` (string, required)
- `inventory_id` (string, required)
- `currency_code` (string, required)
- `sku` (string, optional) — SKU of the inventory item the line is tied to. Empty when the line was created without a `sku`.
- `tax_name` (string, optional)
- `vat` (string, optional)
- `unit` (string, optional) — Unit of measure for the line: the item's selling unit (`EACH`, `G`, `KG`, `OZ`, `LB`, `ML`, `L`, `FL_OZ`, `CM`, `M`, `IN`, `FT`, `YD`) or the label sent on the request. Omitted when the line has no unit.

### ReceiptsIdGetResponsesContentApplicationJsonSchemaDataContent

### ReceiptsIdGetResponsesContentApplicationJsonSchemaDataCustomer

- `id` (string, required)
- `type` (string, required)
- `email` (string, required)
- `phone` (string, required)
- `accounts` (list of ReceiptsIdGetResponsesContentApplicationJsonSchemaDataCustomerAccountsItems, required)
- `last_name` (string, required)
- `contact_id` (string, required)
- `created_at` (datetime, required)
- `first_name` (string, required)
- `project_id` (string, required)
- `company_name` (string, required)
- `display_name` (string, required)
- `billing_address` (ReceiptsIdGetResponsesContentApplicationJsonSchemaDataCustomerBillingAddress, required)
- `shipping_address` (ReceiptsIdGetResponsesContentApplicationJsonSchemaDataCustomerShippingAddress, required)
- `payment_term_id` (string, optional, nullable) — The contact's default payment term, or null when none is set.

### ReceiptsIdGetResponsesContentApplicationJsonSchemaDataAdjustmentsItems

- `name` (string, required)
- `type` (string, required)
- `value` (string, required) — Decimal value serialized as a string, e.g. "12.50".
- `amount` (string, required) — Decimal value serialized as a string, e.g. "12.50".
- `operation` (string, required)
- `account_id` (string, required)

### ReceiptsIdGetResponsesContentApplicationJsonSchemaDataSalesPersonnel

- `id` (string, optional)
- `project_id` (string, optional)
- `display_name` (string, optional)
- `first_name` (string, optional)
- `last_name` (string, optional)
- `email` (string, optional)
- `phone` (string, optional)
- `is_active` (boolean, optional)
- `created_at` (datetime, optional)

### ReceiptsIdGetResponsesContentApplicationJsonSchemaDataCustomerAccountsItems

- `bank` (string, required)
- `code` (string, required)
- `vat_id` (string, required)
- `is_default` (boolean, required)
- `account_name` (string, required)
- `currency_code` (string, required)
- `account_number` (string, required)

### ReceiptsIdGetResponsesContentApplicationJsonSchemaDataCustomerBillingAddress

- `city` (string, required)
- `name` (string, required)
- `phone` (string, required)
- `state` (string, required)
- `country` (string, required)
- `post_code` (string, required)
- `address_one` (string, required)
- `country_code` (string, required)

### ReceiptsIdGetResponsesContentApplicationJsonSchemaDataCustomerShippingAddress

- `city` (string, required)
- `name` (string, required)
- `phone` (string, required)
- `state` (string, required)
- `country` (string, required)
- `post_code` (string, required)
- `address_one` (string, required)
- `country_code` (string, required)

## Examples

**Response**

```json
{
  "data": {
    "id": "9439e8d1-2ce3-45a4-bc4c-d12c7a5140b2",
    "items": [
      {
        "rate": "50000.00",
        "amount": "500000.00",
        "detail": "Consulting hours",
        "tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
        "quantity": 10,
        "account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
        "inventory_id": "55a40b4d-a23a-49aa-a417-828913e9a5c8",
        "currency_code": "NGN",
        "sku": "SKU-1001"
      }
    ],
    "amount": "537500.00",
    "status": "POSTED",
    "content": {},
    "customer": {
      "id": "7d2c9c72-392c-4f8d-b3f1-c1fef2c2d501",
      "type": "INDIVIDUAL",
      "email": "john@example.com",
      "phone": "+2348012345678",
      "accounts": [
        {
          "bank": "Spruce Bank",
          "code": "044",
          "vat_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
          "is_default": true,
          "account_name": "John Doe",
          "currency_code": "NGN",
          "account_number": "1234567890"
        }
      ],
      "last_name": "Doe",
      "contact_id": "64595845-34ec-482c-b0fe-ae617a0f8335",
      "created_at": "2026-06-18T10:00:00Z",
      "first_name": "John",
      "project_id": "spruce-demo",
      "company_name": "Acme Corp",
      "display_name": "John Doe",
      "billing_address": {
        "city": "Lagos",
        "name": "Office",
        "phone": "+2348012345678",
        "state": "Lagos",
        "country": "Nigeria",
        "post_code": "100001",
        "address_one": "12 Marina Road",
        "country_code": "NG"
      },
      "shipping_address": {
        "city": "Lagos",
        "name": "Office",
        "phone": "+2348012345678",
        "state": "Lagos",
        "country": "Nigeria",
        "post_code": "100001",
        "address_one": "12 Marina Road",
        "country_code": "NG"
      },
      "payment_term_id": null
    },
    "account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
    "created_at": "2026-06-18T10:00:00Z",
    "project_id": "spruce-demo",
    "adjustments": [
      {
        "name": "VAT",
        "type": "PERCENTAGE_RATE",
        "value": "7.50",
        "amount": "37500.00",
        "operation": "ADDITION",
        "account_id": "2b0d1461-e52e-4a1a-a69c-11801431c2c9"
      }
    ],
    "receipt_date": "2026-06-18T10:00:00Z",
    "currency_code": "NGN",
    "exchange_rate": "1.00",
    "journal_status": "POSTED",
    "reverse_charge": false,
    "journal_entry_id": "JE-0001",
    "receipt_reference": "RCT-0001",
    "sales_personnel": null,
    "wht_tax_id": null,
    "wht_rate": "0.00",
    "wht_base": "0.00",
    "wht_amount": "0.00",
    "discount_amount": "0.00"
  },
  "status": true,
  "message": "Successfully fetched receipt"
}
```

**SDK Code**

```python Sales_Receipts_Get Receipt_example
import requests

url = "https://api.papertracc.com/v1/receipts/id"

headers = {"Authorization": "Bearer <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Sales_Receipts_Get Receipt_example
const url = 'https://api.papertracc.com/v1/receipts/id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Sales_Receipts_Get Receipt_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.papertracc.com/v1/receipts/id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Sales_Receipts_Get Receipt_example
require 'uri'
require 'net/http'

url = URI("https://api.papertracc.com/v1/receipts/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

response = http.request(request)
puts response.read_body
```

```java Sales_Receipts_Get Receipt_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.papertracc.com/v1/receipts/id")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

```php Sales_Receipts_Get Receipt_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.papertracc.com/v1/receipts/id', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Sales_Receipts_Get Receipt_example
using RestSharp;

var client = new RestClient("https://api.papertracc.com/v1/receipts/id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Sales_Receipts_Get Receipt_example
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.papertracc.com/v1/receipts/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```