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

Description

Queries stored payment methods for display in customer payment method lists or selection interfaces. Returns masked card information (last 4 digits, expiration date) without exposing sensitive data.

Input

  • Path Parameter: projectId (guid, required) — Project identifier for authentication.
  • Query Parameters: model (CompanyProjectCreditCardPaymentInfoQueryRequest) — Query filters.

Output

Returns a CompanyProjectCreditCardPaymentInfoQueryResponse containing masked payment information entries.

Example Request

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

Example Response

{
  "success": true,
  "code": 200,
  "entries": [
    {
      "id": "abc123",
      "maskedCardNumber": "************1111",
      "expirationDate": "12/2025",
      "cardType": "Visa"
    }
  ]
}

Errors

  • 401 Unauthorized — Invalid or missing API key.
  • 404 Not Found — Project not found.

Notes

  • Card numbers are masked showing only last 4 digits.
  • Results include payment tokens for use in subsequent transactions.

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.

Query Parameters

Id
string<guid> | null

Optional identifier to filter results by a specific entity.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

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. Standard query response containing a collection of matching entities. Represents the response returned when querying credit card payment information for company projects.

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

entries
object[] | null

Collection of entities matching the query criteria.

Example:
[]