PwsSaveVendor
Overview
This web service inserts or updates a single vendor based on a detailed vendor structure (PwsVendorDetail). The service returns the identity of the vendor (PwsVendorRef) that has been inserted or updated. The caller can optionally request that the full vendor element (PwsVendorElement) be included in the response. Â
Request Format
- PwsSaveVendor
- serviceRequest: PwsSaveVendorRq
- RequestId: Int32
- SessionTicket: String
- ClearResourceVendorPayeesFlag: Boolean
- ClearVendorReconciliationGlAcctFlag: Boolean
- FullDetailFlag: Boolean
- Vendor: PwsVendorDetail
- OverrideCostCardWarningFlag: Boolean
- serviceRequest: PwsSaveVendorRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | 1Â | |
SessionTicket | String | Yes | Click here for more information. | AaNO7kKwfPfmXiw5wd7KdQ== | |
ClearResourceVendorPayeesFlag | Boolean | No | false | If set to 'true', the resource vendor payees will be cleared. | false |
ClearVendorReconciliationGlAcctFlag | Boolean | No | false | If set to 'true', the vendor reconciliation general ledger account will be cleared. | false |
FullDetailFlag | Boolean | No | false | If set to "true", the complete vendor detail will be included in response. | true |
Vendor | Yes | The detailed vendor information to be inserted or updated. | |||
OverrideCostCardWarningFlag | Boolean | No | false | This service will fail if you attempt to change the cost center and there are unpaid cost cards associated with the vendor. If you want the cost center to be changed regardless, you may specify this flag as true to override the error. | false |
Request Usage Example(s)
Response Format
- PwsSaveVendorResponse
- PwsSaveVendorResult: PwsSaveVendorRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- Vendor: PwsVendorElement
- VendorIdentity: PwsVendorRef
- PwsSaveVendorResult: PwsSaveVendorRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
ResponseId | Int32 | Click here for more information. | 1 |
Status | Click here for more information. | Ok | |
ServerTimestampUtc | DateTime | Click here for more information. | 2018-03-06T18:24:21.1133412Z |
Vendor | The complete set of information about the vendor. This will only be returned if FullDetailFlag is set to 'true'. | ||
VendorIdentity | The unique keys used to identify the vendor. |
Response Usage Examples
PwsSaveVendor - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
27003 | NewVendorMustHaveNameAndNumberSpecified | New Vendor Must have both New Name and New Number Specified. |
27004 | NewVendorMustHaveCostCenterSpecified | New Vendor Must be placed in an existing Cost Center. |
50024 | EntityNotFound | Entity PwsCostCenterRef was not found. |
59916 | VendorRefInvalid | VendorRef is required. |
59918 | VendorNotFound | Vendor not found. Another user may have deleted it. |
59919 | VendorNumberNotUnique | Vendor number is not unique. |
59928 | VendorReconciliationAcctNotNull | VendorReconciliationGlAccount must be null if ClearVendorReconciliationGlAcctFlag is set. |
59929 | ResourceVendorPayeeListNotNull | List of resource vendor payees must be empty if ClearResourceVendorPayeesFlag is set. |
59932 | ExpenseReportPayeeFlagCannotBeCleared | AnyResourceFlag must be null and there may be no ResourceVendorPayees when ExpenseReportPayeeFlag is to be cleared. |
59933 | AnyResourceFlagCannotBeSet | Operation would result in AnyResourceFlag being set, but ResourceVendorPayees are specified. |
59934 | VendorNameInUse | Specified vendor name already in use. |
59935 | NewVendorNameRequired | New Vendor Name is required on insert. |
59936 | NewVendorNumberRequired | New Vendor Number is required on insert. |
59937 | ClearResourceVendorPayeesFlagNotSet | Operation would result in clearing Resource Vendor Payees, but ClearResourceVendorPayeesFlag is not set. |