POST api/order/Payment/Credits/Save
Allows for the creation of a new payment from system credits for the given order. or a given party This will deduct from system credits to apply to the order. or a party
Request Information
URI Parameters
None.
Body Parameters
The credit details to apply
CreditPaymentViewModel| 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. |
Request Formats
application/xml, text/xml
<CreditPaymentViewModel> <OrderID>1</OrderID> <PartyID>1</PartyID> <CreditAccountID>2</CreditAccountID> <Amount>3</Amount> <Description>sample string 4</Description> <PaymentDate>12/12/2025 13:04:28</PaymentDate> </CreditPaymentViewModel>
application/json, text/json
{
"OrderID": 1,
"PartyID": 1,
"CreditAccountID": 2,
"Amount": 3.0,
"Description": "sample string 4",
"PaymentDate": "2025-12-12T13:04:28.6719112-05:00"
}
application/x-www-form-urlencoded
Response Information
Resource Description
ApiResultOfPaymentViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | PaymentViewModel |
None. |
|
| IsSuccessful | boolean |
None. |
|
| MessageTranslationKey | string |
None. |
|
| Message | string |
None. |
|
| Messages | Collection of ApiResultMessage |
None. |
Response Formats
application/xml, text/xml, application/json, text/json
Sample not available.