POST api/Payment/Add
Request Information
URI Parameters
None.
Body Parameters
PaymentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| amount | decimal number |
None. |
|
| customer_id | integer |
None. |
|
| is_active | boolean |
None. |
|
| date | date |
None. |
|
| order_id | integer |
None. |
|
| transaction_id | string |
None. |
|
| card_last4_digits | string |
None. |
|
| error_description | string |
None. |
|
| paymentfee | decimal number |
None. |
|
| TotalRows | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"amount": 2.0,
"customer_id": 3,
"is_active": true,
"date": "2025-12-18T16:09:47.161252+05:00",
"order_id": 6,
"transaction_id": "sample string 7",
"card_last4_digits": "sample string 8",
"error_description": "sample string 9",
"paymentfee": 10.0,
"TotalRows": 11
}
application/xml, text/xml
Sample:
<PaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models"> <TotalRows>11</TotalRows> <amount>2</amount> <card_last4_digits>sample string 8</card_last4_digits> <customer_id>3</customer_id> <date>2025-12-18T16:09:47.161252+05:00</date> <error_description>sample string 9</error_description> <id>1</id> <is_active>true</is_active> <order_id>6</order_id> <paymentfee>10</paymentfee> <transaction_id>sample string 7</transaction_id> </PaymentModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.