POST api/Collections/PayForDeclaration

Request Information

URI Parameters

None.

Body Parameters

DeclaredPaymentRequest
NameDescriptionTypeAdditional information
PhoneNumber

string

None.

Network

string

None.

DeclarationCode

string

None.

Amount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "PhoneNumber": "sample string 1",
  "Network": "sample string 2",
  "DeclarationCode": "sample string 3",
  "Amount": 4.0
}

application/xml, text/xml

Sample:
<DeclaredPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ECollectionsServices.Models">
  <Amount>4</Amount>
  <DeclarationCode>sample string 3</DeclarationCode>
  <Network>sample string 2</Network>
  <PhoneNumber>sample string 1</PhoneNumber>
</DeclaredPaymentRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DeclaredPaymentResponse
NameDescriptionTypeAdditional information
ResponseCode

string

None.

ResponseStatus

string

None.

ResponseMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": "sample string 1",
  "ResponseStatus": "sample string 2",
  "ResponseMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<DeclaredPaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ECollectionsServices.Models">
  <ResponseCode>sample string 1</ResponseCode>
  <ResponseMessage>sample string 3</ResponseMessage>
  <ResponseStatus>sample string 2</ResponseStatus>
</DeclaredPaymentResponse>