POST
api/v1/add-to-customer-wallet?transactionAmount={transactionAmount}&description={description}&clientId={clientId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| transactionAmount | decimal number |
Required |
|
| description | string |
Required |
|
| clientId | integer |
Required |
Body Parameters
CustCreditsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CustGuid | globally unique identifier |
None. |
|
| IsAllowCreditPurchase | boolean |
None. |
|
| CashPoints | decimal number |
Matching regular expression pattern: \d+(\.\d{1,2})? Range: inclusive between 0 and 1E+16 |
|
| CreditBalance | decimal number |
Matching regular expression pattern: ^\s*(?=.*[1-9])\d*(?:\.\d{1,2})?\s*$ Range: inclusive between 0 and 1E+16 |
|
| CreditLimit | decimal number |
Matching regular expression pattern: \d+(\.\d{1,2})? Range: inclusive between 0 and 1E+16 |
|
| Comment | string |
None. |
|
| Type | integer |
None. |
|
| SellerId | integer |
None. |
|
| ClientId | integer |
None. |
|
| ModifiedBy | integer |
None. |
Request Formats
application/json, text/json
{
"CustGuid": "d9e0d55a-c5ca-44e2-95f6-a32317b9bc8b",
"IsAllowCreditPurchase": true,
"CashPoints": 1.0,
"CreditBalance": 1.0,
"CreditLimit": 1.0,
"Comment": "sample string 3",
"Type": 4,
"SellerId": 5,
"ClientId": 6,
"ModifiedBy": 7
}
text/html
{"CustGuid":"d9e0d55a-c5ca-44e2-95f6-a32317b9bc8b","IsAllowCreditPurchase":true,"CashPoints":1.0,"CreditBalance":1.0,"CreditLimit":1.0,"Comment":"sample string 3","Type":4,"SellerId":5,"ClientId":6,"ModifiedBy":7}
application/xml, text/xml
<CustCreditsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI.Models.Customer"> <CashPoints>1</CashPoints> <ClientId>6</ClientId> <Comment>sample string 3</Comment> <CreditBalance>1</CreditBalance> <CreditLimit>1</CreditLimit> <CustGuid>d9e0d55a-c5ca-44e2-95f6-a32317b9bc8b</CustGuid> <IsAllowCreditPurchase>true</IsAllowCreditPurchase> <ModifiedBy>7</ModifiedBy> <SellerId>5</SellerId> <Type>4</Type> </CustCreditsModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Description:
Return type: string
Response Formats
application/json, text/json, text/html
"sample string 1"
application/xml, text/xml
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
