POST api/v1/transactions

Request Information

URI Parameters

None.

Body Parameters

CreateTransactionRequest
NameDescriptionTypeAdditional information
CompanyId

string

Required

CustomerId

string

Required

Amount

decimal number

Required

UseReward

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": "sample string 1",
  "CustomerId": "sample string 2",
  "Amount": 3.0,
  "UseReward": true
}

text/html

Sample:
{"CompanyId":"sample string 1","CustomerId":"sample string 2","Amount":3.0,"UseReward":true}

application/xml, text/xml

Sample:
<CreateTransactionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ReferralFlowAPI.DTOs">
  <Amount>3</Amount>
  <CompanyId>sample string 1</CompanyId>
  <CustomerId>sample string 2</CustomerId>
  <UseReward>true</UseReward>
</CreateTransactionRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.