Tiquo
API and AuthenticationClient API

Get Receipt

Retrieve a printable receipt for an authenticated customer's order

Get Receipt

Returns a printable receipt payload for an order owned by the authenticated customer.

Receipts are available for orders that have been paid, refunded, or completed. Draft and pending orders do not have receipts yet.

Endpoint

GET /receipt

Authentication

Requires a valid JWT access token.

Authorization: Bearer eyJhbGciOiJSUzI1NiJ9...

Query Parameters

ParameterTypeRequiredDescription
orderIdstringYesOrder document ID

Example Request

curl "https://edge.tiquo.app/api/client/v1/receipt?orderId=order_123" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9..."

Response

{
  "success": true,
  "data": {
    "order": {
      "id": "order_123",
      "orderNumber": "ORD-001234",
      "status": "completed",
      "paymentStatus": "paid",
      "currency": "GBP",
      "subtotal": 80,
      "taxTotal": 16,
      "discountTotal": 0,
      "total": 96,
      "items": [],
      "createdAt": 1706576400000,
      "completedAt": 1706580000000
    },
    "business": {
      "name": "Tiquo Demo",
      "currency": "GBP"
    },
    "customer": {
      "id": "cust_456",
      "customerNumber": "CUST-000001",
      "displayName": "John Smith",
      "email": "john@example.com"
    }
  }
}

The receipt payload includes order totals and items, business receipt branding, and customer details so a client can render or print the receipt without another API call.

Errors

StatusDescription
400Missing orderId
401Invalid or expired access token
404Receipt is not available for this customer or order
500Internal server error

DOM Package

The DOM Package exposes this endpoint as getReceipt().

const receipt = await auth.getReceipt('order_123');

En esta página