POST api/PapsWeb/GetRate

Request Information

URI Parameters

None.

Body Parameters

PapsRateParam
NameDescriptionTypeAdditional information
amount

decimal number

None.

destinationNipCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "amount": 1.0,
  "destinationNipCode": "sample string 2"
}

application/xml, text/xml

Sample:
<PapsRateParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CorporateAPI.RequestObjs">
  <amount>1</amount>
  <destinationNipCode>sample string 2</destinationNipCode>
</PapsRateParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PapsRateResponseData
NameDescriptionTypeAdditional information
Responsecode

string

None.

ResponseDescription

string

None.

Rate

PAPsRateBody

None.

Response Formats

application/json, text/json

Sample:
{
  "Responsecode": "sample string 1",
  "ResponseDescription": "sample string 2",
  "Rate": {
    "rate": 1.1,
    "sourceAmount": 2.1,
    "sourceCurrencyCode": "sample string 3",
    "destinationAmount": 4.1,
    "destinationCurrencyCode": "sample string 5",
    "description": "sample string 6",
    "usdRate": 7.1,
    "usdAmount": 8.1,
    "fee": 9.1,
    "exchangeRate": 10.1,
    "baseCurrency": "sample string 11",
    "feeInBaseCurrency": 12.1
  }
}

application/xml, text/xml

Sample:
<PapsRateResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CorporateAPI.ResponseObjs">
  <Rate>
    <baseCurrency>sample string 11</baseCurrency>
    <description>sample string 6</description>
    <destinationAmount>4.1</destinationAmount>
    <destinationCurrencyCode>sample string 5</destinationCurrencyCode>
    <exchangeRate>10.1</exchangeRate>
    <fee>9.1</fee>
    <feeInBaseCurrency>12.1</feeInBaseCurrency>
    <rate>1.1</rate>
    <sourceAmount>2.1</sourceAmount>
    <sourceCurrencyCode>sample string 3</sourceCurrencyCode>
    <usdAmount>8.1</usdAmount>
    <usdRate>7.1</usdRate>
  </Rate>
  <ResponseDescription>sample string 2</ResponseDescription>
  <Responsecode>sample string 1</Responsecode>
</PapsRateResponseData>