Confirmation of PO Change Request


 DESCRIPTION

PO Change Request Confirmation.

 

Request

Method: POST

Content-Type: application/json

URL:

Test Environment: http://training.logiztikalliance.com:5005/logCloudWSSprint/api/Integration/POChangeRequestConfirmation/{token}
Production Environment: https://cloud.logiztikalliance.com:5005/logCloudWS/api/Integration/POChangeRequestConfirmation/{token}
INPUT PARAMETERS
Name Type Required Description
AuthenticationToken string(50) Yes Alliance cloud security token.
Body
Name Type Required Description
ChangeID string(36) Yes Change ID.
Received boolean No True or false – to confirm the change request was received.
Approved boolean No True or false – to confirm if the change request was approved (true) or not (false).
Comment string(300) No Comment that will be shown to the exporter.
EXAMPLE
[
  {
    “ChangeID”: “0A9A6ECB-AC6C-4406-9F82-0002BFD92AC1”,
    “Received”: true,
    “Approved”: false,
    “Comment”: “no”
  }
]
Response

 

Output Success

 

BODY

Name Type Description
changeID string(36) Change ID.
isSuccess boolean Output Success (True).

EXAMPLE

[
    {
        “changeID”: “0a9a6ecb-ac6c-4406-9f82-0002bfd92ac1”,
        “isSuccess”: true
    }
]
 
Output Error

 

BODY

Name Type Description
changeID string(36) Change ID.
IsSuccess boolean Output Error (False).

EXAMPLE

[
    {
        “changeID”: “0572dfaf-dace-4a79-83ab-2c0d416a3853”,
        “isSuccess”: false
    }
]
 
ERRORS MESSAGES

 

WRONG TOKEN

 

{
    “errorMessage”: “Invalid Token”
}
MISSING TOKEN

 

Empty string.

CHANGEID DOES NOT EXIST

 

[
    {
        “changeID”: “0572dfaf-dace-4a79-83ab-2c0d416a3853”,
        “isSuccess”: false
    }
]
CHANGEID SYNTAX ERROR

 

{
    “[0].ChangeID”: [
        “Error converting value \”0A9A6ECB-AC6C-4406-9F82-0002BFD92AC1——–\” to type ‘System.Guid’. Path ‘[0].ChangeID’, line 3, position 62.”
    ]
}
MISSING CHANGEID

 

[
    {
        “changeID”: “00000000-0000-0000-0000-000000000000”,
        “isSuccess”: false
    }
]
CHANGEID EMPTY

 

{
    “[0].ChangeID”: [
        “Error converting value \”\” to type ‘System.Guid’. Path ‘[0].ChangeID’, line 3, position 18.”
    ]
}
RECEIVED NULL

 

{
    “[0].Received”: [
        “Error converting value {null} to type ‘System.Boolean’. Path ‘[0].Received’, line 4, position 20.”
    ]
}
APPROVED NULL

 

{
    “[0].Approved”: [
        “Error converting value {null} to type ‘System.Boolean’. Path ‘[0].Approved’, line 5, position 20.”
    ]
}