Media Content 1.1.0

PROMOTIONAL PRODUCTS DATA INTERFACE SPECIFICATION FOR WEB SERVICES

PromoStandards Logo

Media Content Service

Version: 1.1.0
Release Date: 2017-07-18

Document Change Log

VersionDateReason for ChangeAuthors
1.1.022017-07-18Resolves the reported validation issue where Location and Decoration array require at least one element when these arrays should be optional.Paul Fleischman - PCNA

Abstract and Recommended Audience

This document describes the technologies for integration of suppliers and distributors in the Promotional Products Industry. This document will discuss in detail the technology required in order to build the interface. Additionally, this document will provide sample code in order to use the interface.

This document will assume that the reader is fluent in web based technologies, and has knowledge of the language they plan to consume the web service in.

Background Information

All specifications will be built using the Simple Object Access Protocol (SOAP) over HTTPS as the foundation for the web services protocol stack in order to provide a standards based secure form of communication.

More information on SOAP can be found at w3 (opens in a new tab)


Media Content

Summary:

Provides a mechanism to get a media content by specific parameters like (last change date, product id, part id, media type, etc). This allows the consumer of the service to obtain specific media content for their needs.

Service Details:

getMediaContent()

Request: GetMediaContentRequest

FieldDescriptionData TypeRequired?
wsVersionThe Standard Version of the Web Service being referenced64 STRINGYES
idThe customer Id or any other agreed upon Id.64 STRINGYES
passwordThe password associated with the Id64 STRINGNO
cultureNameThe language culture name. Null assumes en-US.ISO 639xNO
mediaTypeThe type of media to returnSTRING FACETYES
productIdThe product Id64 STRINGYES
partIdThe part Id associated to the product Id64 STRINGNO
classTypeClassification of the mediaINTNO

Reply: GetMediaContentDetailsResponse

FieldDescriptionData TypeRequired?
MediaContentArrayAn array of media content objectsOBJECT ARRAYNO
errorMessageResponse for any error requiring notification to requestorOBJECTNO

MediaContent Object

FieldDescriptionData TypeRequired?
productIdThe associated Product Id64 STRINGYES
partIdThe part Id associated to the product Id64 STRINGNO
urlThe URL of the media location1024 STRINGYES
mediaTypeThe type of mediaSTRING FACETYES
ClassTypeArrayAn array of ClassType objects that classify of the mediaOBJECT ARRAYYES
fileSizeThe file sizeDOUBLENO
widthWidthINTNO
heightHeightINTNO
dpiDots per inchINTNO
colorThe color description256 STRINGNO
DecorationArrayAn array of decoration objectsOBJECT ARRAYNO
LocationArrayAn array of location objectsOBJECT ARRAYNO
descriptionInformation about the media1024 STRINGNO
singlePartIdentifies whether the partId one to one corresponds with the imageBOOLEANYES
changeTimeStampThe date time since last change in UTCISO 8601NO

ClassType Object

FieldDescriptionData TypeRequired?
classTypeIdThe classification of the mediaINTYES
classTypeNameThe classification short name64 STRINGYES

Decoration Object

FieldDescriptionData TypeRequired?
decorationIdThe decoration id associated with the mediaINTYES
decorationNameThe name of the decoration associated with the id64 STRINGYES

Location Object

FieldDescriptionData TypeRequired?
locationIdThe location id associated with the mediaINTYES
locationNameThe name of the location associated with the id64 STRINGYES

Media Date Modified

Summary:

Provides a mechanism to get all product and/or part ids, of media, that changed since a specified date.

getMediaDateModified()

Request: GetMediaDateModifiedRequest

FieldDescriptionData TypeRequired?
wsVersionThe Standard Version of the Web Service being referenced64 STRINGYES
idThe customer Id or any other agreed upon Id64 STRINGYES
passwordThe password associated with the Id64 STRINGNO
cultureNameThe language culture name. Null assumes en-USISO 639xNO
changeTimeStampBeginning date time since last change in UTCISO 8601YES

Reply: GetMediaDateModifiedResponse

FieldDescriptionData TypeRequired?
MediaDateModifiedArrayAn array of MediaDateModified objectsOBJECT ARRAYNO
errorMessageResponse for any error requiring notification to requestorOBJECTNO

MediaDateModified Object

FieldDescriptionData TypeRequired?
productIdThe associated Product Id64 STRINGYES
partIdThe part Id associated to the product Id64 STRINGNO

Enumerated Type Restrictions

Enumerated TypeDescriptionValues
mediaTypeThe basic media typeImage - Returns images, Video - Returns videos, Audio - Returns audios, Document - Returns documents

Valid values for class type and class name:

classTypeClass NameDescription
0-499ReservedReserved for future use
500-999CustomCustom class types for implementation specific use. These identifiers
1000UnspecifiedUnknown or unspecified shot. This value means the shot type is unavailable for the media type.
1001BlankThe shot is of blank media
1002DecoratedThe shot is of decorated media
1003AlternateThe shot is alternate. This may indicate the product is combined with other media to stage a scene.
1004SwatchThe shot is of a swatch
1005CustomThe shot is custom which does not fall into any specific type
1006PrimaryThe primary image
1007FrontFront view
1008RearRear view
1009RightRight view
1010LeftLeft view
1011TopTop view
1012BottomBottom view
1013InsideInside view
1014OutsideOutside view
2000StandardStandard Definition
2001HighHigh definition
3000PodcastPodcast
4000SpecsSpecification sheets
4001ProductSafetyProduct safety information
4002FactsFact sheets
4003ComplianceCompliance documents
4004ArtTemplateArt templates
4005MarketingMarketing material

ErrorMessage Object

FieldDescriptionData TypeRequired?
codeThe numerical value of the codeNUMBERYES
descriptionResponse for any error requiring notification to requestor256 STRINGYES

Standardized Codes: The range of 100-199 has been reserved for standardized error codes. The number 999 has been reserved for an error codes that is a “General Error - Contact System Service Provider”

Error Codes and Descriptions

CodeDescription
100ID (customerID) not found
104This account is unauthorized to use this service. Please contact the service provider
105Authentication Credentials failed
110Authentication Credentials required
115wsVersion not found
120The following field(s) are required [Comma Delimited field names]
125Not Supported: [details]
130Product Id not found
135Product color not found
140Part Id not found
145Part color not found
150Part size not found
155Invalid Date Format
160No Results Found
999General Error – Contact the System Service Provider

Validation of Services

Before you publish your endpoint, please ensure that it adheres to the promostandards.org spec by using the web service validation tool.

https://services.promostandards.org/webserviceValidator/home (opens in a new tab)

Select the service, version, method and input your endpoint. If the endpoint is correct you should receive a message of:

"The XML response is valid."

Code Samples

To be published under separate specification: “Media Content Standards Use Examples”

DATA MINING / ABUSE GUIDELINE

The use of services detailed within this specification are to be conducted within the current guidelines of the “Interface Data Use Guidelines Standards”


Diagrams

getMediaContent Function

getMediaDateModified Function