ProductMatching.API

<back to all web services

PostProductMatchingUpdateCallbackRequest

Requires Authentication
The following routes are available for this service:
POST/v1/product-matching-update-callback
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class PostProductMatchingUpdateCallbackRequest
    {
        public ArrayList<ProductMatch> productMatches = null;
        public Uri sourceUrl = null;
        
        public ArrayList<ProductMatch> getProductMatches() { return productMatches; }
        public PostProductMatchingUpdateCallbackRequest setProductMatches(ArrayList<ProductMatch> value) { this.productMatches = value; return this; }
        public Uri getSourceUrl() { return sourceUrl; }
        public PostProductMatchingUpdateCallbackRequest setSourceUrl(Uri value) { this.sourceUrl = value; return this; }
    }

    @DataContract
    public static class ProductMatch implements IProductMatch
    {
        @DataMember(Name="retailerGuid")
        @SerializedName("retailerGuid")
        public UUID retailerGuid = null;

        @DataMember(Name="retailerName")
        @SerializedName("retailerName")
        public String retailerName = null;

        @DataMember(Name="brand")
        @SerializedName("brand")
        public String brand = null;

        @DataMember(Name="productName")
        @SerializedName("productName")
        public String productName = null;

        @DataMember(Name="description")
        @SerializedName("description")
        public String description = null;

        @DataMember(Name="sku")
        @SerializedName("sku")
        public String sku = null;

        @DataMember(Name="gtin")
        @SerializedName("gtin")
        public String gtin = null;

        @DataMember(Name="ean8")
        @SerializedName("ean8")
        public String eaN8 = null;

        @DataMember(Name="ean13")
        @SerializedName("ean13")
        public String eaN13 = null;

        @DataMember(Name="isbn")
        @SerializedName("isbn")
        public String isbn = null;

        @DataMember(Name="upc")
        @SerializedName("upc")
        public String upc = null;

        @DataMember(Name="productImageUrl")
        @SerializedName("productImageUrl")
        public Uri productImageUrl = null;

        @DataMember(Name="productUrl")
        @SerializedName("productUrl")
        public Uri productUrl = null;

        @DataMember(Name="auditResult")
        @SerializedName("auditResult")
        public String auditResult = null;

        @DataMember(Name="auditResultReasons")
        @SerializedName("auditResultReasons")
        public ArrayList<String> auditResultReasons = null;
        
        public UUID getRetailerGuid() { return retailerGuid; }
        public ProductMatch setRetailerGuid(UUID value) { this.retailerGuid = value; return this; }
        public String getRetailerName() { return retailerName; }
        public ProductMatch setRetailerName(String value) { this.retailerName = value; return this; }
        public String getBrand() { return brand; }
        public ProductMatch setBrand(String value) { this.brand = value; return this; }
        public String getProductName() { return productName; }
        public ProductMatch setProductName(String value) { this.productName = value; return this; }
        public String getDescription() { return description; }
        public ProductMatch setDescription(String value) { this.description = value; return this; }
        public String getSku() { return sku; }
        public ProductMatch setSku(String value) { this.sku = value; return this; }
        public String getGtin() { return gtin; }
        public ProductMatch setGtin(String value) { this.gtin = value; return this; }
        public String getEaN8() { return eaN8; }
        public ProductMatch setEaN8(String value) { this.eaN8 = value; return this; }
        public String getEaN13() { return eaN13; }
        public ProductMatch setEaN13(String value) { this.eaN13 = value; return this; }
        public String getIsbn() { return isbn; }
        public ProductMatch setIsbn(String value) { this.isbn = value; return this; }
        public String getUpc() { return upc; }
        public ProductMatch setUpc(String value) { this.upc = value; return this; }
        public Uri getProductImageUrl() { return productImageUrl; }
        public ProductMatch setProductImageUrl(Uri value) { this.productImageUrl = value; return this; }
        public Uri getProductUrl() { return productUrl; }
        public ProductMatch setProductUrl(Uri value) { this.productUrl = value; return this; }
        public String getAuditResult() { return auditResult; }
        public ProductMatch setAuditResult(String value) { this.auditResult = value; return this; }
        public ArrayList<String> getAuditResultReasons() { return auditResultReasons; }
        public ProductMatch setAuditResultReasons(ArrayList<String> value) { this.auditResultReasons = value; return this; }
    }

    public static class PostProductMatchingUpdateCallbackResponse
    {
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public PostProductMatchingUpdateCallbackResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java PostProductMatchingUpdateCallbackRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/product-matching-update-callback HTTP/1.1 
Host: product-matching-api.kit.co 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PostProductMatchingUpdateCallbackRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProductMatching.API.ServiceModel.V1.ProductMatching">
  <ProductMatches xmlns:d2p1="http://schemas.datacontract.org/2004/07/ProductMatching.API.ServiceModel.DTOs">
    <d2p1:ProductMatch>
      <d2p1:auditResult>String</d2p1:auditResult>
      <d2p1:auditResultReasons xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:auditResultReasons>
      <d2p1:brand>String</d2p1:brand>
      <d2p1:description>String</d2p1:description>
      <d2p1:ean13>String</d2p1:ean13>
      <d2p1:ean8>String</d2p1:ean8>
      <d2p1:gtin>String</d2p1:gtin>
      <d2p1:isbn>String</d2p1:isbn>
      <d2p1:productImageUrl i:nil="true" />
      <d2p1:productName>String</d2p1:productName>
      <d2p1:productUrl i:nil="true" />
      <d2p1:retailerGuid>00000000-0000-0000-0000-000000000000</d2p1:retailerGuid>
      <d2p1:retailerName>String</d2p1:retailerName>
      <d2p1:sku>String</d2p1:sku>
      <d2p1:upc>String</d2p1:upc>
    </d2p1:ProductMatch>
  </ProductMatches>
  <SourceUrl i:nil="true" />
</PostProductMatchingUpdateCallbackRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PostProductMatchingUpdateCallbackResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProductMatching.API.ServiceModel.V1.ProductMatching">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</PostProductMatchingUpdateCallbackResponse>