POST portal/Rate/BatchRatesForMRfq

Request Information

URI Parameters

None.

Body Parameters

BatchRatesForMRfq
NameDescriptionTypeAdditional information
entity

IdValuePair

None.

value_date

string

None.

start_date

string

None.

inv_org_cur

IdValuePair

None.

deal_type_id

integer

None.

batch_number

string

Required

cur_pair

Collection of Cur_Pair

None.

Request Formats

application/json, text/json

Sample:
{
  "entity": {
    "value": "sample string 1",
    "id": 2
  },
  "value_date": "sample string 1",
  "start_date": "sample string 2",
  "inv_org_cur": {
    "value": "sample string 1",
    "id": 2
  },
  "deal_type_id": 3,
  "batch_number": "sample string 4",
  "cur_pair": [
    {
      "buy_currency": {
        "value": "sample string 1",
        "id": 2
      },
      "sell_currency": {
        "value": "sample string 1",
        "id": 2
      },
      "buy_amount": 1.1,
      "sell_amount": 2.1,
      "exchange_rate": 3.1,
      "spread_percentage": 4.1,
      "spread_profit": 5.1,
      "market_rate": 6.1
    },
    {
      "buy_currency": {
        "value": "sample string 1",
        "id": 2
      },
      "sell_currency": {
        "value": "sample string 1",
        "id": 2
      },
      "buy_amount": 1.1,
      "sell_amount": 2.1,
      "exchange_rate": 3.1,
      "spread_percentage": 4.1,
      "spread_profit": 5.1,
      "market_rate": 6.1
    }
  ]
}

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 'BatchRatesForMRfq'.

application/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot access a closed Stream.

text/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot access a closed Stream.

Response Information

Resource Description

DSOutput
NameDescriptionTypeAdditional information
status

boolean

None.

data

Object

None.

code

integer

None.

message

string

None.

error

Error

None.

paging

Paging

None.

additional_codes

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "data": {},
  "code": 0,
  "message": "sample string 3",
  "error": {
    "code": 0,
    "message": "sample string 1",
    "target": "sample string 2",
    "details": [
      {
        "code": 0,
        "target": "sample string 1",
        "message": "sample string 2"
      },
      {
        "code": 0,
        "target": "sample string 1",
        "message": "sample string 2"
      }
    ]
  },
  "paging": {
    "page_number": 1,
    "page_size": 2,
    "page_from": 3,
    "page_to": 4,
    "record_count": 5
  },
  "additional_codes": "sample string 4"
}

application/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot access a closed Stream.

text/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot access a closed Stream.