---
updatedAt: 2025-09-09T20:34:18.000Z
agentTools:
  projectIndex: https://docs.qorcommerce.io/llms.txt
---

# Update a Payment Token (exp. date)

Update a payment token with a new expiration date

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0",
    "title": "QorCommerce Endpoints",
    "description": "API Version 3"
  },
  "paths": {
    "/payment/token": {
      "patch": {
        "operationId": "token-update",
        "summary": "Update a Payment Token (exp. date)",
        "tags": [
          "Payment Tokens (tokenization)"
        ],
        "description": "Update a payment token with a new expiration date",
        "parameters": [
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-App-Key"
          },
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-Client-Key"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transaction_data": {
                    "type": "object",
                    "required": [
                      "token",
                      "last4",
                      "expdate"
                    ],
                    "properties": {
                      "token": {
                        "type": "string",
                        "description": "The token to be updated",
                        "example": "541341$KR0eAiX2"
                      },
                      "last4": {
                        "type": "string",
                        "description": "Last 4 of the credit/debit card",
                        "example": "5413"
                      },
                      "expdate": {
                        "type": "string",
                        "description": "Example: `0225` (mmyy)",
                        "example": "0225"
                      },
                      "month": {
                        "type": "string",
                        "description": "Example: `02` (mm)",
                        "example": "02"
                      },
                      "year": {
                        "type": "string",
                        "description": "Example: `25` (yy)",
                        "example": "25"
                      }
                    }
                  }
                },
                "required": [
                  "transaction_data"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "The status of the request.\n\nPossible response values are `ok` or `error` ",
                      "example": "approved"
                    },
                    "code": {
                      "type": "string",
                      "description": "See [Payment Response Codes](doc:payment-response-codes) for more detail.",
                      "example": "GW00"
                    },
                    "message": {
                      "type": "string",
                      "description": "A payment gateway status code message.",
                      "example": "Update token was processed successfully"
                    },
                    "token": {
                      "type": "string",
                      "description": "The token that was updated",
                      "example": "541341$KR0eAiX2"
                    }
                  },
                  "required": [
                    "status",
                    "code",
                    "message"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api-sandbox.qorcommerce.io/v3"
    }
  ],
  "components": {
    "parameters": {
      "trait_qorHeaderAuthentication_Qor-App-Key": {
        "name": "Qor-App-Key",
        "in": "header",
        "description": "The unique key identifying the app making this request.\n\nNOTE: If testing use **`T6554252567241061980`** for the **`Qor-App-Key`** header key.",
        "required": true,
        "schema": {
          "type": "string",
          "maxLength": 24,
          "default": "T6554252567241061980"
        }
      },
      "trait_qorHeaderAuthentication_Qor-Client-Key": {
        "name": "Qor-Client-Key",
        "in": "header",
        "description": "The Client key represents an authorized **merchant account**  and is assigned by QorCommerce or your merchant service account provider.\n\n**NOTE:**  If testing use `01dffeb784c64d098c8c691ea589eb82 `  for the `Qor-Client-Key` header key.",
        "required": true,
        "schema": {
          "type": "string",
          "default": "01dffeb784c64d098c8c691ea589eb82"
        }
      }
    }
  },
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "node",
    "ruby",
    "java",
    "javascript",
    "php",
    "python",
    "swift"
  ]
}
```