GetASNDetails (GET)

Overview

This GET API allows retrieval of ASN details created in GEP SMART to post them into ERP.


URL Format: https:// <Instance>/SmartInterfaceAPI/api/Asn/GetASNs
 

Request

https://<Instance>/SmartInterfaceAPI/api/Asn/GetASNs 

 

Response
{
   "data": [
      {
         "SupplierASNNumber": "String",
         "expectedDeliveryDate": "2019-12-27T08:51:31.680Z",
         "clientPartnerCode": "String",
         "trackingNumber": "String",
         "comments": [
            {
               "commentText": "String",
               "commentAttachment": [
                  {
                     "fileName": "String",
                     "fileUri": "String"
                  }
               ]
            }
         ],
         "shippingMethod": {
            "domain": "String",
            "name": "String"
         },
         "asnItems": [
            {
               "itemLineNumber": 0,
               "poLineNumber": 0,
               "orderNumber": "String",
               "quantity": 0,
               "uom": "String",
               "shippingQuantity": 0,
               "previouslyShippedQuantity": 0,
               "previouslyAcceptedQuantity": 0,
               "description": "String",
               "supplierPartId": "String",
               "manufacturerPartNumber": "String",
               "supplierPartAuxiliaryId": "String",
               "shiptoLocation": {
                  "shiptoLocationName": "String",
                  "shiptoLocationNumber": "String",
                  "address": {
                     "addressline1": "String",
                     "addressline2": "String",
                     "addressline3": "String",
                     "city": "String",
                     "zipCode": "String",
                     "stateInfo": {
                        "stateAbbrevationCode": "String",
                        "stateName": "String"
                     },
                     "countryInfo": {
                        "countryCode": "String",
                        "countryName": "String"
                     },
                     "phoneNo1": "String",
                     "extenstionNo1": "String",
                     "phoneNo2": "String",
                     "extenstionNo2": "String",
                     "mobileNo": "String",
                     "faxNo": "String",
                     "county": "String",
                     "poBoxNumber": "String",
                     "isdCode": "String",
                     "geoCode": "String",
                     "areaCode": "String",
                     "createdOn": "2019-12-27T08:51:31.680Z"
                  }
               },
               "dateNeeded": "2019-12-27T08:51:31.680Z",
               "comments": [
                  {
                     "commentText": "String",
                     "commentAttachment": [
                        {
                           "fileName": "String",
                           "fileUri": "String"
                        }
                     ]
                  }
               ]
            }
         ],
         "documentName": "String",
         "documentNumber": "String",
         "documentStatus": "String",
         "documentDescription": "String",
         "documentCreator": "String",
         "documentBU": [
            {
               "entityCode": "String",
               "isDefault": false,
               "entityType": "String",
               "lobEntityCode": "String"
            }
         ],
         "operationName": "String"
      }
   ],
   "statusCode": "String",
   "errorDetails": [],
   "successDetails": []
}

 

Examples

Success Scenario – Request

https://api-smartdev.gep.com/SmartInterfaceAPI/api/Asn/GetASNs 

 

Success Scenario – Response

{
   "data": [
      {
         "SupplierASNNumber": "supGA00000042",
         "expectedDeliveryDate": "2019-12-27T08:51:31.680Z",
         "clientPartnerCode": "97423",
         "trackingNumber": "1Z2X41596890867127",
         "comments": [
            {
               "commentText": "com 1",
               "commentAttachment": [
                  {
                     "fileName": "",
                     "fileUri": ""
                  }
               ]
            }
         ],
         "shippingMethod": {
            "domain": "SCAC",
            "name": "V1-UPS"
         },
         "asnItems": [
            {
               "itemLineNumber": 1,
               "poLineNumber": 1,
               "orderNumber": "G000017636",
               "quantity": 1,
               "uom": "EA",
               "shippingQuantity": 1,
               "previouslyShippedQuantity": 0,
               "previouslyAcceptedQuantity": 0,
               "description": "S311-0547  PLC-Proc Module, 5/01,1k,Reconditioned ladder V108R02",
               "supplierPartId": "S311-0547",
               "manufacturerPartNumber": "",
               "supplierPartAuxiliaryId": "",
               "shiptoLocation": {
                  "shiptoLocationName": "gep solutions",
                  "shiptoLocationNumber": "G101",
                  "address": {
                     "addressline1": "100 walnut ave",
                     "addressline2": "3rd floor",
                     "addressline3": "",
                     "city": "Clark",
                     "zipCode": "07066",
                     "stateInfo": {
                        "stateAbbrevationCode": "NJ",
                        "stateName": "New Jersey"
                     },
                     "countryInfo": {
                        "countryCode": "US",
                        "countryName": "United States"
                     },
                     "phoneNo1": "",
                     "extenstionNo1": "",
                     "phoneNo2": "",
                     "extenstionNo2": "",
                     "mobileNo": "",
                     "faxNo": "",
                     "county": "",
                     "poBoxNumber": "",
                     "isdCode": "",
                     "geoCode": "",
                     "areaCode": "",
                     "createdOn": "2019-12-27T08:51:31.680Z"
                  }
               },
               "dateNeeded": "2019-12-27T08:51:31.680Z",
               "comments": [
                  {
                     "commentText": "com line1",
                     "commentAttachment": [
                        {
                           "fileName": "",
                           "fileUri": ""
                        }
                     ]
                  }
               ]
            }
         ],
         "documentName": "ASN1 for ceg24  Requisition41",
         "documentNumber": "GA00000042",
         "documentStatus": "",
         "documentDescription": "",
         "documentCreator": "CC-21-10",
         "documentBU": [
            {
               "entityCode": "1105",
               "isDefault": false,
               "entityType": "Company Code",
               "lobEntityCode": "A101"
            }
         ],
         "header": {
            "from": {
               "domain": "",
               "identity": ""
            },
            "to": {
               "domain": "",
               "identity": ""
            },
            "sender": {
               "domain": "",
               "identity": "",
               "sharedSecret": "",
               "userAgent": ""
            }
         },
         "operationName": "new"
      }
   ],
   "statusCode": "200",
   "errorDetails": [],
   "successDetails": []
}

 

Failure Scenario – Request

https://api-smartdev.gep.com/SmartInterfaceAPI/api/Asn/GetASNs 

 

Failure Scenario – Response

{
    "data": [],
    "statusCode": "200",
    "errorDetails": [],
    "successDetails": []
}

 

Data Elements
Get ASN details    
PropertyRequired?Data typeDescriptionValidations/Exceptions
Data ASN object  
StatusCode String  
ErrorDetails List of ErrorModel object  
SuccessDetails List of SuccessModel object  
Data    
PropertyRequired?Data typeDescriptionValidations/Exceptions
SupplierASNNumber StringSupplier ASN Number 
ExpectedDeliveryDate DatetimeExpected Delivery Date 
ClientPartnerCode StringClient Partner Code 
TrackingNumber StringTracking Number 
Comments List of InterfaceComment objectCheck data type InterfaceComment for details 
ShippingMethod ShippingMethod objectShipping Method 
AsnItems List of AsnItems objectAsn Items 
DocumentName StringDocument Name 
DocumentNumber StringDocument Number 
DocumentStatus StringDocument Status 
DocumentDescription StringDocument Description 
DocumentCreator StringDocument Creator 
DocumentBU List of OrgEntity objectCheck data type OrgEntity for details 
Header Header objectCheck data type Header for details 
Comments    
PropertyRequired?Data typeDescriptionValidations/Exceptions
CommentText StringComment Text in a string 
CommentAttachment List of InterfaceCommentAttachment objectCheck data type Interface Comment Attachment for details 
CommentAttachment    
PropertyRequired?Data typeDescriptionValidations/Exceptions
FileName StringFileName 
FileUri StringFileUri 
ShippingMethod    
PropertyRequired?Data typeDescriptionValidations/Exceptions
Domain StringDomain 
Name DatetimeName 
AsnItems    
PropertyRequired?Data typeDescriptionValidations/Exceptions
ItemLineNumber IntItem Line Number 
PoLineNumber IntPurchase Order Line Number 
OrderNumber StringOrder Number 
Quantity DecimalQuantity 
Uom StringUnit of Measurement 
ShippingQuantity DecimalShipping Quantity 
PreviouslyShippedQuantity DecimalPreviously Shipped Quantity 
PreviouslyAcceptedQuantity DecimalPreviously Accepted Quantity 
Description StringDescription 
SupplierPartId StringSupplier Part Id 
ManufacturerPartNumber StringManufacturer Part Number 
SupplierPartAuxiliaryId StringSupplier Part Auxiliary Id 
ShiptoLocation InterfaceShiptoLocation objectCheck data type InterfaceShiptoLocation for details 
DateNeeded DatetimeDate Needed 
Comments List of InterfaceComment objectCheck data type InterfaceComment for details 
ShiptoLocation    
PropertyRequired?Data typeDescriptionValidations/Exceptions
ShiptoLocationName StringShip to Location Name 
ShiptoLocationNumber StringShip to Location Number 
Address Address objectCheck data type Address for details 
TelephoneNumber IntTelephone Number 
Address    
PropertyRequired?Data typeDescriptionValidations/Exceptions
IsdCode StringIsd Code 
PoBoxNumber StringPo Box Number 
County StringCounty 
FaxNo StringFax No 
MobileNo StringMobile No 
ExtenstionNo2 StringExtenstionNo2 
PhoneNo2 StringPhoneNo2 
GePCode StringGeP Code 
ExtenstionNo1 StringExtenstionNo1 
CountryInfo InterfaceCountryInfo objectCheck data type InterfaceCountryInfo for details 
StateInfo InterfaceStateInfo objectCheck data type InterfaceStateInfo for details 
ZipCode StringZip Code 
City StringCity 
Addressline3 StringAddressline3 
Addressline2 StringAddressline2 
Addressline1 StringAddressline1 
PhoneNo1 StringPhoneNo1 
AreaCode StringArea Code 
CountryInfo    
PropertyRequired?Data typeDescriptionValidations/Exceptions
CountryCode StringCountry Code 
CountryName StringCountry Name 
StateInfo    
PropertyRequired?Data typeDescriptionValidations/Exceptions
StateAbbrevationCode StringState Abbreviation Code 
StateName StringState Name 
DocumentBU    
PropertyRequired?Data typeDescriptionValidations/Exceptions
EntityCode StringEntity Code 
IsDefault Boolean  
EntityType StringEntity Type 
LOBEntityCode String  
ErrorDetails    
PropertyRequired?Data typeDescriptionValidations/Exceptions
Key String  
Errors List of Error object  
Errors    
PropertyRequired?Data typeDescriptionValidations/Exceptions
ErrorCode String  
ErrorDescription String  
SuccessDetails    
PropertyRequired?Data typeDescriptionValidations/Exceptions
Key String