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 numberCDA202****0001
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": "xxx@xx.com"
        }
    ],
    "anCreateItemList": [
        {
            "cdaNo": "CDA202****0001",
            "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 noteSM1****40
poString40purchase order65****6
lenovoPnString40lenovo part noS****4
anNoString40arrival noteAN1111111
cdaNoString20customer declaration numberCDA111111
asnNoString20advanced ship noticeDN1111111
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": "pn1"
}

Successful response sample

JSON
{
    "code": "0",
    "msg": "ok",
    "result": {
        "total": 2,
        "pageNum": 1,
        "pageSize": 20,
        "list": [
            {
	              "status": "Close",
                "anNo": "AN1111111111",
                "deliveryNote": "dn-23",
                "truckLicense": "11",
                "reqDate": "2023-09-12T10:23:49Z",
                "reqReason": "22",
                "itemStatus": "Close",
                "anType": "LOI",
                "vendorCode": "vendor1",
                "vendorName": "ABCD",
                "shipCountry": "CHN China",
                "carrierId": "11111",
                "trackingId": "1111",
                "invoice": "11111",
                "containerNo": "ABC0001",
                "mot": "Sea1",
                "shipToPlant": "1111",
                "anLine": 1,
                "asnNo": "ASN****",
                "asnLine": 1,
                "cdaNo": "CDA1111",
                "po": "po1",
                "poLine": "1",
                "lenovoPn": "pn1",
                "partDescription": "part description",
                "qty": "200",
                "etaStatus": "111",
                "orderType": "MB",
                "bu": "IDG",
                "site": "ULLO",
                "hawb": "CV111111",
                "cartons": "10",
                "grossWeight": "100",
                "shippingLine": "test",
                "coo": "coo1",
                "brand": "brand1",
                "containerSize": "22",
                "pallets": "1",
                "incoterm": "aaaa",
                "incotermslocation": "HK",
                "currency": "USD",
                "portOfDischarge": "BUDAPEST",
                "remark": "remark1",
                "creator": "abcd",
                "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