Skip to content

ASN ​

The following interfaces apply to General Data Query

Create ASN ​

  • Request Info
environmentURL
devhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/asn/create
prdhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/asn/create
  • Method: POST

  • Content-Type: application/json

  • Param Description ​

fieldkeytypeIs it mandatory to fill inlengthformatdescriptionexample
deliveryNoYstringY16Supplier delivery note number
packCountnumberN100Total number of boxes
totalWeightnumberN100GROSS WEIGHT
totalVolumenumberN100Total Volume
shipFromCitystringN40Shipping City
shipFromCountrystringN30Shipping country
motstringY10mode of transportTruck, Mail, Train, Sea, Air, Sea-Air
carrierIdstringN50Carrier ID
shipDatedateY10the date of issuance(yyyy/MM/dd or yyyy-MM-dd)
etadateY10Expected delivery time(yyyy/MM/dd or yyyy-MM-dd)
tmsTrafNOStringN50TMS waybill number
--------
deliveryLineYstringN6Supplier shipping order number line number
postringY10PO
poLinestringY5PO Line
lenovoPnstringY18Lenovo part number
trackingIdstringY35Logistics tracking number
shippingLinestringN30
containerNostringN30CONTAINER NUMBER
tier2VendorNameStringN100Second tier supplier name
--------
coostringN10country of originCN ,US 等,详情见附件码表
brandstringN20brand填写物料品牌
deliveryQtynumberY100quantity
  • response
fieldtypelengthdescriptionexample
codeString10code"0"
msgString10message"ok"/"error"
resultObjectresult
  • Request Example
json
{
  "deliveryNo": "DN****",
  "packCount": 10.0,
  "totalWeight": 1,
  "totalVolume": 100,
  "shipFromCity": "beijing",
  "shipFromCountry": "China",
  "mot": "Air", 
  "carrierId": "*****",
  "shipDate": "2022-08-01",
  "eta": "2022-08-01",
  "tmsTrafNO": "****",
  "asnItemList": [
    {
      "deliveryLine": "1",
      "po": "*****",
      "poLine": "00010",
      "lenovoPn": "*****",
      "trackingId": "DN******",
      "shippingLine": "1111",
      "containerNo": "*****",
      "tier2VendorName": "*****",
      "asnDeliveryList": [
        {
          "coo": "CN",
          "brand": "Lenovo",
          "deliveryQty": 100
        }
      ]
    }
  ]
}
  • Response Example
json
{
  "code": "0",
  "msg": "ok",
  "result": {
    "asnNo": "TESTAPI00120230906",
    "asnItemList": [
      {
        "asnItemNo": "1",
        "deliveryLineNoList": [
          "1"
        ]
      }
    ]
  }
}
  • Error Example
json
{
  "code": "-1",
  "msg": "error",
  "result": [
    {
      "key": "DNTST202208022",
      "errors": [
        {
          "field": "deliveryNo",
          "message": [
            {
              "value": "DNTST202208022",
              "error": "存在重复数据"
            }
          ]
        }
      ]
    }
  ]
}

Update ASN ​

  • Request Info
environmentURL
devhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/asn/update
prdhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/asn/update
  • Method: POST

  • Content-Type: application/json

  • Param Description ​

fieldkeytypeIs it mandatory to fill inlengthformatdescriptionexample
asnNoYstringY16Lenovo Pre shipment Number
asnLineYstringY4Lenovo Pre shipment Line Number
poYstringY10PO
poLineYstringY10PO Line
trackingIdstring35Waybill number
carrierIdstring50Carrier/freight forwarder
shippingLinestring30Shipping company SCAC
containerNostring35container noTruck, Mail, Train, Sea, Air, Sea-Air
motstring30Transport method
updateEtadateModify pre shipment time
  • response
fieldtypeIs it mandatory to fill inlengthdescriptionexample
codeStringY10code"0"
msgStringY10message"ok"/"error"
resultObjectNresult
  • Request Example
json
{
  "asnNo": "*****",
  "asnLine": "1",
  "po": "*****",
  "poLine": "00010",
  "trackingId": "*****",
  "carrierId": "*****",
  "shippingLine": "11111",
  "mot": "Air",
  "containerNo": "*****",
  "updateEta": "2016-06-27"
}
  • Response Example
json
{
  "code": "0",
  "msg": "ok"
}
  • Error Example
json
{
  "code": "-1",
  "msg": "error",
  "result": [
    {
      "key": "TEST2022071320220713",
      "errors": [
        {
          "field": "asnNo",
          "message": [
            {
              "value": "TEST2022071320220713",
              "error": "ASN不存在"
            }
          ]
        }
      ]
    }
  ]
}

Delete ASN ​

  • Request Info
environmentURL
devhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/asn/delete
prdhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/asn/delete
  • Method: Delete

  • Content-Type: application/json

  • Param Description ​

fieldtypeIs it mandatory to fill inlengthformatdescriptionexample
asnNostringY24Lenovo Pre shipment Number
sitestringY4site
  • response
fieldtypeIs it mandatory to fill inlengthdescriptionexample
codeStringY10code"0"
msgStringY10message"ok"/"error"
resultObjectNresult
  • Request Example
json
[{
  "asnNo": "*****",
  "site": "code**"
}]
  • Response Example
json
{
  "code": "0",
  "msg": "ok"
}
  • Error Example
json
{
  "code": "-1",
  "msg": "error",
  "result": [
    {
      "key": "TEST2022071320220713",
      "errors": [
        {
          "field": "asnNo",
          "message": [
            {
              "value": "TEST2022071320220713",
              "error": "ASN不存在"
            }
          ]
        }
      ]
    }
  ]
}

Query ASN ​

  • Request Info
environmentURL
devhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/asn/query
prdhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/asn/query
  • Method: POST

  • Content-Type: application/json

  • Param Description ​

fieldtypeIs it mandatory to fill inlengthformatdescriptionexample
asnNoListlistYLenovo Pre shipment Number Collection
deliveryNoListlistSupplier shipment number set
poListlistPO collection
lenovoPnListlistlenovo part number collection
  • response
fieldtypeIs it mandatory to fill inlengthdescriptionexample
codeStringY10code"0"
msgStringY10message"ok"/"error"
resultObjectNresult
  • Request Example
json
{
  "asnNoList": ["DNTST20220802220220802", "DNTST2022080220220802"]
}
  • Response Example
json
{
  "code": "0",
  "msg": "ok",
  "result": [
    {
      "orderType": "RT",
      "procurementMode": "LOI",
      "sysModifyBy": "*****",
      "deliveryQtyUom": "EA",
      "poLine": "*****",
      "rid": "*****",
      "lenovoPn": "*****",
      "vendorCode": "*****",
      "asnNo": "*****",
      "sysCreatedBy": "*****",
      "bu": "ISG",
      "mot": "Sea",
      "eta": "2023-09-30",
      "updateEta": "2023-09-30",
      "incotermLoc": "DDU",
      "currency": "USD",
      "id": "*****",
      "trackingId": "1111",
      "traceId": "Can not find PO",
      "isClose": "true",
      "shipToPlant": "shopto",
      "sysCreatedDate": "2023-09-06 14:30:00",
      "deliveryQty": 75,
      "business": "PRC",
      "oseq": 1,
      "deliveryNo": "111",
      "vendorName": "FF tttth ddd iiiiiiates PP",
      "shipDate": "2023-09-06",
      "orderTypeDesc": "RT PO",
      "partDesc": "SSD *****SSD",
      "isUpdateLocation": "true",
      "site": "code**",
      "incoterm": "DDU",
      "isEdit": "true",
      "lnvStorageLoc": "VBRM",
      "purchaseGroup": "L9O",
      "asnItemStatus": "Open",
      "sysModifyDate": "2023-09-06 14:30:00",
      "asnLine": 1,
      "dataSource": "SCC",
      "status": "Open",
      "po": "*****"
    }
  ]
}
  • Error Example
json