{"openapi":"3.1.0","info":{"title":"Sankcje Check API","version":"1.0.0","description":"REST API do weryfikacji, czy kod CN towaru jest objęty sankcjami UE. Zwraca verdict, reżim (Rosja 833/2014, Białoruś 765/2006), załącznik, artykuł, wyłączenia, datę wersji i link do EUR-Lex.\n\nWynik ma charakter informacyjny i nie stanowi porady prawnej ani celnej. Wiążąca jest treść rozporządzenia UE oraz decyzja organów celnych. Wynik no_match nie oznacza, że obrót jest dozwolony.","contact":{"email":"kontakt@exportsy.pl","url":"https://sankcje.exportsy.pl"}},"servers":[{"url":"https://sankcje.exportsy.pl/api","description":"Production"}],"tags":[{"name":"CN","description":"Sprawdzanie statusu sankcyjnego kodu CN"},{"name":"Lead","description":"Zapis kontaktu i zapytania"}],"paths":{"/v1/cn":{"get":{"tags":["CN"],"summary":"Sprawdź, czy kod CN lub towar jest objęty sankcjami UE","description":"Dla kodu CN obowiązuje zasada prefiksu: wpisanie 7304 znajdzie też 7304 11 00, a pełny kod trafi w pozycję nadrzędną.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Kod CN (np. 7304 11 00 lub 73041100) albo fragment nazwy towaru","example":"7304 11 00"},{"name":"lang","in":"query","required":false,"schema":{"type":"string","enum":["pl","en"],"default":"pl"},"description":"Język nazw i etykiet"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CnResponse"}}}},"400":{"description":"Brak parametru q"},"429":{"description":"Przekroczono limit zapytań"},"500":{"description":"Błąd bazy danych"}}}},"/lead":{"post":{"tags":["Lead"],"summary":"Zapisz kontakt lub zapytanie","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","example":"kontakt@firma.pl"},"source":{"type":"string","example":"kontakt"},"utm":{"type":"object","additionalProperties":{"type":"string"}}}}}}},"responses":{"200":{"description":"Zapisano","content":{"application/json":{"example":{"ok":true}}}},"400":{"description":"Nieprawidłowy adres email lub treść"},"429":{"description":"Przekroczono limit zapytań"}}}}},"components":{"schemas":{"CnResponse":{"type":"object","properties":{"query":{"type":"string","example":"7304 11 00"},"matched_as":{"type":"string","enum":["cn_code","name"]},"verdict":{"type":"string","enum":["restricted","no_match"],"description":"restricted = znaleziono ograniczenia; no_match nie oznacza, że obrót jest dozwolony"},"results":{"type":"array","items":{"$ref":"#/components/schemas/CnResult"}},"disclaimer":{"type":"string"},"meta":{"type":"object","properties":{"returned":{"type":"integer"},"source":{"type":"string"}}}}},"CnResult":{"type":"object","properties":{"cn_code":{"type":"string","example":"7304 11 00"},"name":{"type":"string"},"restriction":{"type":"object","properties":{"type":{"type":"string","enum":["export_ban","import_ban","transfer_ban","restriction","other"]},"label":{"type":"string","example":"Zakaz eksportu"},"direction":{"type":"string","nullable":true,"example":"EU_to_RU"}}},"annex":{"type":"string","nullable":true,"example":"Annex XXIII"},"article":{"type":"string","nullable":true,"example":"art. 3k"},"has_exemptions":{"type":"boolean"},"exemption":{"type":"string","nullable":true},"valid_from":{"type":"string","nullable":true},"valid_to":{"type":"string","nullable":true},"regime":{"$ref":"#/components/schemas/Regime"},"source":{"type":"string","example":"EUR-Lex"},"source_version":{"type":"string","example":"833/2014 skonsolidowane"},"data_quality":{"type":"string","enum":["verified","demo","to_review"]}}},"Regime":{"type":"object","properties":{"name_pl":{"type":"string","example":"Rosja"},"name_en":{"type":"string","example":"Russia"},"legal_act":{"type":"string","example":"Rozporządzenie (UE) 833/2014"},"eur_lex_url":{"type":"string","format":"uri"},"consolidated_version":{"type":"string","nullable":true}}}}}}