POST api/Quotation/SquarePayment
Request Information
URI Parameters
None.
Body Parameters
SquareDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| AppointmentId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| QuoteId | integer |
None. |
|
| SalesDocNo | string |
None. |
|
| PaymentMode | integer |
None. |
|
| Last_4 | string |
None. |
|
| Card_Brand | integer |
None. |
|
| Exp_Month | string |
None. |
|
| Exp_Year | string |
None. |
|
| Amount | decimal number |
None. |
|
| TransactionId | string |
None. |
|
| AuthCode | string |
None. |
|
| SquareCustomerId | string |
None. |
|
| SquareTenderID | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AppointmentId": 1,
"CustomerId": 2,
"QuoteId": 3,
"SalesDocNo": "sample string 4",
"PaymentMode": 5,
"Last_4": "sample string 6",
"Card_Brand": 7,
"Exp_Month": "sample string 8",
"Exp_Year": "sample string 9",
"Amount": 10.1,
"TransactionId": "sample string 11",
"AuthCode": "sample string 12",
"SquareCustomerId": "sample string 13",
"SquareTenderID": "sample string 14"
}
multipart/form-data, text/plain
Sample:
{"AppointmentId":1,"CustomerId":2,"QuoteId":3,"SalesDocNo":"sample string 4","PaymentMode":5,"Last_4":"sample string 6","Card_Brand":7,"Exp_Month":"sample string 8","Exp_Year":"sample string 9","Amount":10.1,"TransactionId":"sample string 11","AuthCode":"sample string 12","SquareCustomerId":"sample string 13","SquareTenderID":"sample string 14"}
application/xml, text/xml
Sample:
<FO_API_Utilities_GLOBAL_Class.SquareDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FO_API_Utilities"> <Amount>10.1</Amount> <AppointmentId>1</AppointmentId> <AuthCode>sample string 12</AuthCode> <Card_Brand>7</Card_Brand> <CustomerId>2</CustomerId> <Exp_Month>sample string 8</Exp_Month> <Exp_Year>sample string 9</Exp_Year> <Last_4>sample string 6</Last_4> <PaymentMode>5</PaymentMode> <QuoteId>3</QuoteId> <SalesDocNo>sample string 4</SalesDocNo> <SquareCustomerId>sample string 13</SquareCustomerId> <SquareTenderID>sample string 14</SquareTenderID> <TransactionId>sample string 11</TransactionId> </FO_API_Utilities_GLOBAL_Class.SquareDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, multipart/form-data, text/plain, application/xml, text/xml
Sample:
Sample not available.