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": "DN20250312",
  "packCount": 10.0,
  "totalWeight": 1,
  "totalVolume": 100,
  "shipFromCity": "beijing",
  "shipFromCountry": "China",
  "mot": "Air", 
  "carrierId": "DN20250312",
  "shipDate": "2022-08-01",
  "eta": "2022-08-01",
  "tmsTrafNO": "TMS2023021000001",
  "asnItemList": [
    {
      "deliveryLine": "1",
      "po": "4000123096",
      "poLine": "00010",
      "lenovoPn": "4XH0R55468",
      "trackingId": "DN20250312",
      "shippingLine": "1111",
      "containerNo": "UPS11111",
      "tier2VendorName": "1000140",
      "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": "227003919520250310",
  "asnLine": "1",
  "po": "4000123096",
  "poLine": "00010",
  "trackingId": "227003919520250310",
  "carrierId": "227003919520250310",
  "shippingLine": "11111",
  "mot": "Air",
  "containerNo": "227003919520250310",
  "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": "227003919520250310",
  "site": "LSSC"
}]
  • 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": "wanghh25",
      "deliveryQtyUom": "EA",
      "poLine": "00020",
      "rid": "111202309061",
      "lenovoPn": "SSS7A43166",
      "vendorCode": "1000025686",
      "asnNo": "11120230906",
      "sysCreatedBy": "wanghh25",
      "bu": "ISG",
      "mot": "Sea",
      "eta": "2023-09-30",
      "updateEta": "2023-09-30",
      "incotermLoc": "DDU",
      "currency": "USD",
      "id": "ASN202309060001",
      "trackingId": "1111",
      "traceId": "Can not find PO",
      "isClose": "true",
      "shipToPlant": "L270",
      "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 PM1643a/45a 7.68/6.4TB SSD",
      "isUpdateLocation": "true",
      "site": "LSSC",
      "incoterm": "DDU",
      "isEdit": "true",
      "lnvStorageLoc": "VBRM",
      "purchaseGroup": "L9O",
      "asnItemStatus": "Open",
      "sysModifyDate": "2023-09-06 14:30:00",
      "asnLine": 1,
      "dataSource": "SCC",
      "status": "Open",
      "po": "3800001628"
    }
  ]
}
  • Error Example
json