Skip to content

BUD AN

The following interfaces apply to ULLO AN Integration, refer to API Data Integration first

Request Booking

Request address

EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/an/bud/create
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/an/bud/create

Request description

  • Method: POST

  • Content-Type: multipart/form-data

ParamkeyTypeRequiredLengthDescriptionExample
cdaNoYStringY30CDA numberCDA2023071800001
truckLicenseString50truck licensexxxxx
reqDateDateY-req date(UTC time)2023-06-16T16:30:46Z
reqReasonStringY200req reasontest
remarkString500remark-
emailString100emailxxx@xx.com
attachmentListFile-collection of attachment-
  • Response data description
ParamTypeRequiredLengthDescriptionExample
codeStringY10response code"0"
msgStringY10response message"ok"/"error"
resultObjectNresponse payloadrefer to response sample

Request sample

json
anCreateDto:{
    "receiverList": [
        {
            "email": "zhaizg1@lenovo.com"
        }
    ],
    "anCreateItemList": [
        {
            "cdaNo": "CDA2023070500001",
            "truckLicense": "11",
            "reqDate": "2023-09-12T10:23:49Z",
            "reqReason": "22",
            "remark": "xxx"
        }
    ]
}
attachmentList: [
    file01,file02...
]

Successful response sample

JSON
{
	"code": "0",
	"msg": "ok"
}

Failed response sample

JSON
{
	"code": "-1",
	"msg": "Data already exists,please check!(数据已存在,请检查)"
}
  • Business error code
Error codeError descriptionResolution
-1result coderevise field value according to result message
500server errorplease contact IT with detail error message

Query AN

Request address

EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/an/bud/query
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/an/bud/query
  • Method: POST

  • Content-Type: application/json

Request data description

ParamTypeRequiredLengthDescriptionExample
pageNumNumberY10page number1
pageSizeNumberY4page size20
statusString20statusConfirm booking
deliveryNoteString40delivery noteSM10N01540
poString40purchase order6500372676
lenovoPnString40lenovo part noSSS7A23384
anNoString40arrival noteAN2023082400003
cdaNoString20customer declaration numberCDA2023082100007
asnNoString20advanced ship noticeDN2023072720230727
startDateDate-start date2023-08-15T00:00:01Z
endDateDate-end date2023-08-18T01:00:01Z
  • Response data description
ParamTypeRequiredLengthDescriptionExample
codeStringY10response code"0"
msgStringY10response message"ok"/"error"
resultObjectNresponse payloadrefer to response sample

Request sample

json
{
	"pageNum": 1,
    "pageSize": 20,
    "lenovoPn": "SM17A98404"
}

Successful response sample

JSON
{
    "code": "0",
    "msg": "ok",
    "result": {
        "total": 2,
        "pageNum": 1,
        "pageSize": 20,
        "list": [
            {
	              "status": "Close",
                "anNo": "AN2023091200001",
                "deliveryNote": "LY1234567-23",
                "truckLicense": "11",
                "reqDate": "2023-09-12T10:23:49Z",
                "reqReason": "22",
                "itemStatus": "Close",
                "anType": "LOI",
                "vendorCode": "1000235334",
                "vendorName": "LONGWELL COMPANY",
                "shipCountry": "CHN China",
                "carrierId": "CEVA",
                "trackingId": "CV2300144857",
                "invoice": "LY1234567-23",
                "containerNo": "ABC0001",
                "mot": "Sea1",
                "shipToPlant": "E070",
                "anLine": 1,
                "asnNo": "LY1234567-2320230619",
                "asnLine": 1,
                "cdaNo": "CDA2023070500001",
                "po": "6500374300",
                "poLine": "00010",
                "lenovoPn": "0000039M5374",
                "partDescription": "LINECORD Cord - 1M",
                "qty": "200",
                "etaStatus": "Delay",
                "orderType": "MB",
                "bu": "IDG",
                "site": "ULLO",
                "hawb": "CV2300144857",
                "cartons": "10",
                "grossWeight": "100",
                "shippingLine": "test",
                "coo": "LINECORD Cord - 1M",
                "brand": "LINECORD Cord - 1M",
                "containerSize": "40HQ",
                "pallets": "1",
                "incoterm": "FOB",
                "incotermslocation": "HK",
                "currency": "USD",
                "portOfDischarge": "BUDAPEST",
                "remark": "ETA 14 days due but without GR",
                "creator": "zhaizg1",
                "creationDate": "2023-09-12T10:25:31Z",
                "modifier": "SYSTEM",
                "modifiedDate": "2023-09-12T10:30:00Z"
            },
            ...
        ]
    }
}

Failed response sample

JSON
{
    "code": "-1",
    "msg": "creationDate format exception!"
}
  • Business error code
Error codeError descriptionResolution
-1result coderevise field value according to result message
500server errorplease contact IT with detail error message