POST api/users/me/cards
This method will create a new credit card for current user based on the card token specified on request
Requires Authorization!
Request Information
URI Parameters
None.
Body Parameters
PaymentInfoBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| FeeOverride | decimal number |
None. |
|
| PaymentProviderToken | string |
None. |
|
| PayeeFirstName | string |
Required |
|
| PayeeLastName | string |
Required |
|
| PayeeName | string |
None. |
|
| StreetAddress | string |
None. |
|
| City | string |
None. |
|
| State | string |
None. |
|
| ZipCode | string |
None. |
|
| ExpirationMonth | integer |
None. |
|
| ExpirationYear | integer |
None. |
|
| IsBillingAddressSimilarToPropertyAddress | boolean |
None. |
|
| IsCharge | boolean |
Required |
|
| Method | string |
None. |
|
| Notes | string |
None. |
|
| AmountPaid | decimal number |
None. |
|
| PaymentRecievedDate | date |
None. |
|
| PropertyAddressId | integer |
None. |
|
| UserPropertyId | integer |
None. |
|
| CheckNumber | string |
None. |
|
| RecieptEmailAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"feeOverride": 1.0,
"paymentProviderToken": "sample string 2",
"payeeFirstName": "sample string 3",
"payeeLastName": "sample string 4",
"payeeName": "sample string 5",
"streetAddress": "sample string 6",
"city": "sample string 7",
"state": "sample string 8",
"zipCode": "sample string 9",
"expirationMonth": 1,
"expirationYear": 1,
"isBillingAddressSimilarToPropertyAddress": true,
"isCharge": true,
"method": "sample string 12",
"notes": "sample string 13",
"amountPaid": 1.0,
"paymentRecievedDate": "2025-11-01T05:55:50.7061893-05:00",
"propertyAddressId": 1,
"userPropertyId": 1,
"checkNumber": "sample string 14",
"recieptEmailAddress": "sample string 15"
}
text/html
Sample:
{"feeOverride":1.0,"paymentProviderToken":"sample string 2","payeeFirstName":"sample string 3","payeeLastName":"sample string 4","payeeName":"sample string 5","streetAddress":"sample string 6","city":"sample string 7","state":"sample string 8","zipCode":"sample string 9","expirationMonth":1,"expirationYear":1,"isBillingAddressSimilarToPropertyAddress":true,"isCharge":true,"method":"sample string 12","notes":"sample string 13","amountPaid":1.0,"paymentRecievedDate":"2025-11-01T05:55:50.7061893-05:00","propertyAddressId":1,"userPropertyId":1,"checkNumber":"sample string 14","recieptEmailAddress":"sample string 15"}
application/xml, text/xml
Sample:
<PaymentInfoBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.OrderProcessing"> <AmountPaid>1</AmountPaid> <CheckNumber>sample string 14</CheckNumber> <City>sample string 7</City> <ExpirationMonth>1</ExpirationMonth> <ExpirationYear>1</ExpirationYear> <FeeOverride>1</FeeOverride> <IsBillingAddressSimilarToPropertyAddress>true</IsBillingAddressSimilarToPropertyAddress> <IsCharge>true</IsCharge> <Method>sample string 12</Method> <Notes>sample string 13</Notes> <PayeeFirstName>sample string 3</PayeeFirstName> <PayeeLastName>sample string 4</PayeeLastName> <PayeeName>sample string 5</PayeeName> <PaymentProviderToken>sample string 2</PaymentProviderToken> <PaymentRecievedDate>2025-11-01T05:55:50.7061893-05:00</PaymentRecievedDate> <PropertyAddressId>1</PropertyAddressId> <RecieptEmailAddress>sample string 15</RecieptEmailAddress> <State>sample string 8</State> <StreetAddress>sample string 6</StreetAddress> <UserPropertyId>1</UserPropertyId> <ZipCode>sample string 9</ZipCode> </PaymentInfoBindingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Instance of
CreditCardModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CardId | string |
None. |
|
| Brand | string |
None. |
|
| Last4 | string |
None. |
|
| DisplayName | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"cardId": "sample string 1",
"brand": "sample string 2",
"last4": "sample string 3",
"displayName": "sample string 2-sample string 3"
}
text/html
Sample:
{"cardId":"sample string 1","brand":"sample string 2","last4":"sample string 3","displayName":"sample string 2-sample string 3"}
application/xml, text/xml
Sample:
<CreditCardModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.ExternalProvider"> <Brand>sample string 2</Brand> <CardId>sample string 1</CardId> <Last4>sample string 3</Last4> </CreditCardModel>