CreditPaymentViewModel
Object that contains the payment information for a generic payment record where client can set the payment type. Optional.
| Name | Description | Type | Additional information | 
|---|---|---|---|
| OrderID | 
                         This is the orderID to apply the credit to  | 
                    integer | 
                                 Required  | 
                
| PartyID | integer | 
                             None.  | 
                |
| CreditAccountID | 
                         This is the credit account to apply the credits to. Often there is only a "General" account of 1  | 
                    integer | 
                                 Required  | 
                
| Amount | 
                         The payment amount to apply. This amount must be no greater than the order total or the amount available in the credit account requested.  | 
                    decimal number | 
                                 Required  | 
                
| Description | 
                         Any description that need to be given to the Payment Credit. This is Optional  | 
                    string | 
                             None.  | 
                
| PaymentDate | 
                         Payment Date of the Payment record created, if not entered the default value is current date. This is Optional.  | 
                    date | 
                             None.  |