POST fxo/Deal/CorporateDeal

Request Information

URI Parameters

None.

Body Parameters

CreateCorporateDeal
NameDescriptionTypeAdditional information
detail

CorporateDealDetail

Required

deal

CorporateDeal

Required

deal_transaction

Collection of CorporateTransaction

Required

payments

Collection of CorporatePayments

None.

settlements

Collection of CorporateSettlements

None.

expense

Collection of Expense

None.

Request Formats

application/json, text/json

Sample:
{
  "detail": {
    "entity": {
      "value": "sample string 1",
      "id": 2
    },
    "trader": {
      "value": "sample string 1",
      "id": 2
    },
    "booker": {
      "value": "sample string 1",
      "id": 2
    },
    "currency": {
      "value": "sample string 1",
      "id": 2
    },
    "notes": "sample string 1",
    "internal_remarks": "sample string 2",
    "external_id": "sample string 3",
    "sub_inv_org": {
      "value": "sample string 1",
      "id": 2
    }
  },
  "deal": {
    "value_date": "sample string 1",
    "start_date": "sample string 2",
    "entry_date": "sample string 3"
  },
  "deal_transaction": [
    {
      "buy_currency": {
        "value": "sample string 1",
        "id": 2
      },
      "sub_inv_org": {
        "value": "sample string 1",
        "id": 2
      },
      "buy_amount": 1.0,
      "exchange_rate": 2.0,
      "actual_market_rate": 3.0,
      "market_rate": 4.0,
      "sell_currency": {
        "value": "sample string 1",
        "id": 2
      },
      "sell_amount": 5.0,
      "external_det_id": "sample string 6"
    },
    {
      "buy_currency": {
        "value": "sample string 1",
        "id": 2
      },
      "sub_inv_org": {
        "value": "sample string 1",
        "id": 2
      },
      "buy_amount": 1.0,
      "exchange_rate": 2.0,
      "actual_market_rate": 3.0,
      "market_rate": 4.0,
      "sell_currency": {
        "value": "sample string 1",
        "id": 2
      },
      "sell_amount": 5.0,
      "external_det_id": "sample string 6"
    }
  ],
  "payments": [
    {
      "currency": {
        "value": "sample string 1",
        "id": 2
      },
      "amount": 1.0,
      "value_date": "sample string 2",
      "account_value": "sample string 3",
      "account_id": "sample string 4",
      "payee": {
        "value": "sample string 1",
        "id": 2
      },
      "payee_name": "sample string 5",
      "action": {
        "value": "sample string 1",
        "id": 2
      },
      "act_type": "sample string 6"
    },
    {
      "currency": {
        "value": "sample string 1",
        "id": 2
      },
      "amount": 1.0,
      "value_date": "sample string 2",
      "account_value": "sample string 3",
      "account_id": "sample string 4",
      "payee": {
        "value": "sample string 1",
        "id": 2
      },
      "payee_name": "sample string 5",
      "action": {
        "value": "sample string 1",
        "id": 2
      },
      "act_type": "sample string 6"
    }
  ],
  "settlements": [
    {
      "action": {
        "value": "sample string 1",
        "id": 2
      },
      "currency": {
        "value": "sample string 1",
        "id": 2
      },
      "amount": 1.0,
      "value_date": "sample string 2",
      "account_value": "sample string 3",
      "account_id": "sample string 4",
      "payee": {
        "value": "sample string 1",
        "id": 2
      },
      "payee_name": "sample string 5",
      "act_type": "sample string 6",
      "reference": "sample string 7",
      "beneficiary_reference": "sample string 8",
      "notify_my_receipient": "sample string 9",
      "beneficiary_remarks": "sample string 10",
      "internal_reference": "sample string 11",
      "remittence_remarks": "sample string 12",
      "purpose_of_payment": {
        "value": "sample string 1",
        "id": 2
      },
      "purpose_of_payment_details": "sample string 13",
      "is_equivalent": 14,
      "fee": 15.1,
      "fee_type": {
        "value": "sample string 1",
        "id": 2
      },
      "fee_currency": {
        "value": "sample string 1",
        "id": 2
      }
    },
    {
      "action": {
        "value": "sample string 1",
        "id": 2
      },
      "currency": {
        "value": "sample string 1",
        "id": 2
      },
      "amount": 1.0,
      "value_date": "sample string 2",
      "account_value": "sample string 3",
      "account_id": "sample string 4",
      "payee": {
        "value": "sample string 1",
        "id": 2
      },
      "payee_name": "sample string 5",
      "act_type": "sample string 6",
      "reference": "sample string 7",
      "beneficiary_reference": "sample string 8",
      "notify_my_receipient": "sample string 9",
      "beneficiary_remarks": "sample string 10",
      "internal_reference": "sample string 11",
      "remittence_remarks": "sample string 12",
      "purpose_of_payment": {
        "value": "sample string 1",
        "id": 2
      },
      "purpose_of_payment_details": "sample string 13",
      "is_equivalent": 14,
      "fee": 15.1,
      "fee_type": {
        "value": "sample string 1",
        "id": 2
      },
      "fee_currency": {
        "value": "sample string 1",
        "id": 2
      }
    }
  ],
  "expense": [
    {
      "currency": {
        "value": "sample string 1",
        "id": 2
      },
      "account": "sample string 1",
      "type": {
        "value": "sample string 1",
        "id": 2
      },
      "amount": 2.0,
      "is_bank_note": true
    },
    {
      "currency": {
        "value": "sample string 1",
        "id": 2
      },
      "account": "sample string 1",
      "type": {
        "value": "sample string 1",
        "id": 2
      },
      "amount": 2.0,
      "is_bank_note": true
    }
  ]
}

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

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.