POST api/cardService/v1/fundsource/paymentcard
Request Information
URI Parameters
None.
Body Parameters
CreateNewPaymentCardRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CardProxyId | string |
Required |
|
| CardName | string |
None. |
|
| Pan | string |
Required |
|
| Cvv | string |
Required |
|
| ExpiryMonth | string |
Required Matching regular expression pattern: \d{1,2} |
|
| ExpiryYear | string |
Required Matching regular expression pattern: \d{4} |
|
| NameOnCard | string |
Required |
|
| BillingPostalCode | string |
Required |
|
| BillingAddress | string |
Required |
|
| BillingTownCity | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"CardProxyId": "sample string 1",
"CardName": "sample string 2",
"Pan": "sample string 3",
"Cvv": "sample string 4",
"ExpiryMonth": "sample string 5",
"ExpiryYear": "sample string 6",
"NameOnCard": "sample string 7",
"BillingPostalCode": "sample string 8",
"BillingAddress": "sample string 9",
"BillingTownCity": "sample string 10"
}
application/xml, text/xml
Sample:
<CreateNewPaymentCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels.Payment"> <BillingAddress>sample string 9</BillingAddress> <BillingPostalCode>sample string 8</BillingPostalCode> <BillingTownCity>sample string 10</BillingTownCity> <CardName>sample string 2</CardName> <CardProxyId>sample string 1</CardProxyId> <Cvv>sample string 4</Cvv> <ExpiryMonth>sample string 5</ExpiryMonth> <ExpiryYear>sample string 6</ExpiryYear> <NameOnCard>sample string 7</NameOnCard> <Pan>sample string 3</Pan> </CreateNewPaymentCardRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreatePaymentCardResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentCardId | string |
None. |
|
| IsSuccess | boolean |
Required |
|
| ErrorCodes | Collection of string |
Required |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"PaymentCardId": "sample string 1",
"IsSuccess": true,
"ErrorCodes": [
"sample string 1",
"sample string 2"
],
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<CreatePaymentCardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels.Payment">
<ErrorCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorCodes>
<IsSuccess xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels">true</IsSuccess>
<Message xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels">sample string 3</Message>
<PaymentCardId>sample string 1</PaymentCardId>
</CreatePaymentCardResponse>