Overview
This web service updates the payment workflow status for one or more cost cards. The cost card could be in Draft, Submitted or Rejected statuses in Approval workflow. In that case, when a cost card is set to a status other than "Not Approved to Pay" in Payment workflow, the Approval workflow status is automatically set to Approved status. If the cost card is on a payment voucher, the status change will confer the same change on all the other cost cards on the same payment voucher. For example, if a payment voucher has two cost cards, one has its payment status set to "Approved to Pay", then other cost card's payment status is automatically set to "Approved to Pay".
Request Format
Panel | ||
---|---|---|
| ||
|
Request Elements
Element | Data Type | Required? | Default | Description |
---|
RequestId
StatusOrders
Element
Data Type
Required?
Default
Description
SessionTicket
String
PaymentWorkflowStatus
String
SendApprovalEmailFlag
Boolean
SendApprovalToPayEmailFlag
Boolean
SendPaidEmailFlag
Boolean
Sample Data | |
---|---|
RequestId | Int32 |
No | Click here for more information. |
0 | |
SessionTicket | String |
Yes | Click here for more information. |
AdeUxuUYUffSYpH+zHYKYQ== |
PaymentWorkflowStatus | String |
Yes
The approval workflow status
'D' for Draft
'R' for Rejected
'S' for Submitted
'A' for Approved
A
CostCardIdentities
Yes
This is the cost card identity or identities that will be updated with a new approval workflow status
RejectedReason
String
Yes (if the ApprovalWorkflowStatus is set to "R")
The reason the cost card was rejected. This is a required field if the ApprovalWorkflowStatus is set to "R".
SendApprovalRejectionEmailFlag
Boolean
No
Yes | Cost card payment workflow status code: 'N' for Not Approved to Pay 'F' for Approved to Pay 'T' for Transmitted 'P' for Paid 'C' for Received. | F | |||
SendApprovalEmailFlag | Boolean | No | false | If set to "true", an email will be sent informing the payment voucher resource that the cost card has been approved. | true |
SendApprovalToPayEmailFlag | Boolean | No | false | If set to "true", an email will be sent informing the payment voucher resource that the cost card has been approved to pay. | true |
SendPaidEmailFlag | Boolean | No | false | If set to "true", an email will be sent informing the payment voucher resource that the cost card has been |
paid | true | ||||
StatusOrders | This data structure includes the identifies of the cost cards to be updated and additional information accompanying payment status change. For example, AP voucher number when status is set to transmitted. |
Request Usage Example(s)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:tim="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/"> <soapenv:Header/> <soapenv:Body> <pws:PwsSetCostCardApprovalWorkflowStatus>:PwsSetCostCardPaymentWorkflowStatus> <!--Optional:--> <pws:serviceRequest> <req:RequestId>1</req:RequestId>SessionTicket>AdeUxuUYUffSYpH+zHYKYQ==</req:SessionTicket> <!--Optional:--> <tim:PaymentWorkflowStatus>F</tim:PaymentWorkflowStatus> <!--Optional:--> <tim:SendApprovalEmailFlag>false</tim:SendApprovalEmailFlag> <!--Optional:--> <req:SessionTicket>AUmQP6quTuUK5v2QUR0fRw==</req:SessionTicket><tim:SendApprovalToPayEmailFlag>false</tim:SendApprovalToPayEmailFlag> <!--Optional:--> <tim:SendPaidEmailFlag>false</tim:SendPaidEmailFlag> <!--Optional:--> <tim:StatusOrders> <!--Zero or more repetitions:--> <tim:PwsCostPwsChangeOrder> <tim:ApprovalWorkflowStatus>A<ApproveToPayFlag>true</tim:ApprovalWorkflowStatus>ApproveToPayFlag> <!--Optional:--> <tim:CostCardIdentities> <!--Zero or more repetitions:--> <tim:PwsVersionedCostCardRef> <com:CostCardUid>1152921504614151665<CostCardUid>1152921504613926551</com:CostCardUid> </tim:PwsVersionedCostCardRef> </tim:CostCardIdentities> </tim:PwsCostPwsChangeOrder> </tim:StatusOrders> </pws:serviceRequest> </pws:PwsSetCostCardApprovalWorkflowStatus>PwsSetCostCardPaymentWorkflowStatus> </soapenv:Body> </soapenv:Envelope> |
Response Format
Panel | ||
---|---|---|
| ||
|
Response Elements
Element | Data Type |
---|
Default
Description | Sample Data | ||
---|---|---|---|
Messages | Click here for more information. | ||
ResponseId | Int32 | Click here for more information. |
0 | |||
Status | Click here for more information. | Ok | |
ServerTimestampUtc | DateTime | Click here for more information. | 2018-08-22T17:50:23.1025831Z |
CostCardIdentities |
The identity of the cost cards that have been updated. |
Response Usage Example(s)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <PwsSetCostCardApprovalWorkflowStatusResponse<PwsSetCostCardPaymentWorkflowStatusResponse xmlns="http://projectorpsa.com/PwsProjectorServices/"> <PwsSetCostCardApprovalWorkflowStatusResult<PwsSetCostCardPaymentWorkflowStatusResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/> <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1<>0</ResponseId> <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status> <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-0809-22T1710T15:5057:2341.1025831Z<8861299Z</ServerTimestampUtc> <a:CostCardIdentities xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"> <b:PwsCostCardRef> <b:CostCardId i:nil="true"/> <b:CostCardUid>1152921504614151665<CostCardUid>1152921504613926551</b:CostCardUid> <b:ReferenceId i:nil="true"/> </b:PwsCostCardRef> </a:CostCardIdentities> </PwsSetCostCardApprovalWorkflowStatusResult>PwsSetCostCardPaymentWorkflowStatusResult> </PwsSetCostCardApprovalWorkflowStatusResponse>PwsSetCostCardPaymentWorkflowStatusResponse> </s:Body> </s:Envelope> |
...
PwsSetCostCardInvoiceWorkflowStatus - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText | 19046 | InvalidValueForCostCardApprovalWorkflowStatus
---|---|---|
10111 | RequiredFieldMissing | A required field is missing: StatusOrders |
19045 | CostCardIdentitiesRequired | One or more cost card identities must be specified. |
19052 | InvalidValueForCostCardPaymentWorkflowStatus | The specified value for cost card approvalpayment workflow status is invalid. Valid values are D for Draft, R for Rejected, S for Submitted and A for Approved. |
19050 | RejectedReasonRequiredWhenRejecting | A reject reason is required when rejecting cost cards. |
65491 | CostCardNotFound | CostCard not found N for Not Approved to Pay, F for Approved to Pay, T for Transmitted, P for Paid and C for Received. |
65329 | AP voucher number may not be specified | AP voucher number may not be specified when payment workflow status is not Transmitted |
65330 | AP payment information may not be specified | AP payment information may not be specified when payment workflow status is not Paid |
65723 | StatusChangeCannotBeCompletedCostCardsChangedOrIneligible | Status change cannot be completed because one or more cards has changed or is ineligible. |