GuidesPPCGet Decoration Colors

How to get decoration colors

Function getDecorationColors

In order to get possible decoration colors for a particular product at a specific location, we need to use Product, Pricing and Configuration service (PPC). Our API allows easy access by a GET request to our decoration-colors endpoint.

HTTP VERB: GET

URL: https://api.psrestful.com/v1.0.0/suppliers/{SUPPLIER_CODE}/decoration-colors/{PRODUCT_ID}/

Query Parameters

ParameterTypeRequiredDescription
location_idintegerYesLocation ID (get from Available Locations)
decoration_idintegerNoFilter by specific decoration method
localization_countrystringNoCountry code (default: US)
localization_languagestringNoLanguage code (default: en)
environmentstringNoEnvironment: PROD or STAGING (default: PROD)

Example Request

curl -X GET "https://api.psrestful.com/v1.0.0/suppliers/HIT/decoration-colors/55414/?location_id=53" \
  -H "X-API-Key: your-api-key"

Example Response

This is the response from calling with: SUPPLIER_CODE = HIT PRODUCT_ID = 55414 location_id = 53

The response has been truncated to show 5 colors:

{
    "DecorationColors": {
        "productId": "55414",
        "locationId": "53",
        "pmsMatch": true,
        "fullColor": true,
        "ColorArray": {
            "Color": [
                {
                    "colorName": "Athletic Gold",
                    "hex": null,
                    "approximatePms": null,
                    "standardColorName": null
                },
                {
                    "colorName": "Black",
                    "hex": null,
                    "approximatePms": null,
                    "standardColorName": null
                },
                {
                    "colorName": "Navy Blue",
                    "hex": null,
                    "approximatePms": null,
                    "standardColorName": null
                },
                {
                    "colorName": "Red",
                    "hex": null,
                    "approximatePms": null,
                    "standardColorName": null
                },
                {
                    "colorName": "White",
                    "hex": null,
                    "approximatePms": null,
                    "standardColorName": null
                }
            ]
        },
        "DecorationMethodArray": {
            "DecorationMethod": [
                {
                    "decorationId": 3471228,
                    "decorationName": "Pad Print"
                },
                {
                    "decorationId": 3471229,
                    "decorationName": "Laser Engrave"
                }
            ]
        }
    },
    "ErrorMessage": null
}

Response Structure

FieldDescription
productIdProduct identifier
locationIdLocation identifier for the decoration
pmsMatchWhether PMS color matching is available
fullColorWhether full-color printing is available
ColorArrayArray of available colors
DecorationMethodArrayArray of decoration methods available at this location

Color Fields

FieldDescription
colorNameName of the color
hexHex color code (if available)
approximatePmsApproximate PMS color match
standardColorNameStandardized color name

Typical Workflow

  1. Get Available Locations to find decoration locations
  2. Call this endpoint with the location_id to get available colors
  3. Use color and decoration information when placing orders

Use Cases

  • Design mockups: Know what colors are available for decoration
  • Customer presentations: Show available imprint colors
  • Order placement: Specify valid colors when ordering