POST api/PaymentCard/ReadCardsForUser?userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PaymentCard
NameDescriptionTypeAdditional information
Id

The payment card's primary ID

integer

Required

CardNumber

Masked card number

string

Required

ExpirationMonth

The month of card expiration (1-12)

integer

Required

ExpirationYear

The year of card expiration

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

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 120435,
    "CardNumber": "XXXX XXXX XXXX 1234",
    "ExpirationMonth": 12,
    "ExpirationYear": 2020,
    "UserNote": "Work MasterCard",
    "MailAddress": "test@test.dk",
    "PhoneNumber": "12345678"
  },
  {
    "Id": 120435,
    "CardNumber": "XXXX XXXX XXXX 1234",
    "ExpirationMonth": 12,
    "ExpirationYear": 2020,
    "UserNote": "Work MasterCard",
    "MailAddress": "test@test.dk",
    "PhoneNumber": "12345678"
  }
]