---
updatedAt: 2025-06-12T00:05:37.000Z
agentTools:
  projectIndex: https://developers.tap.company/llms.txt
---

# Void an Authorize

This endpoint voids any existing authorizations under the given authorize_id

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "authorize",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.tap.company/v2/authorize"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "sk_test_XKokBfNWv6FIYuTMg5sLPjhJ"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{authorize_id}/void": {
      "post": {
        "summary": "Void an Authorize",
        "description": "This endpoint voids any existing authorizations under the given authorize_id",
        "operationId": "void-an-authorize",
        "parameters": [
          {
            "name": "authorize_id",
            "in": "path",
            "description": "The ID of the authorized transaction that needs to be voided.",
            "schema": {
              "type": "string",
              "default": "auth_TS010720221114Hn5q2609463"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"id\": \"auth_TS065220221533k5FK1505634\",\n\t\"object\": \"authorize\",\n\t\"live_mode\": false,\n\t\"api_version\": \"V2\",\n\t\"method\": \"VOID\",\n\t\"status\": \"VOID\",\n\t\"amount\": 1,\n\t\"currency\": \"KWD\",\n\t\"threeDSecure\": true,\n\t\"save_card\": false,\n\t\"merchant_id\": \"\",\n\t\"product\": \"\",\n\t\"statement_descriptor\": \"sample\",\n\t\"transaction\": {\n\t\t\"authorization_id\": \"063090\",\n\t\t\"timezone\": \"UTC+03:00\",\n\t\t\"created\": \"1652628981168\",\n\t\t\"expiry\": {\n\t\t\t\"period\": 30,\n\t\t\t\"type\": \"MINUTE\"\n\t\t},\n\t\t\"asynchronous\": false,\n\t\t\"amount\": 1,\n\t\t\"currency\": \"KWD\"\n\t},\n\t\"reference\": {\n\t\t\"track\": \"tck_TS055220221533Kb9e1505666\",\n\t\t\"payment\": \"5215221533056668493\",\n\t\t\"gateway\": \"123456789\",\n\t\t\"acquirer\": \"213509067245\",\n\t\t\"transaction\": \"txn_0001\",\n\t\t\"order\": \"ord_0001\"\n\t},\n\t\"response\": {\n\t\t\"code\": \"601\",\n\t\t\"message\": \"Void\"\n\t},\n\t\"acquirer\": {\n\t\t\"response\": {\n\t\t\t\"code\": \"00\",\n\t\t\t\"message\": \"Approved\"\n\t\t}\n\t},\n\t\"card\": {\n\t\t\"object\": \"card\",\n\t\t\"first_six\": \"512345\",\n\t\t\"last_four\": \"0008\"\n\t},\n\t\"receipt\": {\n\t\t\"id\": \"205215221533050296\",\n\t\t\"email\": true,\n\t\t\"sms\": false\n\t},\n\t\"customer\": {\n\t\t\"id\": \"cus_TS072120221536Ol2j1505528\",\n\t\t\"first_name\": \"Test\",\n\t\t\"last_name\": \"Test\",\n\t\t\"email\": \"test@test.com\",\n\t\t\"phone\": {\n\t\t\t\"country_code\": \"965\",\n\t\t\t\"number\": \"50000000\"\n\t\t}\n\t},\n\t\"source\": {\n\t\t\"object\": \"token\",\n\t\t\"type\": \"CARD_NOT_PRESENT\",\n\t\t\"payment_type\": \"CREDIT\",\n\t\t\"payment_method\": \"MASTERCARD\",\n\t\t\"channel\": \"INTERNET\",\n\t\t\"id\": \"tok_6Y1J1922931uU8T15B148555\"\n\t},\n\t\"redirect\": {\n\t\t\"status\": \"SUCCESS\",\n\t\t\"url\": \"http://your_website.com/redirecturl\"\n\t},\n\t\"post\": {\n\t\t\"status\": \"SUCCESS\",\n\t\t\"url\": \"http://your_website.com/posturl\"\n\t},\n\t\"auto\": {\n\t\t\"status\": \"VOID\",\n\t\t\"type\": \"VOID\",\n\t\t\"time\": 100\n\t},\n\t\"void\": {\n\t\t\"authorize_id\": \"auth_TS065220221533k5FK1505634\",\n\t\t\"id\": \"5315221741055233293\",\n\t\t\"amount\": 1,\n\t\t\"created\": \"1652636514477\",\n\t\t\"by\": \"MERCHANT\"\n\t},\n\t\"description\": \"Test Updated\",\n\t\"metadata\": {\n\t\t\"udf1\": \"test_data_1\",\n\t\t\"udf2\": \"test_data_2\",\n\t\t\"udf3\": \"test_data_updated\"\n\t}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "auth_TS065220221533k5FK1505634"
                    },
                    "object": {
                      "type": "string",
                      "example": "authorize"
                    },
                    "live_mode": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "api_version": {
                      "type": "string",
                      "example": "V2"
                    },
                    "method": {
                      "type": "string",
                      "example": "VOID"
                    },
                    "status": {
                      "type": "string",
                      "example": "VOID"
                    },
                    "amount": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "currency": {
                      "type": "string",
                      "example": "KWD"
                    },
                    "threeDSecure": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "save_card": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "merchant_id": {
                      "type": "string",
                      "example": ""
                    },
                    "product": {
                      "type": "string",
                      "example": ""
                    },
                    "statement_descriptor": {
                      "type": "string",
                      "example": "sample"
                    },
                    "transaction": {
                      "type": "object",
                      "properties": {
                        "authorization_id": {
                          "type": "string",
                          "example": "063090"
                        },
                        "timezone": {
                          "type": "string",
                          "example": "UTC+03:00"
                        },
                        "created": {
                          "type": "string",
                          "example": "1652628981168"
                        },
                        "expiry": {
                          "type": "object",
                          "properties": {
                            "period": {
                              "type": "integer",
                              "example": 30,
                              "default": 0
                            },
                            "type": {
                              "type": "string",
                              "example": "MINUTE"
                            }
                          }
                        },
                        "asynchronous": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "amount": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "currency": {
                          "type": "string",
                          "example": "KWD"
                        }
                      }
                    },
                    "reference": {
                      "type": "object",
                      "properties": {
                        "track": {
                          "type": "string",
                          "example": "tck_TS055220221533Kb9e1505666"
                        },
                        "payment": {
                          "type": "string",
                          "example": "5215221533056668493"
                        },
                        "gateway": {
                          "type": "string",
                          "example": "123456789"
                        },
                        "acquirer": {
                          "type": "string",
                          "example": "213509067245"
                        },
                        "transaction": {
                          "type": "string",
                          "example": "txn_0001"
                        },
                        "order": {
                          "type": "string",
                          "example": "ord_0001"
                        }
                      }
                    },
                    "response": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "601"
                        },
                        "message": {
                          "type": "string",
                          "example": "Void"
                        }
                      }
                    },
                    "acquirer": {
                      "type": "object",
                      "properties": {
                        "response": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "00"
                            },
                            "message": {
                              "type": "string",
                              "example": "Approved"
                            }
                          }
                        }
                      }
                    },
                    "card": {
                      "type": "object",
                      "properties": {
                        "object": {
                          "type": "string",
                          "example": "card"
                        },
                        "first_six": {
                          "type": "string",
                          "example": "512345"
                        },
                        "last_four": {
                          "type": "string",
                          "example": "0008"
                        }
                      }
                    },
                    "receipt": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "205215221533050296"
                        },
                        "email": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "sms": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        }
                      }
                    },
                    "customer": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "cus_TS072120221536Ol2j1505528"
                        },
                        "first_name": {
                          "type": "string",
                          "example": "Test"
                        },
                        "last_name": {
                          "type": "string",
                          "example": "Test"
                        },
                        "email": {
                          "type": "string",
                          "example": "test@test.com"
                        },
                        "phone": {
                          "type": "object",
                          "properties": {
                            "country_code": {
                              "type": "string",
                              "example": "965"
                            },
                            "number": {
                              "type": "string",
                              "example": "50000000"
                            }
                          }
                        }
                      }
                    },
                    "source": {
                      "type": "object",
                      "properties": {
                        "object": {
                          "type": "string",
                          "example": "token"
                        },
                        "type": {
                          "type": "string",
                          "example": "CARD_NOT_PRESENT"
                        },
                        "payment_type": {
                          "type": "string",
                          "example": "CREDIT"
                        },
                        "payment_method": {
                          "type": "string",
                          "example": "MASTERCARD"
                        },
                        "channel": {
                          "type": "string",
                          "example": "INTERNET"
                        },
                        "id": {
                          "type": "string",
                          "example": "tok_6Y1J1922931uU8T15B148555"
                        }
                      }
                    },
                    "redirect": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "url": {
                          "type": "string",
                          "example": "http://your_website.com/redirecturl"
                        }
                      }
                    },
                    "post": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "url": {
                          "type": "string",
                          "example": "http://your_website.com/posturl"
                        }
                      }
                    },
                    "auto": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "VOID"
                        },
                        "type": {
                          "type": "string",
                          "example": "VOID"
                        },
                        "time": {
                          "type": "integer",
                          "example": 100,
                          "default": 0
                        }
                      }
                    },
                    "void": {
                      "type": "object",
                      "properties": {
                        "authorize_id": {
                          "type": "string",
                          "example": "auth_TS065220221533k5FK1505634"
                        },
                        "id": {
                          "type": "string",
                          "example": "5315221741055233293"
                        },
                        "amount": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "created": {
                          "type": "string",
                          "example": "1652636514477"
                        },
                        "by": {
                          "type": "string",
                          "example": "MERCHANT"
                        }
                      }
                    },
                    "description": {
                      "type": "string",
                      "example": "Test Updated"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "udf1": {
                          "type": "string",
                          "example": "test_data_1"
                        },
                        "udf2": {
                          "type": "string",
                          "example": "test_data_2"
                        },
                        "udf3": {
                          "type": "string",
                          "example": "test_data_updated"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"errors\": [\n\t\t{\n\t\t\t\"code\": \"1115\",\n\t\t\t\"description\": \"Authorize not found\"\n\t\t}\n\t]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "1115"
                          },
                          "description": {
                            "type": "string",
                            "example": "Authorize not found"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```