POST api/Payments?userId={userId}&channel={channel}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
Required |
|
| channel | string |
Required |
Body Parameters
PaymentDto| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentId | integer |
None. |
|
| TotalPrice | decimal number |
None. |
|
| CouponId | integer |
None. |
|
| CouponCode | string |
None. |
|
| Discount | decimal number |
None. |
|
| DiscountedPrice | decimal number |
None. |
|
| StoreDiscounted | decimal number |
None. |
|
| AppDiscounted | decimal number |
None. |
|
| DeliveryFee | decimal number |
None. |
|
| ServiceFee | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"PaymentId": 1,
"TotalPrice": 2.0,
"CouponId": 3,
"CouponCode": "sample string 4",
"Discount": 5.0,
"DiscountedPrice": 6.0,
"StoreDiscounted": 7.0,
"AppDiscounted": 8.0,
"DeliveryFee": 9.0,
"ServiceFee": 10.0
}
application/xml, text/xml
Sample:
<OrdersViewModel.PaymentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HizirYetisAPI.ViewModels"> <AppDiscounted>8</AppDiscounted> <CouponCode>sample string 4</CouponCode> <CouponId>3</CouponId> <DeliveryFee>9</DeliveryFee> <Discount>5</Discount> <DiscountedPrice>6</DiscountedPrice> <PaymentId>1</PaymentId> <ServiceFee>10</ServiceFee> <StoreDiscounted>7</StoreDiscounted> <TotalPrice>2</TotalPrice> </OrdersViewModel.PaymentDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>