Skip to content

Delete Token

DELETE- tokens/{tokenId}(1)

AUTHORIZATIONS (2)

  1. Sandbox server (uses test data)
    https://api.sandbox.payerly.tech/v1/tokens/{tokenId}
    Production server (uses live data)
    https://api.payerly.tech/v1/tokens/{tokenId}

  2. BearerAuth

PATH PARAMETERS
Parameter Type Description
tokenIdrequired string Payment token id (\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)
RESPONSE HEADERS:
Parameter Type Description
Date string(date-time) The Date header indicates the server time.
RESPONSE SCHEMA: application/json
Parameter Type Description
type string Object type (TOKEN). Value TOKEN
object object - tokenId: Token id
200
{
  "type": "TOKEN",
  "object": {
    "tokenId": "4ce8a2e3-de18-11ef-acdb-d94e0a2dc90e"
  },
  "error": {
    "code": 0,
    "description": "No error."
  }   
}
400
{
  "error": {
    "code": 5013,
    "description": "Invalid input.",
    "traceId": "7708da285c300323ca23a2aed645bcf0",
    "details": [
      {
        "value": "invalid_input",
        "description": "Invalid token."
      }
    ]
  }
}
403
{
  "error": {
    "code": 5004,
    "description": "The credentials provided with the request do not have permission to access the requested data.",
    "traceId": "3343c036ad36ba05647ad737455b9b5b"
  }
}
404
{
  "error": {
    "code": 5005,
    "description": "The ID(s) specified in the URL do not correspond to the values in the system.",
    "traceId": "fec3934dec760b68fe1a4dc709b39dfb"
  }
}
503
{
  "error": {
    "code": 5999,
    "description": "Service temporarily unavailable. Try again later.",
    "traceId": "ba7c94f5165bdcb317f0af7d115548c3"
  }
}
default
{
  "error": {
    "code": 65535,
    "description": "string",
    "traceId": "string",
    "details": [
      {
        "value": "string",
        "description": "string",
        "fields": [
          {
            "name": "string",
            "type": "string",
            "value": "string"
          }
        ]
      }
    ]
  }
}