In This Topic
            
            Resource Path: /sites/{company-id}/api/payment/post
            Uri: https://secure.ontime360.com/sites/{company-id}/api/payment/post
            Description
Creates a new Payment record, or updates an existing Payment record.
Request 
The request body is of type Payment.
A comprehensive Payment object containing the new invoice payment information.
Overview
|  | Payment 
 Represents a comprehensive Payment record within the OnTime API.
|  | Customer : string The unique Guid identifier referencing the Customer record assigned to this Payment. |  
|  | Invoice : string The unique Guid identifier referencing the Invoice record assigned to this Payment. |  
|  | ID : string The unique identifier for this Payment record. |  
|  | Amount : number The amount that this Payment will deduct from the remaining balance of the assigned Invoice. |  
|  | Date : string The date this Payment was generated and applied to an Invoice. |  
|  | Memo : string Any additional comments associated with this Payment. |  
|  | ReferenceNumber : string The reference number assigned to this Payment. |  
|  | TransferredToQuickBooksDesktop : boolean Indicates if this Payment has been exported to QuickBooks via OnTime Management Suite. |  | 
201 Response 
The response body is of type object.
Returns the created or updated Payment object.
Fault  Responses
| Fault | Description | 
|---|
| 400 | Request was improperly formatted, contained invalid data, or contained incorrect values. See response body for more information. | 
| 401 | Authorization key is invalid or no longer exists. | 
| 403 | Authorization key does not have permission to perform this action, or does not have permission to access the requested data. See response body for more information. | 
See Also