# Payment cards

`POST /common/payments/cards`

> This is a subset of the full specification, limited to the `POST /common/payments/cards` operation.
>
> You can find the full specification here: /_bundle/demand/docs/open-api/demand-api.yaml

```yaml
openapi: 3.1.0
info:
  title: Booking.com Demand API
  version: '3.1'
  summary: |
    > ⚠️ **Demand API v3.1 is in maintenance mode**. No new features or capabilities will be added to this version; updates are limited to bug fixes. For new integrations or access to the latest features, use the latest stable version.

    Use Demand API v3.1 to search, retrieve details, check accommodation availability, manage bookings and run reports using orders details.

    - RESTful API with JSON responses.
    - Make HTTPS POST requests to interact with endpoints.
    - Requires authentication using your Affiliate ID and token credentials.
  description: This is a subset of the full specification, limited to the `POST /common/payments/cards` operation.
servers:
  - url: https://demandapi.booking.com/3.1
    description: Production environment
  - url: https://demandapi-sandbox.booking.com/3.1
    description: Sandbox environment
security:
  - BearerAuth: []
tags:
  - name: Common/payments
    x-displayName: Payments
    description: Provides generic payment-related endpoints, including supported currencies and payment types.
x-tagGroups:
  - name: Common
    tags:
      - Common/payments
paths:
  /common/payments/cards:
    post:
      summary: Payment cards
      description: This endpoint returns a list of supported payment cards and their names in English. Examples of payment types are the different credit and debit cards. <br/><br/>To get the full list call the endpoint passing an empty body. The codes returned are what is used as input and output for other endpoints.
      operationId: /common/payments/cards
      parameters:
        - $ref: '#/components/parameters/AffiliateIdHeader'
      tags:
        - Common/payments
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                title: CardsDataOutput
                type: object
                properties:
                  request_id:
                    description: Uniquely identifies the request. Please provide this identifier when contacting support.
                    type: string
                  data:
                    type: array
                    items:
                      title: PaymentCardOutput
                      description: The payment card identifier code and its designation in English.
                      type: object
                      properties:
                        id:
                          description: A signed integer number that uniquely identifies a payment type. Examples of payment types are the different credit and debit cards. The full list can be obtained by calling <a href="/demand/docs/open-api/demand-api/commonpayments/common/payments/cards" target="_blank">common/payments/cards</a>.
                          type: integer
                          minimum: 1
                        name:
                          type: string
              example:
                request_id: 01fr9ez700exycb98w90w5r9sh
                data:
                  - id: 1
                    name: American Express
                  - ...
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: string
  parameters:
    AffiliateIdHeader:
      in: header
      name: X-Affiliate-Id
      schema:
        type: integer
      required: true
      description: Include here your Affiliate identifier number
```
