POST api/Payments?hash={hash}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hash

string

Required

Body Parameters

PaymentData
NameDescriptionTypeAdditional information
Code

string

None.

Payments

integer

None.

PaymentId

integer

None.

Interest

decimal number

None.

OtherData

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Payments": 2,
  "PaymentId": 3,
  "Interest": 4.0,
  "OtherData": "sample string 5"
}

text/xml

Sample:
<PaymentData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MvcWeb.Models">
  <Code>sample string 1</Code>
  <Interest>4</Interest>
  <OtherData>sample string 5</OtherData>
  <PaymentId>3</PaymentId>
  <Payments>2</Payments>
</PaymentData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreditCards
NameDescriptionTypeAdditional 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>