Transactions
Create a digital receipt for a transaction
API to allow merchants to request the generation of a digital receipt for a transaction. <br><strong>Access Token Required scope:</strong> transactions/id/receipts/create
post/v1/transactions/{transaction_id}/receipts
Request
- Base URLhttps://docs.teya.com (the document declares no server; this is the origin it was published from)
- Authnone declared. Required headers: User-Agent
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
transaction_idstring required
Transaction id whose receipt we want to generate
Example:5f7b1a3a-3b7a-4b1a-9b1a-3a3b7a4b1a9b
Headers
User-Agentstring required
Example:YourCompany-Integration/1.0
Identifies your integration, for example YourCompany-Integration/1.0. Requests without a User-Agent can be blocked by our firewall before they reach the API.
Request body
Example request
{
"country_code": "GB",
"language": "en-GB",
"recipient_phone_numbers": [
"+123456789",
"+987654321"
],
"recipient_emails": [
"johndoe@mail.com",
"examplemail@email.com"
]
}Response
Receipt successfully enqueued for generation
Example response
{
"receipt_id": "01916f63-c6e0-75a9-9ef4-764ba287b2c6",
"transaction_id": "60cca1c7-38c5-4218-ba71-fb4a96836619",
"url": "https://receipts.teya.com/01916f63-c6e0-75a9-9ef4-764ba287b2c6"
}Changes
No recorded changes to this operation across all 1 revision of this API.