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
CustCreditsModelName | 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. |
Request Formats
application/json, text/json
{ "CustGuid": "8cc1afd7-272e-4ee7-abc4-ecf27a9c89b3", "IsAllowCreditPurchase": true, "CashPoints": 1.0, "CreditBalance": 1.0, "CreditLimit": 1.0, "Comment": "sample string 3", "Type": 4, "SellerId": 5, "ClientId": 6 }
text/html
{"CustGuid":"8cc1afd7-272e-4ee7-abc4-ecf27a9c89b3","IsAllowCreditPurchase":true,"CashPoints":1.0,"CreditBalance":1.0,"CreditLimit":1.0,"Comment":"sample string 3","Type":4,"SellerId":5,"ClientId":6}
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>8cc1afd7-272e-4ee7-abc4-ecf27a9c89b3</CustGuid> <IsAllowCreditPurchase>true</IsAllowCreditPurchase> <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>