Veterical Payments API
The Payments API from Veterical, for payments.
The Payments API from Veterical, for payments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/veterical-com:veterical-com-payments-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Veterical Payments API
version: 1.0.0
description: 'Public REST API for Veterical, the veterinary-clinic platform. Authenticate with an API key created in the Veterical dashboard: send the base64-encoded key secret with HTTP Basic auth. Each key is scoped to a single clinic and carries per-resource scopes like `clients:read` or `appointments:write`.'
servers:
- url: https://api.veterical.com
tags:
- name: Payments
paths:
/api/payments:
get:
tags:
- Payments
summary: List payments
description: List payments for the API key's clinic, optionally filtered by patientId. Requires the `payments:read` scope.
security:
- apiKey: []
- accessToken: []
parameters:
- in: query
name: patientId
schema:
type: string
responses:
'200':
description: Array of payments
'401':
description: Missing or invalid credentials
'403':
description: The API key lacks the payments:read scope
'429':
description: Rate limit exceeded
operationId: getApiPayments
x-codeSamples:
- lang: Node + Request
source: "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://api.veterical.com/api/payments',\n qs: {patientId: 'SOME_STRING_VALUE'},\n headers: {Authorization: 'Basic REPLACE_BASIC_AUTH'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"
- lang: Shell + Curl
source: "curl --request GET \\\n --url 'https://api.veterical.com/api/payments?patientId=SOME_STRING_VALUE' \\\n --header 'Authorization: Basic REPLACE_BASIC_AUTH'"
- lang: Shell + Httpie
source: "http GET 'https://api.veterical.com/api/payments?patientId=SOME_STRING_VALUE' \\\n Authorization:'Basic REPLACE_BASIC_AUTH'"
- lang: Python + Python3
source: 'import http.client
conn = http.client.HTTPSConnection("api.veterical.com")
headers = { ''Authorization'': "Basic REPLACE_BASIC_AUTH" }
conn.request("GET", "/api/payments?patientId=SOME_STRING_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))'
- lang: Php + Curl
source: "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.veterical.com/api/payments?patientId=SOME_STRING_VALUE\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"Authorization: Basic REPLACE_BASIC_AUTH\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"
- lang: Php + Http1
source: "<?php\n\n$request = new HttpRequest();\n$request->setUrl('https://api.veterical.com/api/payments');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'patientId' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'Authorization' => 'Basic REPLACE_BASIC_AUTH'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"
- lang: Php + Http2
source: "<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://api.veterical.com/api/payments');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n 'patientId' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n 'Authorization' => 'Basic REPLACE_BASIC_AUTH'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"
post:
tags:
- Payments
summary: Create or update a payment
description: Record a payment in the API key's clinic. Requires the `payments:write` scope.
security:
- apiKey: []
- accessToken: []
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: The created payment
'403':
description: The API key lacks the payments:write scope
operationId: postApiPayments
x-codeSamples:
- lang: Node + Request
source: "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://api.veterical.com/api/payments',\n headers: {'content-type': 'application/json', Authorization: 'Basic REPLACE_BASIC_AUTH'},\n body: {},\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"
- lang: Shell + Curl
source: "curl --request POST \\\n --url https://api.veterical.com/api/payments \\\n --header 'Authorization: Basic REPLACE_BASIC_AUTH' \\\n --header 'content-type: application/json' \\\n --data '{}'"
- lang: Shell + Httpie
source: "echo '{}' | \\\n http POST https://api.veterical.com/api/payments \\\n Authorization:'Basic REPLACE_BASIC_AUTH' \\\n content-type:application/json"
- lang: Python + Python3
source: "import http.client\n\nconn = http.client.HTTPSConnection(\"api.veterical.com\")\n\npayload = \"{}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"Basic REPLACE_BASIC_AUTH\"\n }\n\nconn.request(\"POST\", \"/api/payments\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"
- lang: Php + Curl
source: "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.veterical.com/api/payments\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => \"{}\",\n CURLOPT_HTTPHEADER => [\n \"Authorization: Basic REPLACE_BASIC_AUTH\",\n \"content-type: application/json\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"
- lang: Php + Http1
source: "<?php\n\n$request = new HttpRequest();\n$request->setUrl('https://api.veterical.com/api/payments');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'Basic REPLACE_BASIC_AUTH'\n]);\n\n$request->setBody('{}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"
- lang: Php + Http2
source: "<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{}');\n\n$request->setRequestUrl('https://api.veterical.com/api/payments');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'Basic REPLACE_BASIC_AUTH'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"
/api/payments/{paymentId}:
get:
tags:
- Payments
summary: Get a payment by id
description: Fetch a single payment owned by the API key's clinic. Requires the `payments:read` scope. Returns 404 for a payment outside the key's clinic or organization so ids cannot be probed.
security:
- apiKey: []
- accessToken: []
parameters:
- in: path
name: paymentId
required: true
schema:
type: string
responses:
'200':
description: The payment
'404':
description: Not found (or not owned by the caller)
operationId: getApiPaymentsPaymentId
x-codeSamples:
- lang: Node + Request
source: "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://api.veterical.com/api/payments/%7BpaymentId%7D',\n headers: {Authorization: 'Basic REPLACE_BASIC_AUTH'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"
- lang: Shell + Curl
source: "curl --request GET \\\n --url https://api.veterical.com/api/payments/%7BpaymentId%7D \\\n --header 'Authorization: Basic REPLACE_BASIC_AUTH'"
- lang: Shell + Httpie
source: "http GET https://api.veterical.com/api/payments/%7BpaymentId%7D \\\n Authorization:'Basic REPLACE_BASIC_AUTH'"
- lang: Python + Python3
source: 'import http.client
conn = http.client.HTTPSConnection("api.veterical.com")
headers = { ''Authorization'': "Basic REPLACE_BASIC_AUTH" }
conn.request("GET", "/api/payments/%7BpaymentId%7D", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))'
- lang: Php + Curl
source: "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n CURLOPT_URL => \"https://api.veterical.com/api/payments/%7BpaymentId%7D\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"Authorization: Basic REPLACE_BASIC_AUTH\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"
- lang: Php + Http1
source: "<?php\n\n$request = new HttpRequest();\n$request->setUrl('https://api.veterical.com/api/payments/%7BpaymentId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'Authorization' => 'Basic REPLACE_BASIC_AUTH'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"
- lang: Php + Http2
source: "<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://api.veterical.com/api/payments/%7BpaymentId%7D');\n$request->setRequestMethod('GET');\n$request->setHeaders([\n 'Authorization' => 'Basic REPLACE_BASIC_AUTH'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"
components:
securitySchemes:
apiKey:
type: http
scheme: basic
description: 'HTTP Basic auth carrying only the API key secret: `Authorization: Basic base64(<key secret>)`.'
accessToken:
type: apiKey
in: header
name: Authorization
description: 'Operator session token issued by the Veterical dashboard: `Authorization: Token <access token>`.'