Skip to main content
GET
/
api
/
pay
/
{projectId}
/
companyProjectCreditCardPaymentsInfo
/
{paymentInfoId}
/
getCreditCardInfo
Get Card Information
curl --request GET \
  --url https://localhost:44371/api/pay/{projectId}/companyProjectCreditCardPaymentsInfo/{paymentInfoId}/getCreditCardInfo \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "code": 200,
  "errorMessage": null
}

Description

Returns masked card details (brand, last 4 digits, expiration) for display in UIs. Does not return full card number or CVV for security compliance.

Input

  • Path Parameter: projectId (guid, required) — Project identifier for authentication.
  • Path Parameter: paymentInfoId (guid, required) — Payment information ID to retrieve.

Output

Returns a CreditCardInfoQueryResponse containing masked card information for display.

Example Request

GET /api/payment/{projectId}/credit-card-payment-info/{paymentInfoId}/info
X-API-Key: {your-api-key}

Example Response

{
  "success": true,
  "code": 200,
  "maskedCardNumber": "************1111",
  "cardType": "Visa",
  "expirationMonth": "12",
  "expirationYear": "2025"
}

Errors

  • 404 Not Found — Payment information ID not found.
  • 401 Unauthorized — Invalid or missing API key.

Notes

  • Only masked/safe card information is returned.
  • Full card details are never exposed through API.
  • Use for display purposes only, not for processing.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

projectId
string<guid>
required

The project identifier for authentication.

paymentInfoId
string<guid>
required

The stored payment information ID to retrieve.

Response

Always returned. Check the success property in the response body to determine if the operation succeeded.

Standard response structure containing operation status and error information. Represents a response that bundles a short credit card summary with related payment info records.

success
boolean

True if the operation completed successfully; false if an error occurred.

Example:

true

code
enum<string>

Result code indicating the outcome of the operation.

Available options:
Unknown,
Success,
BadRequest,
Unauthorized,
NotFound,
Error
Example:

200

errorMessage
string | null

Human-readable error message when an error occurs.

Example:

null

creditCardShortInfo
object

The summarized credit card details associated with the query.

infos
object[] | null

The related payment information records for the card.