How to get configuration and pricing
Educational video from PromoStandards
Function GetConfigurationAndPricing
In order to get configuration and pricing for a given product we need to use Product, Pricing and Configuration service (PPC). Our API allows easy access by a GET request to our pricing-and-configuration endpoint.
HTTP VERB: GET
URL: https://api.psrestful.com/v1.0.0/suppliers/{SUPPLIER_CODE}/pricing-and-configuration/{PRODUCT_ID}/
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
currency | string | Yes | Currency code (e.g., USD, CAD) |
fob_id | string | Yes | FOB point ID (get from FOB Points) |
price_type | string | Yes | Customer or List. Customer pricing requires supplier credentials |
configuration_type | string | No | Blank or Decorated (default: Decorated) |
part_id | string | No | Filter pricing for a specific part/variant |
localization_country | string | No | Country code (default: US) |
localization_language | string | No | Language code (default: en) |
environment | string | No | Environment: PROD or STAGING (default: PROD) |
Example Request
curl -X GET "https://api.psrestful.com/v1.0.0/suppliers/alphabroder/pricing-and-configuration/SM-3534/?currency=USD&price_type=List&configuration_type=Blank&fob_id=33013" \
-H "X-API-Key: your-api-key"Example Response
This is the response from calling with:
SUPPLIER_CODE = alphabroder
PRODUCT_ID = SM-3534
The response has been truncated to show 2 FOB points:
{
"FobPointArray": {
"FobPoint": [
{
"fobId": "BX",
"fobPostalCode": "06610",
"fobCity": "BRIDGEPORT",
"fobState": "CT",
"fobCountry": "US",
"CurrencySupportedArray": {
"CurrencySupported": [
{
"currency": "USD"
}
]
},
"ProductArray": {
"Product": [
{
"productId": "C1717"
}
]
}
},
{
"fobId": "CC",
"fobPostalCode": "60490",
"fobCity": "Bolingbrook",
"fobState": "IL",
"fobCountry": "US",
"CurrencySupportedArray": {
"CurrencySupported": [
{
"currency": "USD"
}
]
},
"ProductArray": {
"Product": [
{
"productId": "C1717"
}
]
}
}
]
},
"ErrorMessage": null
}Response Structure
| Field | Description |
|---|---|
FobPointArray | Array of FOB (shipping origin) points with pricing |
fobId | FOB point identifier |
fobPostalCode | Postal code of the FOB location |
fobCity / fobState / fobCountry | Location details |
CurrencySupportedArray | Currencies available at this FOB point |
ProductArray | Products available at this FOB point |
Price Types
| Type | Description |
|---|---|
List | Standard list pricing (no credentials required) |
Customer | Your negotiated pricing (requires supplier credentials) |
Configuration Types
| Type | Description |
|---|---|
Blank | Pricing for undecorated products |
Decorated | Pricing including decoration/imprint |
Typical Workflow
- Get FOB Points to find available shipping origins
- Get Available Locations to find decoration locations
- Get Available Charges to understand additional fees
- Call this endpoint with the required parameters to get pricing
Related Guides
- Get FOB Points - Get shipping origin points (required for
fob_id) - Get Available Locations - Get decoration locations
- Get Available Charges - Get additional charges
- Get Decoration Colors - Get available decoration colors