---
title: "Get receipt text for a payment request"
method: GET
path: "/poslink/v3/payment-requests/{payment-request-id}/receipt-text"
tags: ["Payment Requests"]
---

# Get receipt text for a payment request

`GET /poslink/v3/payment-requests/{payment-request-id}/receipt-text`

## Request

- Base URL: `https://api.teya.com`
- URL: `https://api.teya.com/poslink/v3/payment-requests/{payment-request-id}/receipt-text`
- Auth: OAuth 2
  - Authorization code: `https://id.teya.com/oauth/v2/oauth-authorize`
  - Token URL: `https://id.teya.com/oauth/v2/oauth-token`
- TypeScript: <https://skmtc.dev/teya/apis/poslink-api/docs/poslink/v3/payment-requests/:payment-request-id/receipt-text/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a JSON response with a `receipt_text` field containing the plain-text receipt for a SUCCESSFUL payment request or refund.

The receipt includes store name and address, UTC transaction date/time, amount/tip/total, card details, AID, MID, TID, approval code, response code, entry mode, verification method, card type, card issuing country, DCC details, and receipt references.
Optional fields are omitted if absent - no blank labels are printed.

**Required Scopes (one of the following):**

- `payment_requests/id` (returned via the register API: `POST /poslink/v1/epos/register`)
- `default_access` (deprecated, will be removed in the future; included for backward compatibility with existing integrations)

## Path parameters

- `payment-request-id` string, uuid, required

## Response `200`

Receipt text for the successful payment request

- ReceiptTextResponse
  - `receipt_text` string, required: Plain-text receipt representation of the successful payment request. Fields absent from the payment metadata are omitted rather than printed as blanks.

## Other responses

- `400`: Bad request
- `401`: Lacks valid authentication credentials for the requested resource
- `403`: The server understands the request but refuses to authorize it
- `404`: Payment request not found, store not found, or transaction metadata missing
- `408`: Request timeout
- `429`: Too many requests in a given amount of time
- `500`: Internal Server Error

---

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