查找原始部件编号

在此案例中,将通过一个已存在的供应商数据信息查找原始的配件号。从 ATE 中选择 13.0460-2880.2,一个制动垫组。筛选numberType 为0,以只查找原始配件号。这将使用到应用程序里的两个功能。首先,从数据库里查找配件号,即可找到所有包含相关信息的配件和车辆。第一个请求的接口是 getArticleDirectSearchAllNumbersWithState JSON 请求如下:

getArticleDirectSearchAllNumbersWithState

JSON Input

{
  "getArticleDirectSearchAllNumbersWithState": {
    "articleCountry": "CN",
    "articleNumber": "13.0460.2880.2",
    "lang": "EN",
    "numberType": 0,
    "provider": "Your provider ID",
    "searchExact": true
  }
}

这个请求的响应如下:

JSON Output

{
  "data": {
    "array": [
      {
        "articleId": 245097174,
        "articleName": "Brake Pad Set, disc brake",
        "articleNo": "13.0460-2880.2",
        "articleSearchNo": "13.0460-2880.2",
        "articleStateId": 1,
        "brandName": "ATE-CN",
        "brandNo": 4556,
        "genericArticleId": 402,
        "numberType": 0
      }
    ]
  },
  "status": 200
}

getArticleDirectSearchAllNumbersWithState 将会响应相关产品的基本信息。为了获取所有相关产品和车辆的信息,我们将会请求 getDirectArticlesByIds6 。 使用第一个请求返回的 articleId 作为第二个请求的的参数。参照文档,设置所有其它的参数。

getDirectArticlesByIds6

JSON Input

{
    "getDirectArticlesByIds6": {
        "articleCountry": "CN",
        "articleId": {
            "array": [
                245097174
            ]
        },
        "attributs": true,
        "basicData": true,
        "documents": true,
        "eanNumbers": true,
        "immediateAttributs": true,
        "immediateInfo": true,
        "info": true,
        "lang": "EN",
        "mainArticles": true,
        "normalAustauschPrice": false,
        "oeNumbers": true,
        "prices": true,
        "provider": "Your provider ID",
        "replacedByNumbers": true,
        "replacedNumbers": true,
        "thumbnails": true,
        "usageNumbers": true
    }
}

此次请求的响应如下所示:

JSON Output

{
    "data": {
        "array": [{
            "articleAttributes": {
                "array": [{
                        "attrBlockNo": 0,
                        "attrId": 100,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Fitting Position",
                        "attrShortName": "Fitting Position",
                        "attrType": "K",
                        "attrValue": "Rear Axle",
                        "attrValueId": 1177456919
                    },
                    {
                        "attrBlockNo": 0,
                        "attrId": 124,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Thickness [mm]",
                        "attrShortName": "Thickness\/Strength",
                        "attrType": "N",
                        "attrUnit": "mm",
                        "attrValue": "17,1",
                        "attrValueId": 1411489961
                    },
                    {
                        "attrBlockNo": 0,
                        "attrId": 206,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Width [mm]",
                        "attrShortName": "Width",
                        "attrType": "N",
                        "attrUnit": "mm",
                        "attrValue": "105,3",
                        "attrValueId": 225189106
                    },
                    {
                        "attrBlockNo": 0,
                        "attrId": 209,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Height [mm]",
                        "attrShortName": "Height",
                        "attrType": "N",
                        "attrUnit": "mm",
                        "attrValue": "55,9",
                        "attrValueId": 134026430
                    },
                    {
                        "attrBlockNo": 0,
                        "attrId": 1535,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Number of screws",
                        "attrShortName": "Number of screws",
                        "attrType": "N",
                        "attrValue": "4",
                        "attrValueId": 105752968
                    }
                ]
            },
            "articleDocuments": {
                "array": [{
                    "docFileName": "4556\\602880.BMP",
                    "docFileTypeName": "Bitmap",
                    "docId": "455600109",
                    "docTypeId": 5,
                    "docTypeName": "Picture"
                }]
            },
            "articleInfo": "",
            "articlePrices": "",
            "articleThumbnails": {
                "array": [{
                    "thumbDocId": "455600109",
                    "thumbFileName": "4556\\602880.BMP",
                    "thumbTypeId": 5
                }]
            },
            "directArticle": {
                "articleId": 245097174,
                "articleName": "Brake Pad Set, disc brake",
                "articleNo": "13.0460-2880.2",
                "articleState": 1,
                "articleStateName": "Normal",
                "brandName": "ATE-CN",
                "brandNo": 4556,
                "flagAccessories": false,
                "flagCertificationCompulsory": false,
                "flagRemanufacturedPart": false,
                "flagSuitedforSelfService": false,
                "genericArticleId": 402,
                "hasAppendage": false,
                "hasAxleLink": false,
                "hasCsGraphics": false,
                "hasDocuments": true,
                "hasLessDiscount": false,
                "hasMarkLink": false,
                "hasMotorLink": false,
                "hasOEN": true,
                "hasPartList": false,
                "hasPrices": false,
                "hasSecurityInfo": false,
                "hasUsage": false,
                "hasVehicleLink": true,
                "packingUnit": 1,
                "quantityPerPackingUnit": 1
            },
            "eanNumber": "",
            "immediateAttributs": {
                "array": [{
                        "attrBlockNo": 0,
                        "attrId": 100,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Fitting Position",
                        "attrShortName": "Fitting Position",
                        "attrType": "K",
                        "attrValue": "Rear Axle",
                        "attrValueId": 1177456919
                    },
                    {
                        "attrBlockNo": 0,
                        "attrId": 124,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Thickness [mm]",
                        "attrShortName": "Thickness\/Strength",
                        "attrType": "N",
                        "attrUnit": "mm",
                        "attrValue": "17,1",
                        "attrValueId": 1411489961
                    },
                    {
                        "attrBlockNo": 0,
                        "attrId": 206,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Width [mm]",
                        "attrShortName": "Width",
                        "attrType": "N",
                        "attrUnit": "mm",
                        "attrValue": "105,3",
                        "attrValueId": 225189106
                    },
                    {
                        "attrBlockNo": 0,
                        "attrId": 209,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Height [mm]",
                        "attrShortName": "Height",
                        "attrType": "N",
                        "attrUnit": "mm",
                        "attrValue": "55,9",
                        "attrValueId": 134026430
                    },
                    {
                        "attrBlockNo": 0,
                        "attrId": 1535,
                        "attrIsConditional": false,
                        "attrIsInterval": false,
                        "attrIsLinked": false,
                        "attrName": "Number of screws",
                        "attrShortName": "Number of screws",
                        "attrType": "N",
                        "attrValue": "4",
                        "attrValueId": 105752968
                    }
                ]
            },
            "immediateInfo": "",
            "mainArticle": "",
            "oenNumbers": {
                "array": [{
                        "blockNumber": 1,
                        "brandName": "AUDI",
                        "oeNumber": "1K0698451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 2,
                        "brandName": "AUDI",
                        "oeNumber": "1K0698451B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 3,
                        "brandName": "AUDI",
                        "oeNumber": "1K0698451D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 4,
                        "brandName": "AUDI",
                        "oeNumber": "1K0698451E",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 5,
                        "brandName": "AUDI",
                        "oeNumber": "1K0698451F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 6,
                        "brandName": "AUDI",
                        "oeNumber": "1K0698451G",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 7,
                        "brandName": "AUDI",
                        "oeNumber": "1K0698451H",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 8,
                        "brandName": "AUDI",
                        "oeNumber": "1K0698451K",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 9,
                        "brandName": "AUDI",
                        "oeNumber": "3C0698451B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 10,
                        "brandName": "AUDI",
                        "oeNumber": "3C0698451D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 11,
                        "brandName": "AUDI",
                        "oeNumber": "3C0698451F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 12,
                        "brandName": "AUDI",
                        "oeNumber": "4F0698451A",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 13,
                        "brandName": "AUDI",
                        "oeNumber": "4F0698451B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 14,
                        "brandName": "AUDI",
                        "oeNumber": "4F0698451D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 15,
                        "brandName": "AUDI",
                        "oeNumber": "4F0698451E",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 16,
                        "brandName": "AUDI",
                        "oeNumber": "8E0698451F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 17,
                        "brandName": "AUDI",
                        "oeNumber": "8E0698451J",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 18,
                        "brandName": "AUDI",
                        "oeNumber": "8E0698451M",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 1,
                        "brandName": "SEAT",
                        "oeNumber": "1K0 698 451 G",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 2,
                        "brandName": "SEAT",
                        "oeNumber": "1K0698451D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 3,
                        "brandName": "SEAT",
                        "oeNumber": "1K0698451F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 4,
                        "brandName": "SEAT",
                        "oeNumber": "1K0698451G",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 5,
                        "brandName": "SEAT",
                        "oeNumber": "1K0698451H",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 6,
                        "brandName": "SEAT",
                        "oeNumber": "3C0 698 451 D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 7,
                        "brandName": "SEAT",
                        "oeNumber": "3C0 698 451 E",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 8,
                        "brandName": "SEAT",
                        "oeNumber": "3C0 698 451 F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 9,
                        "brandName": "SEAT",
                        "oeNumber": "3C0698451E",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 10,
                        "brandName": "SEAT",
                        "oeNumber": "3C0698451F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 11,
                        "brandName": "SEAT",
                        "oeNumber": "4F0698451B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 12,
                        "brandName": "SEAT",
                        "oeNumber": "5N0 698 451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 13,
                        "brandName": "SEAT",
                        "oeNumber": "8E0 698 451 J",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 14,
                        "brandName": "SEAT",
                        "oeNumber": "8E0698451J",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 1,
                        "brandName": "SKODA",
                        "oeNumber": "1K0 698 451 D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 2,
                        "brandName": "SKODA",
                        "oeNumber": "1K0 698 451 F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 3,
                        "brandName": "SKODA",
                        "oeNumber": "1K0 698 451 G",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 4,
                        "brandName": "SKODA",
                        "oeNumber": "1K0 698 451 H",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 5,
                        "brandName": "SKODA",
                        "oeNumber": "1K0698451D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 6,
                        "brandName": "SKODA",
                        "oeNumber": "1K0698451G",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 7,
                        "brandName": "SKODA",
                        "oeNumber": "1K0698451K",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 8,
                        "brandName": "SKODA",
                        "oeNumber": "4F0698451B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 9,
                        "brandName": "SKODA",
                        "oeNumber": "8E0698451F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 1,
                        "brandName": "VW",
                        "oeNumber": "1K0698451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 2,
                        "brandName": "VW",
                        "oeNumber": "1K0698451D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 3,
                        "brandName": "VW",
                        "oeNumber": "1K0698451E",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 4,
                        "brandName": "VW",
                        "oeNumber": "1K0698451F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 5,
                        "brandName": "VW",
                        "oeNumber": "1K0698451G",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 6,
                        "brandName": "VW",
                        "oeNumber": "1K0698451H",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 7,
                        "brandName": "VW",
                        "oeNumber": "1K0698451K",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 8,
                        "brandName": "VW",
                        "oeNumber": "3AA698451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 9,
                        "brandName": "VW",
                        "oeNumber": "3C0698451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 10,
                        "brandName": "VW",
                        "oeNumber": "3C0698451B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 11,
                        "brandName": "VW",
                        "oeNumber": "3C0698451D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 12,
                        "brandName": "VW",
                        "oeNumber": "3C0698451E",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 13,
                        "brandName": "VW",
                        "oeNumber": "3C0698451F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 14,
                        "brandName": "VW",
                        "oeNumber": "4F0698451B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 15,
                        "brandName": "VW",
                        "oeNumber": "5N0698451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 1,
                        "brandName": "VAG",
                        "oeNumber": "1K0 698 451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 2,
                        "brandName": "VAG",
                        "oeNumber": "1K0 698 451 D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 3,
                        "brandName": "VAG",
                        "oeNumber": "1K0 698 451 F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 4,
                        "brandName": "VAG",
                        "oeNumber": "1K0 698 451 G",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 5,
                        "brandName": "VAG",
                        "oeNumber": "1K0 698 451 H",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 6,
                        "brandName": "VAG",
                        "oeNumber": "1K0 698 451 L",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 7,
                        "brandName": "VAG",
                        "oeNumber": "3AA 698 451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 8,
                        "brandName": "VAG",
                        "oeNumber": "3C0 698 451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 9,
                        "brandName": "VAG",
                        "oeNumber": "3C0 698 451 B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 10,
                        "brandName": "VAG",
                        "oeNumber": "3C0 698 451 D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 11,
                        "brandName": "VAG",
                        "oeNumber": "3C0 698 451 E",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 12,
                        "brandName": "VAG",
                        "oeNumber": "3C0 698 451 F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 13,
                        "brandName": "VAG",
                        "oeNumber": "4F0 698 451 A",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 14,
                        "brandName": "VAG",
                        "oeNumber": "4F0 698 451 B",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 15,
                        "brandName": "VAG",
                        "oeNumber": "4F0 698 451 D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 16,
                        "brandName": "VAG",
                        "oeNumber": "4F0 698 451 E",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 17,
                        "brandName": "VAG",
                        "oeNumber": "5N0 698 451",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 18,
                        "brandName": "VAG",
                        "oeNumber": "8E0 698 451 F",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 19,
                        "brandName": "VAG",
                        "oeNumber": "8E0 698 451 J",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 20,
                        "brandName": "VAG",
                        "oeNumber": "8E0 698 451 M",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 21,
                        "brandName": "VAG",
                        "oeNumber": "JZW 698 451 D",
                        "sortNumber": 1
                    },
                    {
                        "blockNumber": 1,
                        "brandName": "SKODA (SVW )",
                        "oeNumber": "1K0698451L",
                        "sortNumber": 1
                    }
                ]
            },
            "replacedByNumber": "",
            "replacedNumber": "",
            "usageNumbers2": ""
        }]
    },
    "status": 200
}