POST api/forb2c/order-payment
Request Information
URI Parameters
None.
Body Parameters
PaymentDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| TransactionId | string |
None. |
|
| PaymentId | string |
None. |
|
| CustomerId | string |
None. |
|
| OrderType | string |
None. |
|
| OrderId | string |
None. |
|
| PaymentAmount | decimal number |
None. |
|
| CouponId | integer |
None. |
|
| OfferId | string |
None. |
|
| CouponCode | string |
None. |
|
| CouponDiscount | decimal number |
None. |
|
| OfferDiscount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"TransactionId": "sample string 1",
"PaymentId": "sample string 2",
"CustomerId": "sample string 3",
"OrderType": "sample string 4",
"OrderId": "sample string 5",
"PaymentAmount": 6.0,
"CouponId": 1,
"OfferId": "sample string 7",
"CouponCode": "sample string 8",
"CouponDiscount": 9.0,
"OfferDiscount": 10.0
}
application/xml, text/xml
Sample:
<PaymentDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fonofy_api.Model"> <CouponCode>sample string 8</CouponCode> <CouponDiscount>9</CouponDiscount> <CouponId>1</CouponId> <CustomerId>sample string 3</CustomerId> <OfferDiscount>10</OfferDiscount> <OfferId>sample string 7</OfferId> <OrderId>sample string 5</OrderId> <OrderType>sample string 4</OrderType> <PaymentAmount>6</PaymentAmount> <PaymentId>sample string 2</PaymentId> <TransactionId>sample string 1</TransactionId> </PaymentDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |