POST api/Payment/AddCard
Request Information
URI Parameters
None.
Body Parameters
PaymentCard| Name | Description | Type | Additional information |
|---|---|---|---|
| StripeToken | string |
None. |
|
| NameOnCard | string |
None. |
|
| Country | string |
None. |
|
| LastDigits | string |
None. |
|
| Created | date |
None. |
|
| Enabled | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"StripeToken": "sample string 1",
"NameOnCard": "sample string 2",
"Country": "sample string 3",
"LastDigits": "sample string 4",
"Created": "2026-01-02T17:31:29.0957333+00:00",
"Enabled": true
}
application/xml, text/xml
Sample:
<PaymentCard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryCore.ViewModels"> <Country>sample string 3</Country> <Created>2026-01-02T17:31:29.0957333+00:00</Created> <Enabled>true</Enabled> <LastDigits>sample string 4</LastDigits> <NameOnCard>sample string 2</NameOnCard> <StripeToken>sample string 1</StripeToken> </PaymentCard>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.