# Retrieve product details

Retrieving product details fetches a single product object to obtain its detailed information.

This page documents the endpoint used to fetch a single product: GET /products/{code}.

# Pre-requisites

To successfully retrieve a product, the following information is required:

  • A valid auth token with read_catalogue scope obtained through an authentication request or reused if a token with sufficient remaining time-to-live is available. See the dedicated authentication and authorization page.

# Request for retrieving a product

This section provides brief instructions on how to retrieve a product. For more detailed technical information, please refer to the OpenAPI specification (opens new window) and the Postman collection (opens new window).

# Request path

GET https://{environment}/v3/products/{code} HTTP/1.1

# Request headers

Authorization: Bearer {auth_token}

# DEMO request example

The following example retrieves the product MAMVDDMMYY01 in the DEMO environment.

GET https://api.demo.uniqrewards.com/v3/products/MAMVDDMMYY01 HTTP/1.1

Authorization: Bearer eyJraWQiOiJ3XC9TMTNMZXY0dkRhZDFhTHZPSDF5M0xzQmNhd1lTc3c0SjlQeGorczNuYz0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ5amRqeXRjNXp3eTNvdGEzeXplMm5neTBuaiIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoiY2xpZW50X3YzX2RlbW9cL2lzc3VlX3ZvdWNoZXJzIGNsaWVudF92M19kZW1vXC9yZWFkX2NhdGFsb2d1ZSIsImF1dGhfdGltZSI6MTcwNDA3MDgwMCwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLmFwLXNvdXRoZWFzdC0xLmFtYXpvbmF3cy5jb21cL2FwLXNvdXRoZWFzdC0xX1pQQm8xRGZFVCIsImV4cCI6MTcwNDA3NDQwMCwiaWF0IjoxNzA0MDcwODAwLCJ2ZXJzaW9uIjoyLCJqdGkiOiIwYzJjYjIxNC1kOTdjLTQ5NDUtYTc2MS1lZWYzZjJlZDA1ZTEiLCJjbGllbnRfaWQiOiJ5amRqeXRjNXp3eTNvdGEzeXplMm5neTBuaiJ9.lT1Y_nCdCKrYGfK-booBRllLnpb3ekQ0k-nQ6GIWwZrjK6j9pZ9hCn_dbft8u5cGYnxWC4LypE7uNnq329PxXCFVj2YDXt_6i0IR6awTsvimA3wFqt0rb2pVdXKbB2LuP42CiW1NH8kM2_F456_UtYCG5dVbxnANypbdQq4kHEg29HrPuTqtbW6sqXT6b7Xobs2Rjop9AfLSufIGkRuIxKi9MOpkEnZGAhN0zAyOS2eXTFg0QuOIvlL4mwDtDMlIdbHw2NZ0M75rNQa-nzBueg8fcgECNegbJ6_67N26mj3Xbl5k07iMTvs2FQ4VbuvocwS1B5gqJYT9rFxpZOC1mw
Content-Type: application/json

# Retrieve product successful response

A successful response is identified by the 200 OK status code. If any other code is received, the request has failed. See error responses for more information on handling errors.

# Response body

The response body for a successful product retrieval is formatted in JSON and includes the key product containing the requested product object.

{
  "request_id": "{request_id}",
  "product":
      {product_object}
}
  • request_id: The request ID in UUID v4 format, assigned by the API to the request.
  • product_object: A JSON object representing the requested product. The structure of the product object is detailed on the products and catalogue page.

# DEMO response example

Below is a sample response corresponding to the DEMO request example, which returns the details of the MAMVDDMMYY01 demo product.

HTTP/1.1 200 OK

Content-Type: application/json; charset=utf-8
{
  "request_id": "18aec211-85d9-4fe9-b52b-595d77f3d374",
  "product": {
    "product_code": "MAMVDDMMYY01",
    "name": "$10 UNIQGIFT Value Based Test Voucher",
    "description": "UNIQGIFT Value Based Test Voucher",
    "is_value_based": true,
    "is_open_value": false,
    "is_status_available": true,
    "is_multiple_use": true,
    "currency": "SGD",
    "amount": 1000,
    "quantity": null,
    "expiry_scheme": "1 year from issuance",
    "valid_from": "2023-01-01T00:00:00+08:00",
    "valid_until": null,
    "image": "https://images.qa.uniqgift.com/voucher/750x288/MAMVDDMMYY01.jpg",
    "terms_and_conditions": "• This voucher may be used for multiple transactions in denominations of SGD1.00 until it runs out or expires.\n• This voucher is issued by Option Gift Pte Ltd which owns the registered trademark UNIQGIFT.\n• This voucher must be presented before payment.\n• This voucher cannot be exchanged for cash and any unused balance at expiry will not be refunded.\n• This voucher cannot be replaced if lost, damaged, stolen or expired.\n• Option Gift Pte Ltd reserves the right to vary these terms and conditions at any time without prior notice.\n• Option Gift Pte Ltd shall not be responsible for any issue that arises in connection with the redemption and/or use of this voucher and shall not be responsible or held liable for any loss, injury, damage or harm suffered or incurred by or in connection with the redemption or use of the voucher by any person."
  }
}