POST api/PaymentRequests

Creates a payment request.

Request Information

URI Parameters

None.

Body Parameters

The payment request model to create with.

PaymentRequestInputDto
NameDescriptionTypeAdditional information
PaymentProvider

string

Required

OrderId

globally unique identifier

Required

Amount

decimal number

Required

RequestString

string

Required

Currency

string

Required

Test

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "PaymentProvider": "sample string 1",
  "OrderId": "b7f6c29b-d4bb-4d28-b290-61181dbf7c7d",
  "Amount": 3.0,
  "RequestString": "sample string 4",
  "Currency": "sample string 5",
  "Test": true
}

application/xml, text/xml

Sample:
<PaymentRequestInputDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Pay.Models">
  <Amount>3</Amount>
  <Currency>sample string 5</Currency>
  <OrderId>b7f6c29b-d4bb-4d28-b290-61181dbf7c7d</OrderId>
  <PaymentProvider>sample string 1</PaymentProvider>
  <RequestString>sample string 4</RequestString>
  <Test>true</Test>
</PaymentRequestInputDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.