POST api/Payment/CreatePaymentProfile
Request Information
URI Parameters
None.
Body Parameters
PaymentProfileModelName | Description | Type | Additional information |
---|---|---|---|
BusinessId | integer |
None. |
|
PaymentProfileId | string |
None. |
|
CardNumber | string |
None. |
|
ExpirationDate | string |
None. |
|
CardCode | string |
None. |
|
CardName | string |
None. |
|
CardBrand | string |
None. |
|
Address | string |
None. |
|
City | string |
None. |
|
StateId | integer |
None. |
|
Zip | string |
None. |
|
Phone | string |
None. |
|
string |
None. |
||
UserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "BusinessId": 1, "PaymentProfileId": "sample string 2", "CardNumber": "sample string 3", "ExpirationDate": "sample string 4", "CardCode": "sample string 5", "CardName": "sample string 6", "CardBrand": "sample string 7", "Address": "sample string 8", "City": "sample string 9", "StateId": 1, "Zip": "sample string 10", "Phone": "sample string 11", "Email": "sample string 12", "UserId": 13 }
application/xml, text/xml
Sample:
<PaymentProfileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TowPaymentsAPI.Models"> <Address>sample string 8</Address> <BusinessId>1</BusinessId> <CardBrand>sample string 7</CardBrand> <CardCode>sample string 5</CardCode> <CardName>sample string 6</CardName> <CardNumber>sample string 3</CardNumber> <City>sample string 9</City> <Email>sample string 12</Email> <ExpirationDate>sample string 4</ExpirationDate> <PaymentProfileId>sample string 2</PaymentProfileId> <Phone>sample string 11</Phone> <StateId>1</StateId> <UserId>13</UserId> <Zip>sample string 10</Zip> </PaymentProfileModel>
application/x-www-form-urlencoded
Sample:
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. |