Client
TheClient class is the main entry point for interacting with PromoStandards services. It manages authentication credentials, service endpoints, and provides methods for making API requests.
Constructor
Create a new PromoStandards Client instance.Parameters
Configuration options for the client
Username provided by the supplier for authentication
Password provided by the supplier for authentication
Array of service endpoint configurations. See ServiceEndpointType for details.
Response format type. Can be
"json" or "xml". Defaults to "json".Properties
The username used for authentication with PromoStandards services
The password used for authentication with PromoStandards services
Array of configured service endpoints
The response format for API calls. Either
"json" or "xml"Methods
getEndpoint()
Retrieves a specific service endpoint configuration.The name of the service endpoint to retrieve. See ServiceType for valid values.
ServiceEndpointType
Throws: ReferenceError if the specified service endpoint is not configured
promoStandardsAPIRequest()
Generic method for making PromoStandards API requests. This is the underlying method used by all service namespaces.Service and method name in the format
"ServiceName.methodName" (e.g., "ProductData.getProduct")Parameters required for the specified PromoStandards method
Promise<any> - Resolves with the API response in the format specified by the format property
Service Namespaces
The Client provides convenient namespaced methods for each PromoStandards service. Each method is a wrapper aroundpromoStandardsAPIRequest().
productData
Methods for accessing product information.Get detailed product information
Get sellable product information
Get products modified after a specific date
Get close-out product information
mediaContent
Methods for accessing product media and images.Get media content for a product
Get media content modified after a specific date
inventory
Methods for checking product inventory and availability.Get current inventory levels for products
Get available filter values for inventory queries
orderStatus
Methods for retrieving order status information.Get detailed status information for an order
Get available order status types
orderShipmentNotification
Methods for retrieving shipment notifications.Get shipment notification details for an order
invoice
Methods for retrieving invoice information.Get invoice information for orders
productPricingAndConfiguration
Methods for product pricing and configuration options.Get available decoration locations for a product
Get available decoration colors
Get FOB (Freight on Board) points
Get available charges for product configuration
Get complete configuration and pricing information
purchaseOrder
Methods for submitting purchase orders.Submit a purchase order to the supplier