POST api/v{version}/Payment/MakeGenericPayment
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version | string |
None. |
Body Parameters
GenericPaymentModelName | Description | Type | Additional information |
---|---|---|---|
Amount | decimal number |
None. |
|
CreditCard | CreditCardModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "Amount": 1.0, "CreditCard": { "CardNumber": "sample string 1", "ExpirationDate": "2024-12-03T18:18:40.2722767-05:00", "CardCode": "sample string 3", "CardType": 4, "CustomerId": "sample string 4", "FirstName": "sample string 5", "LastName": "sample string 6", "Address1": "sample string 7", "City": "sample string 8", "State": "sample string 9", "Zip": "sample string 10" } }
application/xml, text/xml
Sample:
<GenericPaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/K12.Shared.Models.Payments"> <Amount>1</Amount> <CreditCard> <Address1>sample string 7</Address1> <City>sample string 8</City> <CustomerId>sample string 4</CustomerId> <FirstName>sample string 5</FirstName> <LastName>sample string 6</LastName> <State>sample string 9</State> <Zip>sample string 10</Zip> <CardCode>sample string 3</CardCode> <CardNumber>sample string 1</CardNumber> <ExpirationDate>2024-12-03T18:18:40.2722767-05:00</ExpirationDate> </CreditCard> </GenericPaymentModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |