Retrieve a product

Retrieve a product by ID.
GET
/accounts/{accountID}/products/{productID}
cURL
1
2
curl -X GET "https://api.moov.io/accounts/{accountID}/products/{productID}" \
  -H "Authorization: Bearer {token}" \
200 401 403 404 429 500 504
The request completed successfully.
application/json
A product available for purchase, which may have optional configuration options.
{
  "productID": "dbb08e34-cbbb-47d7-824b-bc71f5b00e6c",
  "title": "string",
  "description": "string",
  "basePrice": {
    "currency": "USD",
    "valueDecimal": "12.987654321"
  },
  "optionGroups": [
    {
      "name": "string",
      "description": "string",
      "minSelect": 0,
      "maxSelect": 1,
      "options": [
        {
          "name": "string",
          "description": "string",
          "priceModifier": {
            "currency": "USD",
            "valueDecimal": "12.987654321"
          },
          "images": [
            {
              "imageID": "bbdcb050-2e05-43cb-812a-e1296cd0c01a",
              "altText": "string",
              "link": "https://api.moov.io/images/q7lKWleAy9fUNhEGezQ1g",
              "publicID": "q7lKWleAy9fUNhEGezQ1g"
            }
          ]
        }
      ]
    }
  ],
  "images": [
    {
      "imageID": "bbdcb050-2e05-43cb-812a-e1296cd0c01a",
      "altText": "string",
      "link": "https://api.moov.io/images/q7lKWleAy9fUNhEGezQ1g",
      "publicID": "q7lKWleAy9fUNhEGezQ1g"
    }
  ],
  "createdOn": "2019-08-24T14:15:22Z",
  "updatedOn": "2019-08-24T14:15:22Z",
  "disabledOn": "2019-08-24T14:15:22Z"
}

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The request contained missing or expired authentication.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The user is not authorized to make the request.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The requested resource was not found.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
Request was refused due to rate limiting.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The request failed due to an unexpected error.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.

x-request-id

string <uuid> required
A unique identifier used to trace requests.

Headers

X-Moov-Version

string

Specify an API version.

API versioning follows the format vYYYY.QQ.BB, where

  • YYYY is the year
  • QQ is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
  • BB is the build number, starting at .01, for subsequent builds in the same quarter.
    • For example, v2024.01.00 is the initial release of the first quarter of 2024.

The latest version represents the most recent development state. It may include breaking changes and should be treated as a beta release. When no version is specified, the API defaults to v2024.01.00.

Path parameters

accountID

string <uuid> required

productID

string <uuid> required

Response

application/json
A product available for purchase, which may have optional configuration options.

basePrice

object required
A product's starting price, before applying modifiers.
Show child attributes

currency

string required Pattern
A 3-letter ISO 4217 currency code.

valueDecimal

string required Pattern

A decimal-formatted numerical string that represents up to 9 decimal place precision.

For example, $12.987654321 is '12.987654321'.

createdOn

string<date-time> required
The date and time when the product was added.

productID

string<uuid> required
Unique identifier for a product.

title

string <=150 characters required

updatedOn

string<date-time> required
The date and time when the product was last updated.

description

string <=5000 characters

A detailed description of the product.

  • Must be valid UTF-8 text
  • Supports Markdown for formatting
  • HTML is not permitted and will be rejected

disabledOn

string<date-time>
The date and time when the product was disabled.

images

array
Optional images associated with the product.
Show child attributes

altText

string <=125 characters
Alternative text for the image.

imageID

string<uuid>
Unique identifier for a product or product option image resource.

link

string<uri>
The image's public URL.

publicID

string
The public ID used to access the image.

optionGroups

array
Optional configuration options for a product, such as size or color.
Show child attributes

description

string <=500 characters

A detailed description of the option group.

  • Must be valid UTF-8 text
  • Supports Markdown for formatting
  • HTML is not permitted and will be rejected

maxSelect

integer<int32>
The maximum number of options that can be selected from this group.

minSelect

integer<int32>

The minimum number of options that must be selected from this group.

A value of 0 indicates that no selection from this group is required.

name

string <=100 characters

options

array
The options available within this group.
Show child attributes

description

string <=500 characters

A detailed description of the option.

  • Must be valid UTF-8 text
  • Supports Markdown for formatting
  • HTML is not permitted and will be rejected

images

array
The images associated with this option.
Show child attributes

altText

string <=125 characters
Alternative text for the image.

imageID

string<uuid>
Unique identifier for a product or product option image resource.

link

string<uri>
The image's public URL.

publicID

string
The public ID used to access the image.

name

string [1 to 100] characters
The display name of a product option.

priceModifier

object
The adjustment applied to a product's base price by this option. Can be negative, positive, or zero.
Show child attributes

currency

string required Pattern
A 3-letter ISO 4217 currency code.

valueDecimal

string required Pattern

A decimal-formatted numerical string that represents up to 9 decimal place precision.

For example, $12.987654321 is '12.987654321'.