@apifreaks/openapi-specs 0.4.24 → 0.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3912 -757
- package/dist/index.js +3912 -757
- package/dist/specs/commodity/commodity-fluctuation.yaml +33 -2
- package/dist/specs/commodity/commodity-intraday-rates.yaml +33 -2
- package/dist/specs/commodity/commodity-prices.yaml +33 -2
- package/dist/specs/commodity/commodity-symbols.yaml +68 -1
- package/dist/specs/commodity/commodity-time-series.yaml +33 -2
- package/dist/specs/commodity/historical-commodity-prices.yaml +33 -2
- package/dist/specs/dns/bulk-dns-lookup.yaml +45 -3
- package/dist/specs/dns/dns-history-lookup.yaml +76 -3
- package/dist/specs/dns/dns-lookup.yaml +72 -6
- package/dist/specs/dns/reverse-dns-lookup.yaml +91 -2
- package/dist/specs/financial/bulk-vat-rates-country.yaml +18 -0
- package/dist/specs/financial/financial-apis-supported-countries.yaml +75 -17
- package/dist/specs/financial/iban-validation.yaml +19 -1
- package/dist/specs/financial/swift-code-finder.yaml +18 -0
- package/dist/specs/financial/swift-code-lookup.yaml +18 -0
- package/dist/specs/financial/vat-number-validation.yaml +48 -0
- package/dist/specs/financial/vat-rates-by-ip.yaml +18 -0
- package/dist/specs/financial/vat-rates-country.yaml +18 -0
- package/dist/specs/geocoding/forward-geocoding.yaml +95 -2
- package/dist/specs/geocoding/reverse-geocoding.yaml +71 -0
- package/dist/specs/phone-number-validation/bulk-phone-number-validation.yaml +25 -3
- package/dist/specs/phone-number-validation/phone-validation.yaml +49 -3
- package/dist/specs/scraper/web-scraper.yaml +85 -7
- package/dist/specs/weather/air-quality.yaml +71 -5
- package/dist/specs/weather/astronomy-data.yaml +84 -1
- package/dist/specs/weather/bulk-live-weather.yaml +159 -3
- package/dist/specs/weather/flood-forecast.yaml +61 -11
- package/dist/specs/weather/historical-weather.yaml +53 -3
- package/dist/specs/weather/live-weather.yaml +66 -15
- package/dist/specs/weather/marine-weather.yaml +74 -8
- package/dist/specs/weather/time-series-weather.yaml +60 -8
- package/dist/specs/weather/weather-forecast.yaml +76 -6
- package/dist/specs/whois/reverse-whois.yaml +78 -75
- package/package.json +1 -1
- package/specs/commodity/commodity-fluctuation.json +44 -2
- package/specs/commodity/commodity-intraday-rates.json +44 -2
- package/specs/commodity/commodity-prices.json +44 -2
- package/specs/commodity/commodity-symbols.json +95 -1
- package/specs/commodity/commodity-time-series.json +44 -2
- package/specs/commodity/historical-commodity-prices.json +44 -2
- package/specs/dns/bulk-dns-lookup.json +63 -4
- package/specs/dns/dns-history-lookup.json +102 -3
- package/specs/dns/dns-lookup.json +96 -6
- package/specs/dns/reverse-dns-lookup.json +121 -2
- package/specs/financial/bulk-vat-rates-country.json +27 -0
- package/specs/financial/financial-apis-supported-countries.json +114 -23
- package/specs/financial/iban-validation.json +28 -1
- package/specs/financial/swift-code-finder.json +27 -0
- package/specs/financial/swift-code-lookup.json +27 -0
- package/specs/financial/vat-number-validation.json +72 -0
- package/specs/financial/vat-rates-by-ip.json +27 -0
- package/specs/financial/vat-rates-country.json +27 -0
- package/specs/geocoding/forward-geocoding.json +127 -2
- package/specs/geocoding/reverse-geocoding.json +102 -0
- package/specs/phone-number-validation/bulk-phone-number-validation.json +35 -3
- package/specs/phone-number-validation/phone-validation.json +65 -3
- package/specs/scraper/web-scraper.json +110 -7
- package/specs/weather/air-quality.json +92 -5
- package/specs/weather/astronomy-data.json +122 -1
- package/specs/weather/bulk-live-weather.json +227 -3
- package/specs/weather/flood-forecast.json +78 -11
- package/specs/weather/historical-weather.json +70 -3
- package/specs/weather/live-weather.json +85 -17
- package/specs/weather/marine-weather.json +95 -8
- package/specs/weather/time-series-weather.json +82 -8
- package/specs/weather/weather-forecast.json +107 -6
- package/specs/whois/reverse-whois.json +71 -92
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "DNS Lookup API - Live DNS Records, TTLs & PTR Lookups for Any Hostname",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
-
"description": "Performs a live DNS lookup for any hostname or IP address, returning real-time records from authoritative name servers. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types, plus PTR records
|
|
6
|
+
"description": "Performs a live DNS lookup for any hostname or IP address, returning real-time records from authoritative name servers. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types, plus PTR records, which are looked up from an IP address passed in the ipAddress parameter with type PTR or all. Each record object includes parsed fields such as address, target, priority, TTL, serial, or verification strings, depending on the record type. Pass a comma-separated list of record types with the type parameter, or use 'all' to retrieve every supported type. The optional format parameter allows switching between JSON and XML output.",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "APIFreaks Support",
|
|
9
9
|
"url": "https://apifreaks.com/contact",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"schema": {
|
|
43
43
|
"type": "string"
|
|
44
44
|
},
|
|
45
|
-
"description": "Hostname or URL whose DNS records are required.
|
|
45
|
+
"description": "Hostname or URL whose DNS records are required. Send `host-name`, `ipAddress`, or both."
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "ipAddress",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"schema": {
|
|
52
52
|
"type": "string"
|
|
53
53
|
},
|
|
54
|
-
"description": "
|
|
54
|
+
"description": "IPv4 or IPv6 address whose PTR record is required. Use it with `type` set to `PTR` or `all`. Send `host-name`, `ipAddress`, or both; with both, `host-name` is used for the other record types and `ipAddress` for the PTR record."
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"name": "type",
|
|
@@ -68,10 +68,11 @@
|
|
|
68
68
|
"SPF",
|
|
69
69
|
"TXT",
|
|
70
70
|
"CNAME",
|
|
71
|
+
"PTR",
|
|
71
72
|
"all"
|
|
72
73
|
]
|
|
73
74
|
},
|
|
74
|
-
"description": "A comma-separated list of DNS record types for lookup. Possible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all.
|
|
75
|
+
"description": "A comma-separated list of DNS record types for lookup. Possible values: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, PTR, or all. Values are case-insensitive. PTR is looked up from `ipAddress`; the other types are looked up from `host-name`. With only `ipAddress` sent, use `PTR` or `all`."
|
|
75
76
|
}
|
|
76
77
|
],
|
|
77
78
|
"responses": {
|
|
@@ -241,7 +242,7 @@
|
|
|
241
242
|
}
|
|
242
243
|
},
|
|
243
244
|
"400": {
|
|
244
|
-
"description": "Bad Request — Missing or invalid parameters",
|
|
245
|
+
"description": "Bad Request — Missing or invalid parameters, or missing API key",
|
|
245
246
|
"content": {
|
|
246
247
|
"application/json": {
|
|
247
248
|
"schema": {
|
|
@@ -277,6 +278,95 @@
|
|
|
277
278
|
"message": "Please pass domain param correct value[For Technical Support: support@whoisfreaks.com]",
|
|
278
279
|
"path": "/v2.0/dns/live"
|
|
279
280
|
}
|
|
281
|
+
},
|
|
282
|
+
"ptrWithoutIpAddress": {
|
|
283
|
+
"summary": "PTR requested without ipAddress",
|
|
284
|
+
"value": {
|
|
285
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
286
|
+
"status": 400,
|
|
287
|
+
"error": "Invalid Param Exception",
|
|
288
|
+
"message": "IP Address is required!",
|
|
289
|
+
"path": "/v2.0/dns/live"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"recordTypeWithoutHostName": {
|
|
293
|
+
"summary": "Non-PTR type requested with only ipAddress",
|
|
294
|
+
"value": {
|
|
295
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
296
|
+
"status": 400,
|
|
297
|
+
"error": "Invalid Param Exception",
|
|
298
|
+
"message": "Domain name is required!",
|
|
299
|
+
"path": "/v2.0/dns/live"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"invalidIpAddress": {
|
|
303
|
+
"summary": "Malformed ipAddress",
|
|
304
|
+
"value": {
|
|
305
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
306
|
+
"status": 400,
|
|
307
|
+
"error": "Invalid Param Exception",
|
|
308
|
+
"message": "Pass a valid value for 'ipAddress' param.",
|
|
309
|
+
"path": "/v2.0/dns/live"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"missingApiKey": {
|
|
313
|
+
"summary": "API key not sent",
|
|
314
|
+
"value": {
|
|
315
|
+
"error": "Invalid Param Exception",
|
|
316
|
+
"message": "Please provide apiKey",
|
|
317
|
+
"path": "/v1.0/domain/dns/live",
|
|
318
|
+
"status": 400,
|
|
319
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"headers": {
|
|
326
|
+
"X-AF-Credits-Cost": {
|
|
327
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"401": {
|
|
332
|
+
"description": "Unauthorized — API key invalid",
|
|
333
|
+
"content": {
|
|
334
|
+
"application/json": {
|
|
335
|
+
"schema": {
|
|
336
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
337
|
+
},
|
|
338
|
+
"examples": {
|
|
339
|
+
"invalidApiKey": {
|
|
340
|
+
"summary": "Invalid API key",
|
|
341
|
+
"value": {
|
|
342
|
+
"error": "API Access Exception",
|
|
343
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
344
|
+
"path": "/v1.0/domain/dns/live",
|
|
345
|
+
"status": 401,
|
|
346
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"406": {
|
|
354
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
355
|
+
"content": {
|
|
356
|
+
"application/json": {
|
|
357
|
+
"schema": {
|
|
358
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
359
|
+
},
|
|
360
|
+
"examples": {
|
|
361
|
+
"badFormat": {
|
|
362
|
+
"summary": "format value not supported",
|
|
363
|
+
"value": {
|
|
364
|
+
"error": "Unsupported Media Type",
|
|
365
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
366
|
+
"path": "/v1.0/domain/dns/live",
|
|
367
|
+
"status": 406,
|
|
368
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
369
|
+
}
|
|
280
370
|
}
|
|
281
371
|
}
|
|
282
372
|
}
|
|
@@ -329,7 +419,7 @@
|
|
|
329
419
|
},
|
|
330
420
|
"ipAddress": {
|
|
331
421
|
"type": "string",
|
|
332
|
-
"description": "IP address queried (present when ipAddress parameter is used instead of host-name)."
|
|
422
|
+
"description": "IP address queried (present when the ipAddress parameter is used, together with or instead of host-name)."
|
|
333
423
|
},
|
|
334
424
|
"dnsTypes": {
|
|
335
425
|
"$ref": "#/components/schemas/DnsTypes",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
"400": {
|
|
168
|
-
"description": "Invalid DNS type
|
|
168
|
+
"description": "Bad Request — Invalid DNS type, invalid value, missing required parameter, or missing API key",
|
|
169
169
|
"content": {
|
|
170
170
|
"application/json": {
|
|
171
171
|
"schema": {
|
|
@@ -191,6 +191,66 @@
|
|
|
191
191
|
"status": 400,
|
|
192
192
|
"timestamp": "2026-07-23T09:51:58.951Z"
|
|
193
193
|
}
|
|
194
|
+
},
|
|
195
|
+
"ptrNotSupported": {
|
|
196
|
+
"summary": "PTR requested (not available in reverse lookup)",
|
|
197
|
+
"value": {
|
|
198
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
199
|
+
"status": 400,
|
|
200
|
+
"error": "Invalid Param Exception",
|
|
201
|
+
"message": "Reverse data does not have PTR record support. kindly try other Record Types.",
|
|
202
|
+
"path": "/v2.1/dns/reverse"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"multipleTypes": {
|
|
206
|
+
"summary": "More than one type sent",
|
|
207
|
+
"value": {
|
|
208
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
209
|
+
"status": 400,
|
|
210
|
+
"error": "Invalid Param Exception",
|
|
211
|
+
"message": "Reverse query supports only single record type at a time.",
|
|
212
|
+
"path": "/v2.1/dns/reverse"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"invalidIpv4": {
|
|
216
|
+
"summary": "type=A with a value that is not an IPv4 address or CIDR",
|
|
217
|
+
"value": {
|
|
218
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
219
|
+
"status": 400,
|
|
220
|
+
"error": "Invalid Param Exception",
|
|
221
|
+
"message": "Please provide valid Ipv4 Address or CIDR Notation",
|
|
222
|
+
"path": "/v2.1/dns/reverse"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"invalidIpv6": {
|
|
226
|
+
"summary": "type=AAAA with a value that is not an IPv6 address or CIDR",
|
|
227
|
+
"value": {
|
|
228
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
229
|
+
"status": 400,
|
|
230
|
+
"error": "Invalid Param Exception",
|
|
231
|
+
"message": "Please provide valid Ipv6 Address or CIDR Notation",
|
|
232
|
+
"path": "/v2.1/dns/reverse"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"cidrSuffixOutOfRange": {
|
|
236
|
+
"summary": "CIDR suffix outside the supported range (16-32 for IPv4, 64-128 for IPv6)",
|
|
237
|
+
"value": {
|
|
238
|
+
"timestamp": "2026-11-25T10:07:00.000Z",
|
|
239
|
+
"status": 400,
|
|
240
|
+
"error": "CIDR Suffix Out of Range",
|
|
241
|
+
"message": "IP Network Suffix must be in the range 16-32 for IPv4 CIDR Notation",
|
|
242
|
+
"path": "/v2.1/dns/reverse"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"missingApiKey": {
|
|
246
|
+
"summary": "API key not sent",
|
|
247
|
+
"value": {
|
|
248
|
+
"error": "Invalid Param Exception",
|
|
249
|
+
"message": "Please provide apiKey",
|
|
250
|
+
"path": "/v1.0/domain/dns/reverse",
|
|
251
|
+
"status": 400,
|
|
252
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
253
|
+
}
|
|
194
254
|
}
|
|
195
255
|
}
|
|
196
256
|
}
|
|
@@ -207,8 +267,30 @@
|
|
|
207
267
|
}
|
|
208
268
|
}
|
|
209
269
|
},
|
|
270
|
+
"401": {
|
|
271
|
+
"description": "Unauthorized — API key invalid",
|
|
272
|
+
"content": {
|
|
273
|
+
"application/json": {
|
|
274
|
+
"schema": {
|
|
275
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
276
|
+
},
|
|
277
|
+
"examples": {
|
|
278
|
+
"invalidApiKey": {
|
|
279
|
+
"summary": "Invalid API key",
|
|
280
|
+
"value": {
|
|
281
|
+
"error": "API Access Exception",
|
|
282
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
283
|
+
"path": "/v1.0/domain/dns/reverse",
|
|
284
|
+
"status": 401,
|
|
285
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
210
292
|
"404": {
|
|
211
|
-
"description": "No reverse DNS records found for the given input",
|
|
293
|
+
"description": "Not Found — No reverse DNS records found for the given input, or wrong HTTP method",
|
|
212
294
|
"content": {
|
|
213
295
|
"application/json": {
|
|
214
296
|
"schema": {
|
|
@@ -224,6 +306,16 @@
|
|
|
224
306
|
"error": "Record not Found",
|
|
225
307
|
"message": "No Record Found across: zzsuperrandomnonexistentmxprovider99988.com"
|
|
226
308
|
}
|
|
309
|
+
},
|
|
310
|
+
"wrongMethod": {
|
|
311
|
+
"summary": "Wrong HTTP method used on the endpoint",
|
|
312
|
+
"value": {
|
|
313
|
+
"error": "Resource Not Found",
|
|
314
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
315
|
+
"path": "/v1.0/domain/dns/reverse",
|
|
316
|
+
"status": 404,
|
|
317
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
318
|
+
}
|
|
227
319
|
}
|
|
228
320
|
}
|
|
229
321
|
}
|
|
@@ -239,6 +331,33 @@
|
|
|
239
331
|
"$ref": "#/components/headers/X-Concurrent-Threads-Active"
|
|
240
332
|
}
|
|
241
333
|
}
|
|
334
|
+
},
|
|
335
|
+
"406": {
|
|
336
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
337
|
+
"content": {
|
|
338
|
+
"application/json": {
|
|
339
|
+
"schema": {
|
|
340
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
341
|
+
},
|
|
342
|
+
"examples": {
|
|
343
|
+
"badFormat": {
|
|
344
|
+
"summary": "format value not supported",
|
|
345
|
+
"value": {
|
|
346
|
+
"error": "Unsupported Media Type",
|
|
347
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
348
|
+
"path": "/v1.0/domain/dns/reverse",
|
|
349
|
+
"status": 406,
|
|
350
|
+
"timestamp": "2026-11-25T10:07:00.000Z"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"headers": {
|
|
357
|
+
"X-AF-Credits-Cost": {
|
|
358
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
242
361
|
}
|
|
243
362
|
}
|
|
244
363
|
}
|
|
@@ -205,6 +205,33 @@
|
|
|
205
205
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
+
},
|
|
209
|
+
"406": {
|
|
210
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
211
|
+
"content": {
|
|
212
|
+
"application/json": {
|
|
213
|
+
"schema": {
|
|
214
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
215
|
+
},
|
|
216
|
+
"examples": {
|
|
217
|
+
"badFormat": {
|
|
218
|
+
"summary": "format value not supported",
|
|
219
|
+
"value": {
|
|
220
|
+
"error": "Unsupported Media Type",
|
|
221
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
222
|
+
"path": "/v1.0/vat/rates/country",
|
|
223
|
+
"status": 406,
|
|
224
|
+
"timestamp": "2026-11-25T10:00:55.394Z"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"headers": {
|
|
231
|
+
"X-AF-Credits-Cost": {
|
|
232
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
208
235
|
}
|
|
209
236
|
}
|
|
210
237
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Financial APIs Supported Countries Reference",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
-
"description": "Retrieve the countries and states supported by the VAT, IBAN, and SWIFT APIs.
|
|
6
|
+
"description": "Retrieve the countries and states supported by the VAT, IBAN, and SWIFT APIs. Use the `type` query parameter (`vat`, `iban` or `swift`) to choose which list is returned; a call with a valid `type` returns only that list, under its own top-level key (VAT_Supported_Countries_And_States, IBAN_Supported_Countries or SWIFT_Supported_Countries). When `type` is omitted or is not one of the three values, all three lists are returned. VAT entries are keyed by lowercase country name and include an ISO code plus, for a handful of countries (US, Canada, Spain), a nested map of sub-national state/region codes. IBAN and SWIFT entries are flat arrays of {name, countryCode} objects.",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "APIFreaks Support",
|
|
9
9
|
"url": "https://apifreaks.com/contact",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"get": {
|
|
22
22
|
"tags": ["Financial APIs"],
|
|
23
23
|
"summary": "Get supported countries",
|
|
24
|
-
"description": "Returns the countries and states supported by the VAT, IBAN,
|
|
24
|
+
"description": "Returns the list of countries (and, for VAT, states) supported by the VAT, IBAN, or SWIFT API, depending on the `type` parameter. Only the requested list is returned.",
|
|
25
25
|
"operationId": "getSupportedCountries",
|
|
26
26
|
"parameters": [
|
|
27
27
|
{
|
|
@@ -40,22 +40,51 @@
|
|
|
40
40
|
"in": "query",
|
|
41
41
|
"required": false,
|
|
42
42
|
"schema": {
|
|
43
|
-
"type": "string"
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": [
|
|
45
|
+
"vat",
|
|
46
|
+
"iban",
|
|
47
|
+
"swift"
|
|
48
|
+
]
|
|
44
49
|
},
|
|
45
|
-
"description": "
|
|
50
|
+
"description": "Selects which list to return: `vat`, `iban` or `swift`. Each value returns only its own list. Matching is case-insensitive. If omitted, or set to any other value, all three lists are returned. There is no default."
|
|
46
51
|
}
|
|
47
52
|
],
|
|
48
53
|
"responses": {
|
|
49
54
|
"200": {
|
|
50
|
-
"description": "Successful response —
|
|
55
|
+
"description": "Successful response — returns the list selected by `type`, or all three lists when `type` is omitted or not recognised",
|
|
51
56
|
"content": {
|
|
52
57
|
"application/json": {
|
|
53
58
|
"schema": {
|
|
54
59
|
"$ref": "#/components/schemas/SupportedCountriesResponse"
|
|
55
60
|
},
|
|
56
61
|
"examples": {
|
|
57
|
-
"
|
|
58
|
-
"summary": "
|
|
62
|
+
"allLists": {
|
|
63
|
+
"summary": "type omitted — all three lists (truncated)",
|
|
64
|
+
"value": {
|
|
65
|
+
"VAT_Supported_Countries_And_States": [
|
|
66
|
+
{
|
|
67
|
+
"germany": {
|
|
68
|
+
"code": "de"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"IBAN_Supported_Countries": [
|
|
73
|
+
{
|
|
74
|
+
"name": "Albania",
|
|
75
|
+
"countryCode": "AL"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"SWIFT_Supported_Countries": [
|
|
79
|
+
{
|
|
80
|
+
"name": "Afghanistan",
|
|
81
|
+
"countryCode": "AF"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"vatList": {
|
|
87
|
+
"summary": "type=vat — VAT list only (truncated)",
|
|
59
88
|
"value": {
|
|
60
89
|
"VAT_Supported_Countries_And_States": [
|
|
61
90
|
{
|
|
@@ -73,25 +102,35 @@
|
|
|
73
102
|
}
|
|
74
103
|
}
|
|
75
104
|
}
|
|
76
|
-
]
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"ibanList": {
|
|
109
|
+
"summary": "type=iban — IBAN list only (truncated)",
|
|
110
|
+
"value": {
|
|
77
111
|
"IBAN_Supported_Countries": [
|
|
78
112
|
{
|
|
79
|
-
"
|
|
80
|
-
"
|
|
113
|
+
"name": "Albania",
|
|
114
|
+
"countryCode": "AL"
|
|
81
115
|
},
|
|
82
116
|
{
|
|
83
|
-
"
|
|
84
|
-
"
|
|
117
|
+
"name": "Germany",
|
|
118
|
+
"countryCode": "DE"
|
|
85
119
|
}
|
|
86
|
-
]
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"swiftList": {
|
|
124
|
+
"summary": "type=swift — SWIFT list only (truncated)",
|
|
125
|
+
"value": {
|
|
87
126
|
"SWIFT_Supported_Countries": [
|
|
88
127
|
{
|
|
89
|
-
"name": "
|
|
90
|
-
"countryCode": "
|
|
128
|
+
"name": "Afghanistan",
|
|
129
|
+
"countryCode": "AF"
|
|
91
130
|
},
|
|
92
131
|
{
|
|
93
|
-
"name": "
|
|
94
|
-
"countryCode": "
|
|
132
|
+
"name": "Germany",
|
|
133
|
+
"countryCode": "DE"
|
|
95
134
|
}
|
|
96
135
|
]
|
|
97
136
|
}
|
|
@@ -104,6 +143,33 @@
|
|
|
104
143
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
105
144
|
}
|
|
106
145
|
}
|
|
146
|
+
},
|
|
147
|
+
"406": {
|
|
148
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
149
|
+
"content": {
|
|
150
|
+
"application/json": {
|
|
151
|
+
"schema": {
|
|
152
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
153
|
+
},
|
|
154
|
+
"examples": {
|
|
155
|
+
"badFormat": {
|
|
156
|
+
"summary": "format value not supported",
|
|
157
|
+
"value": {
|
|
158
|
+
"error": "Unsupported Media Type",
|
|
159
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
160
|
+
"path": "/v1.0/vat/supported-countries",
|
|
161
|
+
"status": 406,
|
|
162
|
+
"timestamp": "2026-11-25T10:00:55.394Z"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"headers": {
|
|
169
|
+
"X-AF-Credits-Cost": {
|
|
170
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
107
173
|
}
|
|
108
174
|
}
|
|
109
175
|
}
|
|
@@ -127,12 +193,7 @@
|
|
|
127
193
|
"schemas": {
|
|
128
194
|
"SupportedCountriesResponse": {
|
|
129
195
|
"type": "object",
|
|
130
|
-
"description": "Countries and states supported by the VAT, IBAN, and SWIFT APIs.",
|
|
131
|
-
"required": [
|
|
132
|
-
"VAT_Supported_Countries_And_States",
|
|
133
|
-
"IBAN_Supported_Countries",
|
|
134
|
-
"SWIFT_Supported_Countries"
|
|
135
|
-
],
|
|
196
|
+
"description": "Countries and states supported by the VAT, IBAN, and SWIFT APIs. Exactly one of the three properties is present, depending on the `type` request parameter.",
|
|
136
197
|
"properties": {
|
|
137
198
|
"VAT_Supported_Countries_And_States": {
|
|
138
199
|
"type": "array",
|
|
@@ -162,6 +223,36 @@
|
|
|
162
223
|
}
|
|
163
224
|
}
|
|
164
225
|
},
|
|
226
|
+
"ErrorResponse": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"required": [
|
|
229
|
+
"message"
|
|
230
|
+
],
|
|
231
|
+
"properties": {
|
|
232
|
+
"error": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"description": "Short error category or exception type."
|
|
235
|
+
},
|
|
236
|
+
"message": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"description": "Human-readable error message describing the failure."
|
|
239
|
+
},
|
|
240
|
+
"path": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"description": "API endpoint path that produced the error."
|
|
243
|
+
},
|
|
244
|
+
"status": {
|
|
245
|
+
"type": "integer",
|
|
246
|
+
"description": "HTTP status code returned with the error."
|
|
247
|
+
},
|
|
248
|
+
"timestamp": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"format": "date-time",
|
|
251
|
+
"description": "Timestamp when the error occurred (ISO 8601)."
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"description": "Standard error envelope returned by the API on failed requests."
|
|
255
|
+
},
|
|
165
256
|
"VatCountryEntry": {
|
|
166
257
|
"type": "object",
|
|
167
258
|
"description": "VAT country metadata: an ISO 3166-1 alpha-2 code, plus an optional map of sub-national states/regions for countries with state-level VAT (US, Canada, Spain).",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"schema": {
|
|
42
42
|
"type": "string"
|
|
43
43
|
},
|
|
44
|
-
"description": "IBAN to validate."
|
|
44
|
+
"description": "IBAN to validate. Pass it as a single uppercase string with no spaces or separators; lowercase letters or spaces are not normalized for validation and make the result `valid: false` (is_valid_structure false)."
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
"responses": {
|
|
@@ -178,6 +178,33 @@
|
|
|
178
178
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
+
},
|
|
182
|
+
"406": {
|
|
183
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
184
|
+
"content": {
|
|
185
|
+
"application/json": {
|
|
186
|
+
"schema": {
|
|
187
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
188
|
+
},
|
|
189
|
+
"examples": {
|
|
190
|
+
"badFormat": {
|
|
191
|
+
"summary": "format value not supported",
|
|
192
|
+
"value": {
|
|
193
|
+
"error": "Unsupported Media Type",
|
|
194
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
195
|
+
"path": "/v1.0/iban/validation",
|
|
196
|
+
"status": 406,
|
|
197
|
+
"timestamp": "2026-11-25T10:00:55.394Z"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"headers": {
|
|
204
|
+
"X-AF-Credits-Cost": {
|
|
205
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
181
208
|
}
|
|
182
209
|
},
|
|
183
210
|
"operationId": "validateIban"
|
|
@@ -140,6 +140,33 @@
|
|
|
140
140
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
+
},
|
|
144
|
+
"406": {
|
|
145
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
146
|
+
"content": {
|
|
147
|
+
"application/json": {
|
|
148
|
+
"schema": {
|
|
149
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
150
|
+
},
|
|
151
|
+
"examples": {
|
|
152
|
+
"badFormat": {
|
|
153
|
+
"summary": "format value not supported",
|
|
154
|
+
"value": {
|
|
155
|
+
"error": "Unsupported Media Type",
|
|
156
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
157
|
+
"path": "/v1.0/swift-code/finder",
|
|
158
|
+
"status": 406,
|
|
159
|
+
"timestamp": "2026-11-25T10:00:55.394Z"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"headers": {
|
|
166
|
+
"X-AF-Credits-Cost": {
|
|
167
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
143
170
|
}
|
|
144
171
|
}
|
|
145
172
|
}
|
|
@@ -147,6 +147,33 @@
|
|
|
147
147
|
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
+
},
|
|
151
|
+
"406": {
|
|
152
|
+
"description": "Unsupported Media Type — format is not json or xml",
|
|
153
|
+
"content": {
|
|
154
|
+
"application/json": {
|
|
155
|
+
"schema": {
|
|
156
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
157
|
+
},
|
|
158
|
+
"examples": {
|
|
159
|
+
"badFormat": {
|
|
160
|
+
"summary": "format value not supported",
|
|
161
|
+
"value": {
|
|
162
|
+
"error": "Unsupported Media Type",
|
|
163
|
+
"message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
|
|
164
|
+
"path": "/v1.0/swift-code/lookup",
|
|
165
|
+
"status": 406,
|
|
166
|
+
"timestamp": "2026-11-25T10:00:55.394Z"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"headers": {
|
|
173
|
+
"X-AF-Credits-Cost": {
|
|
174
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
150
177
|
}
|
|
151
178
|
},
|
|
152
179
|
"operationId": "lookupSwiftCode"
|