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
NameTypeRequiredDescription
CustomerCodestring(50) YesCustomer code.
AuthenticationTokenstring(50) YesAlliance cloud security token.
StartDateDateTime(yyyy-MM-dd HH:mm:ss) YesStart date.
EndDateDateTime(yyyy-MM-dd HH:mm:ss) NoEnd date.
Response

 

Output Success

 

BODY

NameTypeDescription
changeIDstring(16)A unique ID for each change request.
poNumberstring(50)Po that is being changed.
estimatedDateDateTime(yyyy-MM-dd HH:mm:ss) Supplier delivery date to Logiztik Alliance Group warehouse for the PO detail that is being changed.
detailIDstring(128)PO detail ID (generated by the customer via PO API).
itemCodestring(32)Product code of the PO detail that is being changed.
productDescriptionstring(127)Initial product variety of the PO detail that is being changed.
productDescriptionNewstring(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.
boxSizestring(8)Initial product variety of the PO detail that is being changed.
boxSizeNewstring(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.
currentQuantityint(4)Number of pieces that are left on the initial PO detail.
shortQuantityint(4)Number of pieces that are short and will not be delivered on the initial PO detail.
newEstimatedDateDateTime(yyyy-MM-dd HH:mm:ss) New supplier delivery date to Logiztik Alliance Group warehouse, changed by the supplier.
farmNamestring(256)Supplier name that will be delivering changed boxes.
farmCodestring(32)
Supplier code that will be delivering changed boxes.
changeReasonstring(256)Change reason.
changeDatetimeDateTime(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

NameTypeDescription
mensajestring(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)