POST api/PaymentCard/Post
Add metadata about a payment card after payment gateway authorization
Request Information
URI Parameters
None.
Body Parameters
PaymentCardPostName | Description | Type | Additional information |
---|---|---|---|
DeviceId |
The device's ID |
string |
Required |
ConditionVersion |
The version identifier for the conditions accepted by the user |
string |
Required |
Reference |
The payment card's reference as received from payment gateway |
string |
Required |
CardNumber |
Masked card number as received from payment gateway |
string |
Required |
ExpirationMonth |
The month of card expiration (1-12) as received from payment gateway |
integer |
Required |
ExpirationYear |
The year of card expiration as received from payment gateway |
integer |
Required |
UserNote |
The user's note |
string |
Required |
MailAddress |
The user's mail address |
string |
Optional |
PhoneNumber |
The user's phone number |
string |
Optional |
Request Formats
application/json, text/json
Sample:
{ "DeviceId": "sample string 1", "ConditionVersion": "2017-11-24 14:27:43", "Reference": "87569452", "CardNumber": "XXXX XXXX XXXX 1234", "ExpirationMonth": 12, "ExpirationYear": 2020, "UserNote": "Work MasterCard", "MailAddress": "test@test.dk", "PhoneNumber": "12345678" }
Response Information
Resource Description
Full information about the payment card
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.