Purchase Order Change Request


DESCRIPTION

Web Service that returns the PO change request information.

General Information:  

  • The ChangeID is a unique value.  
  • The customer should consume the web service with start date and time = last date and time of consumption – 1.5 hours (to consider time differences in the servers and winter/ sommer time changes) and then just process the new ChangeIds. 
  • Time until can be null.  
Request

Method: GET

Content-Type: application/json

URL:

Test Environment: https://training.logiztikalliance.com:5005/logCloudWSSprint/api/ClientesExternosA/POChangesRequests/{CUSTOMERCODE}/{TOKEN}/{STARTDATE YYYY-MM-DD hh:mm:ss}/{ENDDATE YYYY-MM-DD hh:mm:ss}
Production Environment: https://cloud.logiztikalliance.com:5005/logCloudWS/api/ClientesExternosA/POChangesRequests/{CUSTOMERCODE}/{TOKEN}/{STARTDATE YYYY-MM-DD hh:mm:ss}/{ENDDATE YYYY-MM-DD hh:mm:ss}
INPUT PARAMETERS
Name Type Required Description
CustomerCode string(50) Yes Customer code.
AuthenticationToken string(50) Yes Alliance cloud security token.
StartDate DateTime(yyyy-MM-dd HH:mm:ss) Yes Start date.
EndDate DateTime(yyyy-MM-dd HH:mm:ss) No End date.
Response

 

Output Success

 

BODY

Name Type Description
changeID string(16) A unique ID for each change request.
poNumber string(50) Po that is being changed.
estimatedDate DateTime(yyyy-MM-dd HH:mm:ss) Supplier delivery date to Logiztik Alliance Group warehouse for the PO detail that is being changed.
detailID string(128) PO detail ID (generated by the customer via PO API).
itemCode string(32) Product code of the PO detail that is being changed.
productDescription string(127) Initial product variety of the PO detail that is being changed.
productDescriptionNew string(127) In case the supplier changed the product variety, this field will return the new product variety changed by the supplier. Otherwise, it will return null.
boxSize string(8) Initial product variety of the PO detail that is being changed.
boxSizeNew string(8) In case the supplier changed the box type, this field will return the new box type changed by the supplier. Otherwise, it will return null.
currentQuantity int(4) Number of pieces that are left on the initial PO detail.
shortQuantity int(4) Number of pieces that are short and will not be delivered on the initial PO detail.
newEstimatedDate DateTime(yyyy-MM-dd HH:mm:ss) New supplier delivery date to Logiztik Alliance Group warehouse, changed by the supplier.
farmName string(256) Supplier name that will be delivering changed boxes.
farmCode string(32)
Supplier code that will be delivering changed boxes.
changeReason string(256) Change reason.
changeDatetime DateTime(yyyy-MM-dd HH:mm:ss) Date and time of the change.

EXAMPLE

[
    {
        “changeID”: “454cb06c-26d5-414f-8d96-0ef6c3256d72”,
        “poNumber”: “180968”,
        “estimatedDate”: “2022-02-02T00:00:00”,
        “detailID”: “_6970TMPF0”,
        “itemCode”: null,
        “productDescription”: “ROSE RED EXPLORER 70cm”,
        “productDescriptionNew”: null,
        “boxSize”: “QB”,
        “boxSizeNew”: null,
        “currentQuantity”: 1,
        “shortQuantity”: 7,
        “newEstimatedDate”: “2022-02-03T00:00:00”,
        “farmName”: “ARCOFLOR FLORES ARCOIRIS S.A.”,
        “farmCode”: “FL-63”,
        “changeReason”: “”,
        “changeDatetime”: “2022-02-02T15:28:31”
    }
]
 
Output Error

 

BODY

Name Type Description
mensaje string(400) Output error message.

EXAMPLE

{
    “mensaje”: “Error in database connection.”
}
 
ERRORS MESSAGES

 

ERROR IN DATABASE CONNECTION

 

{
    “mensaje”: “Error in database connection.”
}
WRONG TOKEN

 

[]
ERROR IN CUSTOMER CODE

 

[]
DATE FORMATE ERROR
{
    “mensaje”: “The DateTime represented by the string ‘2022-02-02 23:59:75’ is not supported in calendar ‘System.Globalization.GregorianCalendar’.”
}
MISSING PARAMETERS

(Empty string)