---
updatedAt: 2026-06-15T14:45:23.000Z
agentTools:
  projectIndex: https://developers.lokalise.com/llms.txt
---

# Create a card

Adds new payment card to user cards.

Requires <code>write_payment_cards</code> OAuth access scope.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Default projects",
    "version": "1.0.0",
    "description": "Describes the API for default projects.\\n\\n**Project Type Compatibility**: Many API endpoints have different compatibility with project types:\\n- **Software projects** (localization_files) - Support individual key management, no file deletion\\n- **Documents projects** (paged_documents) - Support file management, no individual key operations\\n- **Marketing projects** (content_integration, marketing, marketing_integrations) - Mixed support depending on specific type\\n\\nBranching is only supported for Software projects. See individual endpoint documentation for specific compatibility information."
  },
  "servers": [
    {
      "url": "https://api.lokalise.com/api2"
    }
  ],
  "paths": {
    "/payment_cards": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "example": {
                  "card_id": 1234,
                  "last4": 4242,
                  "brand": "Visa",
                  "created_at": "2018-12-31 12:00:00 (Etc/UTC)",
                  "created_at_timestamp": 1546257600
                },
                "schema": {
                  "$ref": "#/components/schemas/PaymentCards"
                }
              }
            }
          }
        },
        "summary": "Create a card",
        "operationId": "Create a card",
        "description": "Adds new payment card to user cards.\n\nRequires <code>write_payment_cards</code> OAuth access scope.",
        "tags": [
          "Payment Cards"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "number": "4242424242424242",
                "cvc": "123",
                "exp_month": 5,
                "exp_year": 2021
              },
              "schema": {
                "type": "object",
                "required": [
                  "number",
                  "cvc",
                  "exp_month",
                  "exp_year"
                ],
                "properties": {
                  "number": {
                    "type": "string",
                    "description": "Card number."
                  },
                  "cvc": {
                    "type": "string",
                    "description": "3-digit card CVC code."
                  },
                  "exp_month": {
                    "type": "number",
                    "description": "Card expiration month (1-12)."
                  },
                  "exp_year": {
                    "type": "number",
                    "description": "Card expiration year."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PaymentCards": {
        "type": "object",
        "properties": {
          "card_id": {
            "type": "number",
            "description": "A unique identifier of the card."
          },
          "last4": {
            "type": "string",
            "description": "Last 4 digits of the card."
          },
          "brand": {
            "type": "string",
            "description": "Card brand."
          },
          "created_at": {
            "type": "string",
            "description": "Date/time at which the card was created."
          },
          "created_at_timestamp": {
            "type": "number",
            "description": "Unix timestamp when the card was created."
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Token"
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
```