Payment Requests
Create a payment request
Creates a new payment request.
Supports two flows in a single endpoint:
- Standalone payment — omit tab_id and payment_type; behaves like v2.
- Pay at Table (PAT) — supply tab_id (the tab to link the payment to) and payment_type (FULL or SPLIT). payment_type is required whenever tab_id is present.
Required Scopes (one of the following):
- payment_requests (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)
post/poslink/v3/payment-requests
Request
- Base URLhttps://api.teya.com
- AuthOAuth 2Authorization codehttps://id.teya.com/oauth/v2/oauth-authorizeToken URLhttps://id.teya.com/oauth/v2/oauth-token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring required
A unique key used to identify the request. Repeating the request with the same key will return the same response. Use different keys for different requests. Use the same key for retries of the same request.
Request body
Example request
{
"store_id": "eac4d470-4731-45b2-af6b-c828f03c1f9d",
"terminal_id": "70dc65ba-1c13-492a-82a0-15821e5f63ba",
"requested_amount": {
"amount": 1500,
"currency": "GBP",
"tip": 10
},
"transaction_type": "SALE",
"merchant_reference": "ORDER_123",
"epos_instance_id": "eposName_1",
"basket_transaction_id": "2f1b9c7c-8f0a-4e9c-9b04-8c9f4f0f0a2b"
}Response
Payment request created successfully
Example response
{
"payment_request_id": "dfc4fc52-8293-45b6-9f3e-b3b0f8f88188",
"requested_amount": {
"currency": "GBP",
"amount": 1500,
"tip": 0
},
"status": "NEW",
"transaction_type": "SALE",
"created_at": "2026-04-21T10:05:00Z",
"updated_at": "2026-04-21T10:05:00Z",
"merchant_reference": "ORDER_123",
"terminal_id": "70dc65ba-1c13-492a-82a0-15821e5f63ba",
"store_id": "eac4d470-4731-45b2-af6b-c828f03c1f9d",
"epos_instance_id": "eposName_1"
}Changes
No recorded changes to this operation across all 1 revision of this API.