POST api/Payments
This endpoint executes a payment using new Resortcom API, accepting data from old Resortcom API and transforming it to the new format, the data returned is in the format expected by the old API. We expect this endpoint just be used for ePlatform and ePlat legacy apps.
Request Information
URI Parameters
None.
Body Parameters
CardAuth| Name | Description | Type | Additional information |
|---|---|---|---|
| Primary_Bank | string |
None. |
|
| User_Id | string |
None. |
|
| Merchant_Id | string |
None. |
|
| Card_Number | string |
None. |
|
| Expiration_Date | string |
None. |
|
| Transaction_Amount | string |
None. |
|
| Authorization_Reference | string |
None. |
|
| Resort | string |
None. |
|
| Account | string |
None. |
|
| Version | string |
None. |
|
| Card_Holder_Name | string |
None. |
|
| Card_Holder_Address | string |
None. |
|
| Card_Holder_Zip | string |
None. |
|
| Card_Type | string |
None. |
|
| Card_CV2_Code | string |
None. |
|
| Card_CV2_Value | string |
None. |
|
| Card_Class_Code | string |
None. |
|
| Fraud_Code | string |
None. |
|
| Months_Deferred | string |
None. |
|
| Number_Payments | string |
None. |
|
| Plan_Type | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Primary_Bank": "sample string 1",
"User_Id": "sample string 2",
"Merchant_Id": "sample string 3",
"Card_Number": "sample string 4",
"Expiration_Date": "sample string 5",
"Transaction_Amount": "sample string 6",
"Authorization_Reference": "sample string 7",
"Resort": "sample string 8",
"Account": "sample string 9",
"Version": "sample string 10",
"Card_Holder_Name": "sample string 11",
"Card_Holder_Address": "sample string 12",
"Card_Holder_Zip": "sample string 13",
"Card_Type": "sample string 14",
"Card_CV2_Code": "sample string 15",
"Card_CV2_Value": "sample string 16",
"Card_Class_Code": "sample string 17",
"Fraud_Code": "sample string 18",
"Months_Deferred": "sample string 19",
"Number_Payments": "sample string 20",
"Plan_Type": "sample string 21"
}
application/xml, text/xml
Sample:
<PaymentsViewModel.CardAuth xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.ViewModels"> <Account>sample string 9</Account> <Authorization_Reference>sample string 7</Authorization_Reference> <Card_CV2_Code>sample string 15</Card_CV2_Code> <Card_CV2_Value>sample string 16</Card_CV2_Value> <Card_Class_Code>sample string 17</Card_Class_Code> <Card_Holder_Address>sample string 12</Card_Holder_Address> <Card_Holder_Name>sample string 11</Card_Holder_Name> <Card_Holder_Zip>sample string 13</Card_Holder_Zip> <Card_Number>sample string 4</Card_Number> <Card_Type>sample string 14</Card_Type> <Expiration_Date>sample string 5</Expiration_Date> <Fraud_Code>sample string 18</Fraud_Code> <Merchant_Id>sample string 3</Merchant_Id> <Months_Deferred>sample string 19</Months_Deferred> <Number_Payments>sample string 20</Number_Payments> <Plan_Type>sample string 21</Plan_Type> <Primary_Bank>sample string 1</Primary_Bank> <Resort>sample string 8</Resort> <Transaction_Amount>sample string 6</Transaction_Amount> <User_Id>sample string 2</User_Id> <Version>sample string 10</Version> </PaymentsViewModel.CardAuth>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
LeagacyApplyPayment_Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Auth_Code | string |
None. |
|
| Authorization_Amount | decimal number |
None. |
|
| Authorization_Date | date |
None. |
|
| StatusCode | integer |
None. |
|
| Error_Code | integer |
None. |
|
| Status_Description | string |
None. |
|
| Type | Attempt_ResponseTypes |
None. |
|
| Exception | Exception |
None. |
|
| ObjectID | Object |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Type": 0,
"Exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
"ObjectID": {},
"Message": "sample string 2",
"Auth_Code": "sample string 1",
"Authorization_Amount": 2.0,
"Authorization_Date": "2025-12-14T13:40:25.2254155-06:00",
"StatusCode": 3,
"Error_Code": 4,
"Status_Description": "sample string 5"
}
application/xml, text/xml
Sample:
<RescomDataModel.LeagacyApplyPayment_Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.DataModels">
<Exception xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.Utils">
<ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
<Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</Exception>
<Message xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.Utils">sample string 2</Message>
<ObjectID xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.Utils" />
<Type xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.Utils">Warning</Type>
<Auth_Code>sample string 1</Auth_Code>
<Authorization_Amount>2</Authorization_Amount>
<Authorization_Date>2025-12-14T13:40:25.2254155-06:00</Authorization_Date>
<Error_Code>4</Error_Code>
<StatusCode>3</StatusCode>
<Status_Description>sample string 5</Status_Description>
</RescomDataModel.LeagacyApplyPayment_Response>