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

# Licenses:Delete

Remove a license from a merchant. You can unsuspend 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": {
    "/licenses/{licenseCode}": {
      "delete": {
        "tags": [
          "Licenses"
        ],
        "summary": "Licenses:Delete",
        "description": "Remove a license from a merchant. You can unsuspend within a 15 minute time window.",
        "parameters": [
          {
            "name": "licenseCode",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/License/properties/code"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "400": {
            "description": "Bad request, see response body for more information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "validation": {
                    "$ref": "#/components/examples/LicensesDelete400BadRequest"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "429": {
            "$ref": "#/components/responses/RateLimiting"
          },
          "500": {
            "description": "An internal error occurred"
          }
        },
        "security": [
          {
            "basicAuth": []
          },
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "License": {
        "properties": {
          "code": {
            "description": "License code.",
            "type": "string",
            "example": "AL-1234-4321"
          },
          "name": {
            "description": "Name of the license.",
            "type": "string",
            "example": "John Doe"
          },
          "merchant": {
            "$ref": "#/components/schemas/MerchantCompliance"
          },
          "authorizedToSign": {
            "description": "Indicate if the person is authorized to sign on behalf of the company:\nno: not authorized to sign\nalone: is authorized to sign\nshared: is authorized to sign together with other(s)",
            "type": "string",
            "enum": [
              "no",
              "alone",
              "shared"
            ],
            "example": "shared"
          },
          "ubo": {
            "description": "Indicate if the person is an UBO:\nno: no ubo\npseudo: is a pseudo ubo (no financial interest)\ndirect: is a direct ubo with financial interest\nindirect: is a indirect ubo (due to involvement of a parent company or holding) with financial interest",
            "type": "string",
            "enum": [
              "no",
              "direct",
              "indirect",
              "pseudo"
            ],
            "example": "direct"
          },
          "uboPercentage": {
            "description": "Indicate for direct and indirect UBO's the percentage of involvement (e.g. % of shares of a company).",
            "type": "integer",
            "example": "25"
          },
          "relationshipDescription": {
            "description": "Describe in your own words the relation the person has with this company.",
            "type": "string",
            "example": "John Doe of test company"
          },
          "creator": {
            "description": "The creator of the license.",
            "type": "string",
            "example": "Papa Doe"
          },
          "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"
          },
          "acceptedAt": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": true
          },
          "deletedAt": {
            "$ref": "#/components/schemas/Universal/properties/deletedAt"
          },
          "deletedBy": {
            "$ref": "#/components/schemas/Universal/properties/deletedBy"
          }
        },
        "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"
      },
      "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"
      },
      "Conflict": {
        "description": "Indicates a request conflict with the current state of the target resource"
      },
      "RateLimiting": {
        "description": "Rate limit reached."
      }
    },
    "examples": {
      "LicensesDelete400BadRequest": {
        "summary": "Bad Request",
        "value": {
          "type": "https://developer.pay.nl/docs/error-codes",
          "title": "An error occurred",
          "detail": "license: {}",
          "violations": [
            {
              "propertyPath": "license",
              "message": "{}",
              "code": "PAY-404"
            }
          ]
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "externalDocs": {
    "description": "Official PAY. documentation",
    "url": "https://docs.pay.nl"
  }
}
```