POST api/Payment

Request Information

URI Parameters

None.

Body Parameters

PaymentOrder
NameDescriptionTypeAdditional information
externalReference

string

None.

provider

string

None.

mode

PaymentMode

None.

amount

integer

None.

currency

string

None.

description

string

None.

debtor

PaymentAccount

None.

creditor

PaymentAccount

None.

Request Formats

application/json, text/json

Sample:
{
  "externalReference": "sample string 1",
  "provider": "sample string 2",
  "mode": "Register",
  "amount": 3,
  "currency": "sample string 4",
  "description": "sample string 5",
  "debtor": {
    "bankCode": "sample string 1",
    "accountType": "sample string 2",
    "accountNumber": "sample string 3",
    "holderRut": "sample string 4",
    "holderName": "sample string 5",
    "holderEmail": "sample string 6"
  },
  "creditor": {
    "bankCode": "sample string 1",
    "accountType": "sample string 2",
    "accountNumber": "sample string 3",
    "holderRut": "sample string 4",
    "holderName": "sample string 5",
    "holderEmail": "sample string 6"
  }
}

application/xml, text/xml

Sample:
<PaymentOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiLMD.Models.ClassModel.Payment">
  <Amount>3</Amount>
  <Creditor>
    <AccountNumber>sample string 3</AccountNumber>
    <AccountType>sample string 2</AccountType>
    <BankCode>sample string 1</BankCode>
    <HolderEmail>sample string 6</HolderEmail>
    <HolderName>sample string 5</HolderName>
    <HolderRut>sample string 4</HolderRut>
  </Creditor>
  <Currency>sample string 4</Currency>
  <Debtor>
    <AccountNumber>sample string 3</AccountNumber>
    <AccountType>sample string 2</AccountType>
    <BankCode>sample string 1</BankCode>
    <HolderEmail>sample string 6</HolderEmail>
    <HolderName>sample string 5</HolderName>
    <HolderRut>sample string 4</HolderRut>
  </Debtor>
  <Description>sample string 5</Description>
  <ExternalReference>sample string 1</ExternalReference>
  <Mode>Register</Mode>
  <Provider>sample string 2</Provider>
</PaymentOrder>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PaymentOrder'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.