POST api/Payments
Request Information
URI Parameters
None.
Body Parameters
CustPaymentName | Description | Type | Additional information |
---|---|---|---|
CustomerID | integer |
None. |
|
BookingID | integer |
None. |
|
PhoneNumber | string |
None. |
|
PayReference | string |
None. |
|
Amount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerID": 1, "BookingID": 2, "PhoneNumber": "sample string 3", "PayReference": "sample string 4", "Amount": 5.0 }
application/xml, text/xml
Sample:
<CustPayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BookingSystem.Models"> <Amount>5</Amount> <BookingID>2</BookingID> <CustomerID>1</CustomerID> <PayReference>sample string 4</PayReference> <PhoneNumber>sample string 3</PhoneNumber> </CustPayment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />