POST api/Payment/Create

Request Information

URI Parameters

None.

Body Parameters

PaymentCreationRequestDTO
NameDescriptionTypeAdditional information
UserId

integer

None.

Email

string

None.

Phone

string

None.

Products

Collection of PaymentProductDTO

None.

IsTestMode

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Email": "sample string 1",
  "Phone": "sample string 2",
  "Products": [
    {
      "ProductId": 1,
      "Quantity": 2
    },
    {
      "ProductId": 1,
      "Quantity": 2
    }
  ],
  "IsTestMode": true
}

application/xml, text/xml

Sample:
<PaymentCreationRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Payment">
  <Email>sample string 1</Email>
  <IsTestMode>true</IsTestMode>
  <Phone>sample string 2</Phone>
  <Products>
    <PaymentProductDTO>
      <ProductId>1</ProductId>
      <Quantity>2</Quantity>
    </PaymentProductDTO>
    <PaymentProductDTO>
      <ProductId>1</ProductId>
      <Quantity>2</Quantity>
    </PaymentProductDTO>
  </Products>
  <UserId>1</UserId>
</PaymentCreationRequestDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.