| 
								Main Web API Documentation Information
							 | |
| 
								Actual Page/Function Name:
							 | updatePOPaymentDate | 
| 
								Human Readable Name or Caption:
							 | Update PO Payment Date | 
| 
								Page/Function Description:
							 | This method will make sure that the PO payment date matches the main expense/receipt date. | 
| 
								Page/Function Output Type:
							 | API - JSON or WDDX | 
| 
								Categories:
							 | purchase order | 
| 
								Extra Page/Function Notes:
							 | |
| 
								Parameters
							 | |||||||
| Scope | Name | Type | Default | Description | Required | Alternates | Known Values | 
| Arguments | CORP_ID | Numeric | 0 | Pass in the corp id number. | Yes | ||
| Arguments | RECEIPT_DATE | String | Pass in the main expense/receipt date. | Yes | |||
| Arguments | RECEIPT_NUMBER | Numeric | 0 | Pass in the expense/receipt number. | Yes | ||
| 
								Results
							 | ||||
| RET_STATUS | RET_MAIN_MESSAGE | RET_SECOND_MESSAGE | Redirect Link | Description | 
| ok | success | This assumes that everything went well. | ||
| dataIn | Unable to run a special cross-check between the expense/receipt and the PO number submitted. Missing some data. | This is step two of a two step process. The expense/receipt line item portion was successful. The only thing that was not completed was a check between the expense/receipt and payment of the PO. [edit receipt line items] | This is returned if missing one or more of the following arguments: CORP_ID, RECEIPT_NUMBER. | |
| dataIn2 | Unable to run a special cross-check between the expense/receipt and the PO number submitted. Missing some date info. | This is step two of a two step process. The expense/receipt line item portion was successful. The only thing that was not completed was a check between the expense/receipt and payment of the PO. [edit receipt line items] | This is returned if RECEIPT_DATE is not a date. | |
| db | Unable to connect to the database. The special cross-check between the expense/receipt and the PO payment was not made successfully. | Use your back button and try again. | This is a catch for any errors that occur while accessing the database. | |
| 
								Samples
							 | |
| Caption | Text | 
| JSON | 
									{
  "API_CALL_FUNCTION_NAME": "updatePOPaymentDate",
  "CORP_ID": 53,
  "RECEIPT_DATE": "2025-08-04",
  "RECEIPT_NUMBER": 789,
  "API_CORP_KEY_ID": "PLA-0053",
  "API_USER_NAME": "demo",
  "API_USER_PASSWORD": "1234",
  "API_INPUT_OUTPUT_TYPE": "JSON",
  "API_CURRENT_PAYEE_ID": "3",
  "API_URL_ENCODING": "AUTO"
}
								 |