POST api/Payment/Create
Request Information
URI Parameters
None.
Body Parameters
PaymentCreationRequestDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| 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:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.