PUT api/CreditCard/{id}?hash={hash}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | string |
Required |
|
hash | string |
Required |
Body Parameters
CreditCardsName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
PaymentId | integer |
None. |
|
SiteId | integer |
None. |
|
Name | string |
None. |
|
OtherData | string |
None. |
|
Code | string |
None. |
|
Enable | boolean |
None. |
|
Payments | Collection of CreditCardPayments |
None. |
|
InstallmentType | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "PaymentId": 2, "SiteId": 3, "Name": "sample string 4", "OtherData": "sample string 5", "Code": "sample string 6", "Enable": true, "Payments": [ { "Payments": 1, "Interest": 2.0, "OtherData": "sample string 3", "BaseValue": 4.0 }, { "Payments": 1, "Interest": 2.0, "OtherData": "sample string 3", "BaseValue": 4.0 } ], "InstallmentType": 8 }
text/xml
Sample:
<CreditCards xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoLCms.Lib.Communications"> <Code>sample string 6</Code> <Enable>true</Enable> <Id>1</Id> <InstallmentType>8</InstallmentType> <Name>sample string 4</Name> <OtherData>sample string 5</OtherData> <PaymentId>2</PaymentId> <Payments> <CreditCardPayments> <BaseValue>4</BaseValue> <Interest>2</Interest> <OtherData>sample string 3</OtherData> <Payments>1</Payments> </CreditCardPayments> <CreditCardPayments> <BaseValue>4</BaseValue> <Interest>2</Interest> <OtherData>sample string 3</OtherData> <Payments>1</Payments> </CreditCardPayments> </Payments> <SiteId>3</SiteId> </CreditCards>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreditCardsName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
PaymentId | integer |
None. |
|
SiteId | integer |
None. |
|
Name | string |
None. |
|
OtherData | string |
None. |
|
Code | string |
None. |
|
Enable | boolean |
None. |
|
Payments | Collection of CreditCardPayments |
None. |
|
InstallmentType | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "PaymentId": 2, "SiteId": 3, "Name": "sample string 4", "OtherData": "sample string 5", "Code": "sample string 6", "Enable": true, "Payments": [ { "Payments": 1, "Interest": 2.0, "OtherData": "sample string 3", "BaseValue": 4.0 }, { "Payments": 1, "Interest": 2.0, "OtherData": "sample string 3", "BaseValue": 4.0 } ], "InstallmentType": 8 }
text/xml
Sample:
<CreditCards xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoLCms.Lib.Communications"> <Code>sample string 6</Code> <Enable>true</Enable> <Id>1</Id> <InstallmentType>8</InstallmentType> <Name>sample string 4</Name> <OtherData>sample string 5</OtherData> <PaymentId>2</PaymentId> <Payments> <CreditCardPayments> <BaseValue>4</BaseValue> <Interest>2</Interest> <OtherData>sample string 3</OtherData> <Payments>1</Payments> </CreditCardPayments> <CreditCardPayments> <BaseValue>4</BaseValue> <Interest>2</Interest> <OtherData>sample string 3</OtherData> <Payments>1</Payments> </CreditCardPayments> </Payments> <SiteId>3</SiteId> </CreditCards>