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
NameTypeRequiredDescription
AuthenticationTokenstring(50) YesAlliance cloud security token.
Body
NameTypeRequiredDescription
ChangeIDstring(36) YesChange ID.
Receivedboolean NoTrue or false – to confirm the change request was received.
ApprovedbooleanNoTrue or false – to confirm if the change request was approved (true) or not (false).
Commentstring(300)NoComment that will be shown to the exporter.
EXAMPLE
[
  {
    “ChangeID”: “0A9A6ECB-AC6C-4406-9F82-0002BFD92AC1”,
    “Received”: true,
    “Approved”: false,
    “Comment”: “no”
  }
]
Response

 

Output Success

 

BODY

NameTypeDescription
changeIDstring(36)Change ID.
isSuccessbooleanOutput Success (True).

EXAMPLE

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

 

BODY

NameTypeDescription
changeIDstring(36)Change ID.
IsSuccessbooleanOutput 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.”
    ]
}