ProductMatching.API

<back to all web services

PostProductMatchingUpdateCallbackRequest

Requires Authentication
The following routes are available for this service:
POST/v1/product-matching-update-callback
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ProductMatching.API.ServiceModel.V1.ProductMatching
Imports ProductMatching.API.ServiceModel.DTOs

Namespace Global

    Namespace ProductMatching.API.ServiceModel.DTOs

        <DataContract>
        Public Partial Class ProductMatch
            Implements IProductMatch
            Public Sub New()
                AuditResultReasons = New List(Of String)
            End Sub

            <DataMember(Name:="retailerGuid")>
            Public Overridable Property RetailerGuid As Guid

            <DataMember(Name:="retailerName")>
            Public Overridable Property RetailerName As String

            <DataMember(Name:="brand")>
            Public Overridable Property Brand As String

            <DataMember(Name:="productName")>
            Public Overridable Property ProductName As String

            <DataMember(Name:="description")>
            Public Overridable Property Description As String

            <DataMember(Name:="sku")>
            Public Overridable Property SKU As String

            <DataMember(Name:="gtin")>
            Public Overridable Property GTIN As String

            <DataMember(Name:="ean8")>
            Public Overridable Property EAN8 As String

            <DataMember(Name:="ean13")>
            Public Overridable Property EAN13 As String

            <DataMember(Name:="isbn")>
            Public Overridable Property ISBN As String

            <DataMember(Name:="upc")>
            Public Overridable Property UPC As String

            <DataMember(Name:="productImageUrl")>
            Public Overridable Property ProductImageUrl As Uri

            <DataMember(Name:="productUrl")>
            Public Overridable Property ProductUrl As Uri

            <DataMember(Name:="auditResult")>
            Public Overridable Property AuditResult As String

            <DataMember(Name:="auditResultReasons")>
            Public Overridable Property AuditResultReasons As List(Of String)
        End Class
    End Namespace

    Namespace ProductMatching.API.ServiceModel.V1.ProductMatching

        Public Partial Class PostProductMatchingUpdateCallbackRequest
            Public Sub New()
                ProductMatches = New List(Of ProductMatch)
            End Sub

            Public Overridable Property ProductMatches As List(Of ProductMatch)
            Public Overridable Property SourceUrl As Uri
        End Class

        Public Partial Class PostProductMatchingUpdateCallbackResponse
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET 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>