---
updatedAt: 2026-06-08T11:05:39.000Z
agentTools:
  projectIndex: https://developer.pay.nl/llms.txt
---

# AuthenticationTokens:Undelete

Undelete an authentication token that was recently deleted. This can only be done within a 15 minute time window

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "PAY. Global Management System API's",
    "description": "A restful journey to your payments.",
    "termsOfService": "https://www.pay.nl/en/terms-conditions",
    "contact": {
      "email": "support@pay.nl"
    },
    "version": "v2.0"
  },
  "servers": [
    {
      "url": "https://rest.pay.nl/v2",
      "description": "PAY. API server"
    }
  ],
  "paths": {
    "/authenticationtokens/{authenticationTokenCode}/undelete": {
      "post": {
        "tags": [
          "AuthenticationTokens"
        ],
        "summary": "AuthenticationTokens:Undelete",
        "description": "Undelete an authentication token that was recently deleted. This can only be done within a 15 minute time window",
        "parameters": [
          {
            "name": "authenticationTokenCode",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/AuthenticationToken/properties/code"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationToken"
                },
                "examples": {
                  "success": {
                    "$ref": "#/components/examples/AuthenticationTokenResponse200Successful"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request, see response body for more information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "validation": {
                    "$ref": "#/components/examples/AuthenticationTokensUndelete400BadRequest"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "422": {
            "description": "Unprocessable entity, see response body for more information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "validation": {
                    "$ref": "#/components/examples/AuthenticationTokensUndelete422Unprocessable"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimiting"
          },
          "500": {
            "description": "An internal error occurred"
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AuthenticationToken": {
        "required": [
          "code",
          "secret",
          "name",
          "merchant",
          "createdAt",
          "createdBy",
          "modifiedAt",
          "modifiedBy",
          "deletedAt",
          "deletedBy"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "AT-1234-4321"
          },
          "secret": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "merchant": {
            "$ref": "#/components/schemas/MerchantMinimal"
          },
          "createdAt": {
            "$ref": "#/components/schemas/Universal/properties/createdAt"
          },
          "createdBy": {
            "$ref": "#/components/schemas/Universal/properties/createdBy"
          },
          "modifiedAt": {
            "$ref": "#/components/schemas/Universal/properties/modifiedAt"
          },
          "modifiedBy": {
            "$ref": "#/components/schemas/Universal/properties/modifiedBy"
          },
          "deletedAt": {
            "$ref": "#/components/schemas/Universal/properties/deletedAt"
          },
          "deletedBy": {
            "$ref": "#/components/schemas/Universal/properties/deletedBy"
          }
        },
        "type": "object"
      },
      "MerchantMinimal": {
        "required": [
          "code",
          "name",
          "status"
        ],
        "properties": {
          "code": {
            "description": "The merchant id of your company starting with M.",
            "type": "string",
            "example": "M-1234-4321"
          },
          "name": {
            "description": "The name of your merchant.",
            "type": "string",
            "maxLength": 128,
            "minLength": 2,
            "example": "CompanyName"
          },
          "status": {
            "description": "Merchant state",
            "type": "string",
            "example": "ACTIVE"
          },
          "incorporationCountry": {
            "description": "The incorporationCountry field represents the country in which the entity is legally registered or incorporated.",
            "type": "string",
            "example": "NL"
          }
        },
        "type": "object"
      },
      "Universal": {
        "properties": {
          "translations": {
            "description": "Object containing all the translations with the property name in which the corresponds with a property on the object itself.",
            "type": "object",
            "uniqueItems": true,
            "example": "\n    \"translations\": {\n      \"name\": {\n        ...\n      },\n      \"description\": {\n        ...\n      }\n    }\n",
            "nullable": true,
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          "requiredFields": {
            "description": "The required fields of the payment method.",
            "type": "array",
            "items": {
              "properties": {
                "fieldName": {
                  "type": "string"
                },
                "mandatory": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "createdAt": {
            "description": "The creation date time presented in the correct ISO-8601 (a.k.a. ATOM) notation",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": false
          },
          "createdBy": {
            "description": "The reference to an account or token whom created the entity",
            "type": "string",
            "pattern": "^A(T)?(-\\d{4}){2}$",
            "readOnly": true,
            "example": "A-1234-4321",
            "nullable": false
          },
          "modifiedAt": {
            "description": "The modification date time presented in the correct ISO-8601 (a.k.a. ATOM) notation",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": true
          },
          "modifiedBy": {
            "description": "The reference to an account or token whom modified the entity",
            "type": "string",
            "pattern": "^A(T)?(-\\d{4}){2}$",
            "readOnly": true,
            "example": "A-1234-4321",
            "nullable": true
          },
          "deletedAt": {
            "description": "The deletion date time presented in the correct ISO-8601 (a.k.a. ATOM) notation. Can be empty (null)",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": true
          },
          "deletedBy": {
            "description": "The reference to an account or token whom deleted the entity",
            "type": "string",
            "pattern": "^A(T)?(-\\d{4}){2}$",
            "readOnly": true,
            "example": "A-1234-4321",
            "nullable": true
          }
        },
        "type": "object"
      },
      "Error": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "violations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Violation"
            }
          }
        },
        "type": "object"
      },
      "Violation": {
        "properties": {
          "propertyPath": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorized. Supplied credentials are invalid"
      },
      "Forbidden": {
        "description": "Forbidden. Supplied credentials have no rights"
      },
      "NotFound": {
        "description": "Not found"
      },
      "MethodNotAllowed": {
        "description": "Used HTTP method is not allowed"
      },
      "NotAcceptable": {
        "description": "Not acceptable. The supplied content type in the accept parameter in the header is not supported"
      },
      "RateLimiting": {
        "description": "Rate limit reached."
      }
    },
    "examples": {
      "AuthenticationTokenResponse200Successful": {
        "summary": "Specific authentication token",
        "value": {
          "code": "AT-1234-1234",
          "secret": "21349ebda24393453sdfdfad",
          "name": "token1",
          "merchant": {
            "code": "M-1234-4321",
            "status": "INACTIVE",
            "name": "CompanyName",
            "incorporationCountry": "NL"
          },
          "createdAt": "2021-09-04T12:14:01+02:00",
          "createdBy": "A-1234-4321",
          "modifiedAt": null,
          "modifiedBy": null,
          "deletedAt": null,
          "deletedBy": null,
          "_links": [
            {
              "url": "/authenticationtokens/AT-1234-1234",
              "rel": "self",
              "type": "GET"
            }
          ]
        }
      },
      "AuthenticationTokensUndelete400BadRequest": {
        "summary": "Bad Request",
        "value": {
          "type": "https://developer.pay.nl/docs/error-codes",
          "title": "An error occurred",
          "detail": "authenticationTokenCode: {}",
          "violations": [
            {
              "propertyPath": "authenticationTokenCode",
              "message": "{}",
              "code": "PAY-404"
            }
          ]
        }
      },
      "AuthenticationTokensUndelete422Unprocessable": {
        "summary": "Unprocessable",
        "value": {
          "type": "https://developer.pay.nl/docs/error-codes",
          "title": "An error occurred",
          "detail": "Authentication token recovery window expired",
          "violations": [
            {
              "propertyPath": null,
              "message": "Authentication token recovery window expired",
              "code": "PAY-3000"
            }
          ]
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "externalDocs": {
    "description": "Official PAY. documentation",
    "url": "https://docs.pay.nl"
  }
}
```