Back to top

Sinalite Pricing API

Authenication

Pricing endpoint URL : https://liveapi.sinalite.com Sandbox URL : https://api.sinaliteuppy.com

Resource

POST/auth/token

Get client credentials exchange to get an access token

Example URI

POST /auth/token
Request  Pricing
HideShow
Headers
Content-Type: application/json
Body
{
  "client_id": "QF9NlMmXMum7WS8msa9FLytyBlNtAsju",
  "client_secret": "3fBrlEaxEADtXFf7pfLXvPKqp3nBx-AkAxr3L02hfvgMkZxfOD2G8Xo9xce4CcPj",
  "audience": "https://apiconnect.sinalite.com",
  "grant_type": "client_credentials"
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Inpid2RZR1JwaUUtc0RrYUhESktFZSJ9.eyJpc3MiOiJodHRwczovL3NpbmFsaXRlMi51cy5hdXRoMC5jb20vIiwic3ViIjoiUUY5TmxNbVhNdW03V1M4bXNhOUZMeXR5QmxOdEFzanVAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpY29ubmVjdC5zaW5hbGl0ZTIuY29tIiwiaWF0IjoxNjA1MDY1NTI1LCJleHAiOjE2MDUxNTE5MjUsImF6cCI6IlFGOU5sTW1YTXVtN1dTOG1zYTlGTHl0eUJsTnRBc2p1IiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.kYM18JapyLqv7u9pLXbDKLPCiRX790V5WZEwnftCvQV4xQAru4obCyb3u53kJ769t-tCeil5fPejsQKdANXktLTLS0pjFrspkvWFo4b-oL8HrahKMGjHjVaPIZ5tb1R05WBYiEGbAY72FfrFrYY-3m7E9GElZzeZKO65VF52x8YrVjZxvouiX_SV45szOn-t0jDOukRtKB9MxjtlnMFDnKyqWopNv_paKkwtwJELcP1WrehrT5S03G4_0YgRjXnx5EIaqVKGWWUdcwwMR3U6itOgvrHOWcsS2hOxxSF6-rDbuWC_VnIxakIOTSWNjAgis63HLVP3jpN4CgggxOXFYA",
  "token_type": "Bearer"
}

Pricing

Pricing endpoint URL : https://liveapi.sinalite.com Sandbox URL : https://api.sinaliteuppy.com

Resource

GET/product

Returns list of products.

Example URI

GET /product
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 1,
    "sku": "businesscard_14pt_profit_maximizer",
    "name": "Business cards 14pt (Profit Maximizer)",
    "category": "Business Cards",
    "enabled": 0
  },
  {
    "id": 2,
    "sku": "businesscard_14pt_aq",
    "name": "Business Cards 14pt + AQ ",
    "category": "Business Cards",
    "enabled": 0
  }
]

Resource

GET/product/{id}

Returns specific product general data.

Example URI

GET /product/id
URI Parameters
HideShow
id
number (required) 

Product Id

Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 1,
    "sku": "businesscard_14pt_profit_maximizer",
    "name": "Business cards 14pt (Profit Maximizer)",
    "category": "Business Cards",
    "enabled": 0
  }
]

Resource

GET/product/{id}/{storeCode}

Returns specific product pricing data. Returns 3 arrays:

  • 1st array contains product options.
  • 2nd array contains pricing combination values.
  • 3rd array contains product meta data.
  • Example URI

    GET /product/id/storeCode
    URI Parameters
    HideShow
    id
    number (required) 

    Product Id

    storeCode
    number (required) 

    StoreId ( 6 - Canada , 9 US )

    Response  200
    HideShow
    Headers
    Content-Type: application/json
    Body
    [
      [
        {
          "id": 5,
          "group": "qty",
          "name": "50"
        },
        {
          "id": 105,
          "group": "qty",
          "name": "25"
        },
        {
          "id": 140,
          "group": "Turnaround",
          "name": "2 - 3 Business Days"
        },
        {
          "id": 141,
          "group": "qty",
          "name": "10"
        },
        {
          "id": 277,
          "group": "qty",
          "name": "5"
        },
        {
          "id": 286,
          "group": "qty",
          "name": "15"
        },
        {
          "id": 291,
          "group": "qty",
          "name": "20"
        },
        {
          "id": 292,
          "group": "qty",
          "name": "30"
        },
        {
          "id": 293,
          "group": "qty",
          "name": "40"
        },
        {
          "id": 445,
          "group": "qty",
          "name": "35"
        },
        {
          "id": 446,
          "group": "qty",
          "name": "45"
        },
        {
          "id": 447,
          "group": "Stock",
          "name": "Brown Cardboard"
        },
        {
          "id": 448,
          "group": "size",
          "name": "9 x 12 x 9"
        }
      ],
      [
        {
          "hash": "06a351ed6890839a53d154686237fead",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "0b97ce31bde3beb5633473fca6693164",
          "value": "36"
        },
        {
          "hash": "125c1fbb92f5a9bd394f3da2f8236f48",
          "value": "-1"
        },
        {
          "hash": "1339fb2e9f72a12256a5f59cfd3bd322",
          "value": "50"
        },
        {
          "hash": "14fde6692cb33d388de224f7e971728e",
          "value": "0.79"
        },
        {
          "hash": "19e85452ac9695e3afd23eee5dca5e17",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "1c465b64952494641bedfb5834fd3467",
          "value": "0"
        },
        {
          "hash": "1ca277ffac733c9189b6d6fcab89e9de",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "1e69d8aa6824740c1b6fdafdb2db7d87",
          "value": "-1"
        },
        {
          "hash": "20c5e266192ee943cd484c151e17c460",
          "value": "0.79"
        },
        {
          "hash": "226918a364441f5e713dd30a58c2efd6",
          "value": "50"
        },
        {
          "hash": "254f88a14006f0099a9285547ba01ed4",
          "value": "0"
        },
        {
          "hash": "26f53daee67bf276d842ba6fcf9acffd",
          "value": "0.79"
        },
        {
          "hash": "28294b18eb1afcc117cdb412130f9bd4",
          "value": "50"
        },
        {
          "hash": "2a58c59047afd6d35bac99b44d0679cf",
          "value": "22.5"
        },
        {
          "hash": "2d057747a4536920e3922e8b02b73197",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "319a93d79851cf93268f57539bf59c6b",
          "value": "0.79"
        },
        {
          "hash": "3386a99a854edaf719f05f37adf00874",
          "value": "1"
        },
        {
          "hash": "340d049a09af76b12ea99ce3c79d9ac5",
          "value": "50"
        },
        {
          "hash": "3432e920c6e7c3f7142f1e510b4a1e53",
          "value": "0"
        },
        {
          "hash": "3453131711ea9497b61f85a0175c6132",
          "value": "1"
        },
        {
          "hash": "39eb3fb427a26c4aea3f5fd429cb45bb",
          "value": "0"
        },
        {
          "hash": "3c9c5a6cffa7bb0118537b298bab8b9c",
          "value": "50"
        },
        {
          "hash": "4ba75ed9696c1b8a1e67f6695bc672a9",
          "value": "50"
        },
        {
          "hash": "4bffa2bfbd58d77fd156c14dfe2ca5b6",
          "value": "36"
        },
        {
          "hash": "4f889d6c9a875bd4a3a2b8f5c32950b9",
          "value": "40.5"
        },
        {
          "hash": "50199a69df382cba36b369350c4e43da",
          "value": "1"
        },
        {
          "hash": "534dc2e357f7ce17ff7ae4df23edad47",
          "value": "31.5"
        },
        {
          "hash": "561dbd233195a8411b14fd37620f2820",
          "value": "13.5"
        },
        {
          "hash": "56c03e66704e53871fb1ddbe87307300",
          "value": "18"
        },
        {
          "hash": "5a9612a0db5112bd5df642f5ea2e20e4",
          "value": "0"
        },
        {
          "hash": "5af0a2f68839a442239d7ce16ab9a431",
          "value": "0"
        },
        {
          "hash": "5b39e2cf6360ef83b0148020bfddeba1",
          "value": "0"
        },
        {
          "hash": "5b3b9475252546e9f919b01e463303e1",
          "value": "9"
        },
        {
          "hash": "5d2f5add6ac12c0912fc9672555b4cc7",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "6241ffd68fbe56ba969ec103a7b25c7a",
          "value": "0.79"
        },
        {
          "hash": "6428307b4280306bd3c9d827d958b29d",
          "value": "0"
        },
        {
          "hash": "660f28fe6c4e55751442212891d36768",
          "value": "50"
        },
        {
          "hash": "6a858c96b12c3b88151558d1e64cedea",
          "value": "50"
        },
        {
          "hash": "6affd943ce78483be401ff4e215b52cc",
          "value": "0"
        },
        {
          "hash": "6c50843f9c0395fc360ff171b82bab7a",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "6df35cba55c550e63d1ab16f170bb04d",
          "value": "0.998"
        },
        {
          "hash": "7185bd3f92c38d5401de01f788e23a32",
          "value": "18"
        },
        {
          "hash": "76273a9a053939268b4e8de1847b3f17",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "7bd334699f9e2c4fed2f9d57f62ba922",
          "value": "0"
        },
        {
          "hash": "7d3b52b9e6b9c0c615b4bd7559642f55",
          "value": "31.5"
        },
        {
          "hash": "824fcaed50f299524086c683a720aa96",
          "value": "0.79"
        },
        {
          "hash": "87513ff9c02ac9f82d2b6cef5b1a445b",
          "value": "13.5"
        },
        {
          "hash": "89b3fcbed13d53018c63a69c951ef5ff",
          "value": "1"
        },
        {
          "hash": "8ade75663ad37560617b83ac5733b4bd",
          "value": "0"
        },
        {
          "hash": "94cdbb152b55994279b8c28b98ca36ea",
          "value": "1"
        },
        {
          "hash": "9a95cc2cef07e6103d19c5ad732f67df",
          "value": "0"
        },
        {
          "hash": "9d6028312eabb2861d6fe53186879957",
          "value": "22.5"
        },
        {
          "hash": "9e830017e7584d8b1ea4104d17a80204",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "a1cbb32c6253eb337afec92b3f365145",
          "value": "0"
        },
        {
          "hash": "a7949bcba7c9af7da60f54d9d621eaa8",
          "value": "45"
        },
        {
          "hash": "ac37e3c52ad327676b08d50ee07d4cdf",
          "value": "45"
        },
        {
          "hash": "aebc58288962af6286948f802f59a963",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "b2155963f2cdc3d0d7b55275a097131e",
          "value": "4.5"
        },
        {
          "hash": "b63ad51f2e47725c60de43ddbbdb78fd",
          "value": "50"
        },
        {
          "hash": "bed061634ff8513fca4b777ae87e979e",
          "value": "0"
        },
        {
          "hash": "c150d58f176a47e78d8f07a55199e042",
          "value": "0.79"
        },
        {
          "hash": "c219ee4457a067a0cf94c656326c94b7",
          "value": "0"
        },
        {
          "hash": "c40ae3dde600808414275407b68039b7",
          "value": "1"
        },
        {
          "hash": "ce1c68d74234327d9e45a46787ca6a9e",
          "value": "4.5"
        },
        {
          "hash": "d12275afa1258705c0bc2c98f67e4cd7",
          "value": "0"
        },
        {
          "hash": "d1ec6f4b2f8df8ab83428994cff04552",
          "value": "1"
        },
        {
          "hash": "d81e8b7eb510116d89b0fe0c571088ea",
          "value": "0.79"
        },
        {
          "hash": "d88e1ae9d7e5ea82bfa7f6ee63a332b5",
          "value": "0"
        },
        {
          "hash": "ddf1c7492088c23320d72ef54de84555",
          "value": "0.79"
        },
        {
          "hash": "e0216279a5e1aadb3565ad3291f1691d",
          "value": "1"
        },
        {
          "hash": "e36584ad79ed94b55a5e03f2278d1d91",
          "value": "50"
        },
        {
          "hash": "e3c4dd2bb47288667b11d601b5593bfe",
          "value": "27"
        },
        {
          "hash": "e4e1680071ec6755c6efe67a7e8c1be2",
          "value": "9 x 9 x 12"
        },
        {
          "hash": "e61fc4748523945ef890b91eec235ee1",
          "value": "27"
        },
        {
          "hash": "e71408dd02d7a8ec9e4f6d0881c4971a",
          "value": "1"
        },
        {
          "hash": "ebe6d3db1662eb44cbabe03c958a10ce",
          "value": "1"
        },
        {
          "hash": "ec4c81100ac796621a23ded513c480d7",
          "value": "0"
        },
        {
          "hash": "f04eec78e162a39511b542f2a4d1862f",
          "value": "0"
        },
        {
          "hash": "f0bee60173aae6ca1263db0873c6c850",
          "value": "9"
        },
        {
          "hash": "f58826f981f8ba6709e0b26207bde8f7",
          "value": "0"
        },
        {
          "hash": "fd7c4b2f2ac37b8591680bf3a6015290",
          "value": "40.5"
        }
      ],
      [
        {
          "metadata": "custom_size"
        },
        {
          "metadata": "shapes"
        }
      ]
    ]

    Resource

    POST/price/{id}/{storeCode}

    Returns price and shipping data for a product combination

    Example URI

    POST /price/id/storeCode
    URI Parameters
    HideShow
    id
    number (required) 

    Product Id

    storeCode
    number (required) 

    StoreId ( 6 - Canada , 9 US )

    Request  Pricing
    HideShow
    Headers
    Content-Type: application/json
    Body
    {
        productOptions: [optionIds...]
    }
    Response  200
    HideShow
    Headers
    Content-Type: application/json
    Body
    {
      "price": "4.99",
      "packageInfo": {
        "total weight": "4.5",
        "weight per box": "4.5",
        "Units Per Box": "50",
        "box size": "9 x 9 x 12",
        "number of boxes": "1"
      },
      "productOptions": {
        "Stock": "Brown Cardboard",
        "size": "9 x 12 x 9",
        "qty": "5",
        "Turnaround": "2 - 3 Business Days"
      }
    }

    Resource

    GET/variants/{id}/{offset}

    Returns variants for products, 1000 variants returned

    Example URI

    GET /variants/id/offset
    URI Parameters
    HideShow
    id
    number (required) 

    Product Id

    offset
    number (optional) 

    Offset value

    Response  200
    HideShow
    Headers
    Content-Type: application/json
    Body
    [
      {
        "price": 65.59,
        "key": "5-140-447-448"
      },
      {
        "price": 32.8,
        "key": "105-140-447-448"
      },
      {
        "price": 13.12,
        "key": "140-141-447-448"
      },
      {
        "price": 8.29,
        "key": "140-277-447-448"
      },
      {
        "price": 19.68,
        "key": "140-286-447-448"
      },
      {
        "price": 26.24,
        "key": "140-291-447-448"
      },
      {
        "price": 39.36,
        "key": "140-292-447-448"
      },
      {
        "price": 52.48,
        "key": "140-293-447-448"
      },
      {
        "price": 45.92,
        "key": "140-445-447-448"
      },
      {
        "price": 59.04,
        "key": "140-446-447-448"
      }
    ]

    Resource

    GET/pricedbykey/{id}/{key}

    Returns variant price from product id and key

    Example URI

    GET /pricedbykey/id/key
    URI Parameters
    HideShow
    id
    number (required) 

    Product Id

    key
    number (required) 

    Variant Key

    Response  200
    HideShow
    Headers
    Content-Type: application/json
    Body
    [
      {
        "price": 22.51
      }
    ]

    Order

    Order endpoint URL : https://liveapi.sinalite.com Sandbox URL : https://api.sinaliteuppy.com

    Country Code List

    • CA

    • US

    US State Code List

    • AL - Alabama

    • AK - Alaska

    • AS - American Samoa

    • AZ - Arizona

    • AR - Arkansas

    • AE - Armed Forces Africa

    • AA - Armed Forces Americas

    • AE - Armed Forces Canada

    • AE - Armed Forces Europe

    • AE - Armed Forces Middle East

    • AP - Armed Forces Pacific

    • CA - California

    • CO - Colorado

    • CT - Connecticut

    • DE - Delaware

    • DC - District of Columbia

    • FM - Federated States Of Micronesia

    • FL - Florida

    • GA - Georgia

    • GU - Guam

    • HI - Hawaii

    • ID - Idaho

    • IL - Illinois

    • IN - Indiana

    • IA - Iowa

    • KS - Kansas

    • KY - Kentucky

    • LA - Louisiana

    • ME - Maine

    • MH - Marshall Islands

    • MD - Maryland

    • MA - Massachusetts

    • MI - Michigan

    • MN - Minnesota

    • MS - Mississippi

    • MO - Missouri

    • MT - Montana

    • NE - Nebraska

    • NV - Nevada

    • NH - New Hampshire

    • NJ - New Jersey

    • NM - New Mexico

    • NY - New York

    • NC - North Carolina

    • ND - North Dakota

    • MP - Northern Mariana Islands

    • OH - Ohio

    • OK - Oklahoma

    • OR - Oregon

    • PW - Palau

    • PA - Pennsylvania

    • PR - Puerto Rico

    • RI - Rhode Island

    • SC - South Carolina

    • SD - South Dakota

    • TN - Tennessee

    • TX - Texas

    • UT - Utah

    • VT - Vermont

    • VI - Virgin Islands

    • VA - Virginia

    • WA - Washington

    • WV - West Virginia

    • WI - Wisconsin

    • WY - Wyoming

    CA Province Code List

    • AB - Alberta

    • BC - British Columbia

    • MB - Manitoba

    • NL - Newfoundland and Labrador

    • NB - New Brunswick

    • NS - Nova Scotia

    • NT - Northwest Territories

    • NU - Nunavut

    • ON - Ontario

    • PE - Prince Edward Island

    • QC - Quebec

    • SK - Saskatchewan

    • YT - Yukon Territory

    Shipping Method List

    • UPS Standard

    • UPS Express

    • UPS Expedited

    • UPS Express Saver

    • UPS Worldwide Expedited

    • UPS Saver

    • FedEx Standard Overnight

    • FedEx Economy

    • FedEx Express Saver

    • FedEx International Economy

    • FedEx International Priority

    Resource

    POST/order/new

    Placing an order

    Example URI

    POST /order/new
    Request  Order
    HideShow
    Headers
    Content-Type: application/json
    Body
    {
      "items": [
        {
          "productId": 1,
          "options": {
            "Stock": "30",
            "size": "4",
            "qty": "105",
            "Coating": "93",
            "Round Corners": "540",
            "Turnaround": "140"
          },
          "files": [
            {
              "type": "front",
              "url": "https://sinalite.com/pdf1.pdf"
            },
            {
              "type": "back",
              "url": "https://sinalite.com/pdf2.pdf"
            }
          ]
        },
        {
          "productId": 18,
          "options": {
            "Stock": "30",
            "size": "59",
            "qty": "7",
            "Coating": "133",
            "Bundling": "80",
            "Scoring": "89",
            "Turnaround": "78"
          },
          "files": [
            {
              "type": "front",
              "url": "https://sinalite.com/pdf3.pdf"
            }
          ]
        }
      ],
      "shippingInfo": {
        "ShipFName": "Arthur",
        "ShipLName": "Chan",
        "ShipEmail": "arthur.chan@sinalite.com",
        "ShipAddr": "335 Steelcase W",
        "ShipAddr2": "",
        "ShipCity": "Markham",
        "ShipState": "ON",
        "ShipZip": "L3R 1G3",
        "ShipCountry": "CA",
        "ShipPhone": "1234567890",
        "ShipMethod": "UPS Standard"
      },
      "billingInfo": {
        "BillFName": "Arthur",
        "BillLName": "Chan",
        "BillEmail": "arthur.chan@sinalite.com",
        "BillAddr": "335 Steelcase W",
        "BillAddr2": "",
        "BillCity": "335 Steelcase W",
        "BillState": "ON",
        "BillZip": "L3R 1G3",
        "BillCountry": "CA",
        "BillPhone": "1234567890"
      },
      "notes": "Business Card Test Order"
    }
    Response  200
    HideShow
    Headers
    Content-Type: application/json
    Body
    {
      "message": "Order Placed!",
      "orderId": 15,
      "status": "success"
    }

    Resource

    POST/order/shippingEstimate

    Requesting shipping rates and shipping methods

    Response Body

    • Carrier Name

    • Carrier Method

    • Price

    • Shipping Days

    Example URI

    POST /order/shippingEstimate
    Request  ShippingEstimate
    HideShow
    Headers
    Content-Type: application/json
    Body
    {
    "items": [
    {
      "productId": 1,
      "options": {
        "Stock": "30",
        "size": "4",
        "qty": "105",
        "Coating": "93",
        "Round Corners": "540",
        "Turnaround": "140"
      }
    }
    ],
    "shippingInfo": {
    "ShipState": "ON",
    "ShipZip": "L3R 1G3",
    "ShipCountry": "CA",
    }
    }
    Response  200
    HideShow
    Headers
    Content-Type: application/json
    Body
    {
      "statusCode": 200,
      "body": [
        [
          "UPS",
          "UPS Standard",
          9.1,
          1
        ],
        [
          "UPS",
          "UPS Expedited",
          12.82,
          1
        ],
        [
          "UPS",
          "UPS Express Saver",
          15.67,
          1
        ],
        [
          "UPS",
          "UPS Express",
          23.58,
          1
        ],
        [
          "Federal Express",
          "FedEx Standard Overnight",
          9.67,
          1
        ]
      ]
    }

    Generated by aglio on 29 Jun 2022