Dokumentacja MGBI API
  1. pl-wpv-record
Dokumentacja MGBI API
  • MGBI API
    • Wprowadzenie
    • Autoryzacja
    • Pojęcia
    • Modele danych
      • pl-krs-wp-record
      • pl-krs-rdf-record
      • pl-krz-wp-record
      • pl-wpv-record
      • pl-crbr-wp-record
      • pl-msig-record
    • Endpointy dla modeli danych
      • pl-krs-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
      • pl-krs-rdf-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
      • pl-krz-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
      • pl-wpv-record
        • Get Record By Id
          GET
        • Get Records
          GET
        • Stream Records
          GET
        • Get Limits
          GET
        • Get Projections
          GET
      • pl-crbr-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
      • pl-msig-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
    • Zlecanie odświeżenia danych
      • Ogólne informacje
      • Create Refresh
      • Get Refresh
  1. pl-wpv-record

Get Record By Id

GET
/v1/models/pl-wpv-record/records/{id}
Pobiera pojedynczy rekord z danymi podmiotu z Wykazu Podatników VAT (Białej Listy VAT).
W przypadku sukcesu w odpowiedzi zwraca rekord o podanym identyfikatorze.
W przypadku, gdy rekord o podanym identyfikatorze nie istnieje, zwraca błąd 404.
Poprawne wywołanie endpointu zwiększa liczniki:
api i api_get o 1
records i records_api_get o 1
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.mgbi.pl/v1/models/pl-wpv-record/records/?projection=&content=' \
--header 'Authorization;'
Response Response Example
200 - Success Example
{
    "id": "6768477e8ef13a3a7ef927f1",
    "content": {
        "raw_result": {
            "subject": {
                "name": "ORLEN SPÓŁKA AKCYJNA",
                "nip": "7740001454",
                "statusVat": "Czynny",
                "regon": "610188201",
                "krs": "0000028860",
                "workingAddress": "CHEMIKÓW 7, 09-411 PŁOCK",
                "representatives": [],
                "authorizedClerks": [],
                "partners": [],
                "registrationLegalDate": "1993-07-05",
                "accountNumbers": [
                    "16184000072210047008140619",
                    "25184000072210047008135219",
                    "28184000072210047008133419",
                    "31184000072210047008131619",
                    "47184000072210047008141419",
                    "02103015080000000500101963",
                    "02114010100000243195001010",
                    "03102010260000160202932796",
                    "04103015080000000500101539",
                    "04124052821111000048936015",
                    "06160011271843983820000034",
                    "08105000861000002258724406",
                    "09105000861000002441871155",
                    "10103015080000000500101237",
                    "13103015080000000500101474",
                    "14102010260000120202627438",
                    "14114010100000243195001085",
                    "20113000070003901111200003",
                    "15105000861000009030137625",
                    "16103015080000000500101032",
                    "17160011271843983820000030",
                    "18124031741111000032366066",
                    "19102010260000100202627446",
                    "19103015080000000500101075",
                    "22102010260000100204553715",
                    "28103015080000000500101010",
                    "28105000861000002310281486",
                    "29103015080000000500101962",
                    "29124062921213001086584127",
                    "30102010260000140203550589",
                    "31114010100000243195001070",
                    "19249000050000460027186856",
                    "25106000760000321000149213",
                    "47113000070003901111200002",
                    "33160011271843983820000033",
                    "35102010260000120203550597",
                    "35103015080000000500101563",
                    "37124031741111000028899332",
                    "38103015080000000500101024",
                    "38124052821111001080047440",
                    "39105000861000009031675904",
                    "40102010260000170203616901",
                    "46124031741787001047464116",
                    "47103013350000000500101500",
                    "48102010260000160202932762",
                    "49124052821111000048943547",
                    "51103015080000000500101954",
                    "51114010100000243195001001",
                    "53102010260000140202932770",
                    "53102039740000510200022384",
                    "54103015080000000500101415",
                    "43249000050000460014325776",
                    "55102010260000150202932200",
                    "54113000070003901111600001",
                    "55124031741111001059524978",
                    "56124042271111000048400835",
                    "74113000070003901111200001",
                    "58102010260000170203368354",
                    "59102010260000130202736965",
                    "60102010260000170202936862",
                    "60103015080000000500101113",
                    "60160011271843983820000032",
                    "63103015080000000500101253",
                    "66103015080000000500101199",
                    "67114010100000243195001004",
                    "70124011121111001070879914",
                    "70160011271843983820000046",
                    "74124054971111000050139066",
                    "76103015080000000500101504",
                    "76160011271843983820000035",
                    "56249000050000460037967449",
                    "75249000050000453063872359",
                    "78124052821111000048895107",
                    "79103015080000000500101547",
                    "79160011271843983820000078",
                    "80124054971978000050118306",
                    "81124042271978000048409900",
                    "82103015080000000500101008",
                    "82103015080000000500101202",
                    "82124052821111000048909585",
                    "84114010100000243195001086",
                    "85102010260000100203550571",
                    "85103015080000000500101148",
                    "87124031741787000028899358",
                    "87160011271843983820000031",
                    "88102010260000160204569887",
                    "88103015080000000500101482",
                    "89124031741111001032180939",
                    "90105000861000002310281825",
                    "90106000760000321000157452",
                    "94114010100000243195001003",
                    "97102010260000190202932218",
                    "97124062921111001083537159",
                    "98249000050000460077212408",
                    "70249000050000460092801879",
                    "52249000050000460029212301",
                    "31249000050000461294270480",
                    "27239000040011000000011140",
                    "62239000040012000000011139",
                    "81239000040011000000011138",
                    "97239000040011000000011141",
                    "75102010260000130204812477",
                    "80102010260000110204812485",
                    "19184000072211106008190210",
                    "37184000072211106008130522",
                    "54184000072211106008101019",
                    "68184000072211106008131322",
                    "76184000072211106007001419",
                    "06124052821111000048951887",
                    "05102018110000030201103613",
                    "06105000861000009081321680",
                    "20124062921787001102404613",
                    "24109010980000000144137651",
                    "26124012681111001031924079",
                    "28105000861000009081321672",
                    "30105000861000009031469456",
                    "30144011010000000007883358",
                    "40105000861000009081414576",
                    "40235000020111852300050840",
                    "48124012681111001005553360",
                    "48124062921796001097045088",
                    "49109010980000000144137589",
                    "49124012681978001007834403",
                    "50102018110000030200883389",
                    "54124012681787001007834357",
                    "58102010260000110202597110",
                    "60144010970000000001094521",
                    "62105000861000009081414568",
                    "62124062921111001046687295",
                    "66105000861000009081710346",
                    "76124062921978001043224152",
                    "80124062921111001102404062",
                    "83102018110000070201103274",
                    "83144011010000000007883374",
                    "85109010980000000144137620",
                    "85124010531111001018914679",
                    "88124062921787001043224077",
                    "92102010260000140203040029",
                    "94102018110000010201354018",
                    "04105000861000002471439949",
                    "04105000861000002471440046",
                    "05105000861000002471439931",
                    "09105000861000002471439956",
                    "09105000861000002471440053",
                    "93239000040011000000012280",
                    "33239000040011000000012293",
                    "14105000861000002273645032",
                    "18200000040000000900301978",
                    "15105000861000002273645693",
                    "34200000040000000900301787",
                    "40200000040000000900301000",
                    "14116022020000000061888880",
                    "25116022020000000061888876",
                    "26114010650000212275001009",
                    "12105000861000009030659248",
                    "13105000861000009081335813",
                    "17105000861000009030411517",
                    "18105000861000002329397844",
                    "26105000861000002273645495",
                    "29105000861000002347445757",
                    "33105000861000002329353342",
                    "52105000861000009031097356",
                    "68105000861000002329353391",
                    "76105000861000002329353441",
                    "85105000861000009031016349",
                    "94105000861000009031254031",
                    "96124062921111001102404453",
                    "97235000020111852300050978",
                    "97105000861000002329397877",
                    "94116022020000000061888895",
                    "24124062921787001102404541",
                    "30102010260000150205449121",
                    "72102010260000190205449139",
                    "77102010260000170205449147",
                    "03124060031787000049410431",
                    "05102010260000180202723336",
                    "07102010260000110203570744",
                    "13105000861000002441873896",
                    "13113010170016008298200002",
                    "16184000072210047008130822",
                    "16184000072210047008160213",
                    "19124062921111001057479319",
                    "20113010170016008298600001",
                    "21105000861000002321504512",
                    "24124060031111000049426878",
                    "24184000072210047008120008",
                    "25102010970000790201093939",
                    "30105000861000002321504447",
                    "31124023401111001080044797",
                    "32113000070016008298200006",
                    "33160011270003012762275023",
                    "33184000072210047008101319",
                    "35160010710003011762275001",
                    "38124060031111000049421873",
                    "42184000072210047008121818",
                    "45103015080000000501901024",
                    "45105000861000002321504371",
                    "45160011270003012762275001",
                    "51124060031111000049417759",
                    "51124060031978000049406128",
                    "54103013350000000501901500",
                    "55184000072210047007001719",
                    "56113010170016008298200004",
                    "09184000072210047008125419",
                    "45124062921111001046172531",
                    "57124062921111001057884386",
                    "58114019770000242466001053",
                    "59113000070016008298200005",
                    "60160011270003012762275022",
                    "65124062921111001081703174",
                    "70102010970000790201093905",
                    "70103015080000000501901059",
                    "75102010970000770201093913",
                    "82102010260000160202835247",
                    "83113010170016008298200003",
                    "83184000072210047008152120",
                    "85124060031111000049401530",
                    "87114019770000242466001016",
                    "87160011270003012762275021",
                    "89103015080000000501901008",
                    "90124062921213001060602355",
                    "94124062921111001088574423",
                    "95184000072210047008190510",
                    "98124060031111000049426807",
                    "98160011270003012762275114",
                    "56184000072210047008126319",
                    "96124062921111001059719215",
                    "03184000072210047008109619",
                    "04124059181111000049105715",
                    "04124060031111000049464971",
                    "04184000072210047008147819",
                    "08124062921978001060794210",
                    "18124060031111000049470927",
                    "19184000072210047008109719",
                    "22124060031111000049420124",
                    "22239000040011000000008999",
                    "23184000072210047008155819",
                    "26239000040012000000008683",
                    "29124062921111001037524493",
                    "31124060031978000049436170",
                    "32184000072210047008150419",
                    "34124062921111001037524015",
                    "35184000072210047008109819",
                    "37124060031787000049422623",
                    "39124062921111001109639836",
                    "48124062921978001066340338",
                    "51184000072210047008148719",
                    "54184000072210047008146919",
                    "58124062921978001037524174",
                    "59124059181111000049134698",
                    "03184000072210047008129019",
                    "06184000072210047008127219",
                    "22184000072210047008137019",
                    "35184000072210047008138919",
                    "20188000090000001103066000",
                    "44184000072210047008143219",
                    "59239000040011000000007945",
                    "60184000072210047008153019",
                    "61124062921111001037524305",
                    "70184000072210047008156719",
                    "73184000072210047008154919",
                    "76124062921111001051240708",
                    "78124059181111000049136878",
                    "81124062921111001034527130",
                    "86124062921787001066845165",
                    "90124062921111001095376135",
                    "98184000072210047008149619",
                    "72184000072210047008136119",
                    "82184000072210047008139819",
                    "78184000072210047008132519",
                    "90188000090000001103066001",
                    "91184000072210047008144119",
                    "94184000072210047008142319",
                    "82124062921111001047478067",
                    "87124062921111001037524419",
                    "04124062921111001027647821",
                    "05188000090000001300930071",
                    "06102010260000130202723369",
                    "09124062921111001039097999",
                    "11124062921787001047339427",
                    "11124068431111000049838886",
                    "17124062921111001084805031",
                    "18124062921111001052540388",
                    "18188000090000001300920040",
                    "20124062921978001098082055",
                    "21124060031111000049455256",
                    "21124068431787000049832842",
                    "22124020341111001022169966",
                    "23124023401111000031912217",
                    "26184000072210047008193110",
                    "32124062921111001055937367",
                    "33124062921111001047339560",
                    "34102010260000110202723351",
                    "35124062921978001110457627",
                    "36124062921111001073909164",
                    "37124062921787001052540681",
                    "37124068431111000049852677",
                    "38124060031111000049462225",
                    "38124062921111001047339179",
                    "40102010260000110202795896",
                    "41184000072210047008145019",
                    "45124060031111000049446094",
                    "46102010260000130202223972",
                    "47124060031978000049445970",
                    "48103015080000000501901067",
                    "48184000072210047008150422",
                    "51124060031111000049405440",
                    "52124068431111000049838730",
                    "54124062921111001055937165",
                    "54124062921978001110457382",
                    "59103012920000000055791279",
                    "64103013480000000055791500",
                    "70124062921978001047339485",
                    "72124062921213001060154636",
                    "74103012920000000055791203",
                    "74124062921111001052540447",
                    "79184000072210047008151222",
                    "80124023401111000031912161",
                    "83124062921111001027647078",
                    "83124062921111001047339339",
                    "84184000072210047008109519",
                    "85102010260000110202795862",
                    "87124062921978001052540610",
                    "90124062921111001055988994",
                    "90124062921111001104585994",
                    "92124060031787000049395637",
                    "93124060031978000049463378",
                    "97124062921111001052486295",
                    "77124062921111001059668438",
                    "86124062921111001061812364",
                    "10124062921111001074828222",
                    "50124062921111001076326443",
                    "51124062921111001093943856",
                    "79124062921111001073688782",
                    "79124062921111001066040720",
                    "07102010260000190202795904",
                    "12102010260000170202795912",
                    "17102010260000150202795920",
                    "75184000072210047008134319",
                    "53184000072210047008128119",
                    "27105000861000002471439923",
                    "27105000861000002471440020",
                    "39105000861000002471439998",
                    "40105000861000002471439980",
                    "49105000861000002471439915",
                    "49105000861000002471440012",
                    "61105000861000002471440087",
                    "62105000861000002471439972",
                    "71105000861000002471439907",
                    "71105000861000002471440004",
                    "83105000861000002471440079",
                    "84105000861000002471439964",
                    "84105000861000002471440061",
                    "93105000861000002471439899",
                    "26105000861000002471440038"
                ],
                "hasVirtualAccounts": true
            },
            "requestId": "0WL0x-91l2060",
            "requestDateTime": "22-12-2024 17:21:36"
        }
    },
    "identifiers": {
        "pl_krs": "0000028860",
        "pl_nip": "7740001454",
        "pl_regon": "610188201"
    },
    "version": {
        "from_datetime": "2022-12-31T00:00:00+01:00",
        "to_datetime": "2023-01-01T00:00:00+01:00",
        "latest": true
    },
    "meta": {
        "first_update_datetime": "2024-12-22T17:07:43.934000",
        "last_update_datetime": "2024-12-22T17:07:43.934000"
    }
}

Request

Path Params
id
string 
required
Identyfikator rekordu
Query Params
projection
string 
optional
Nazwa projekcji
content
array[string]
optional
Lista zwracanych pól z modelu danych
Header Params
Authorization
string 
optional
Klucz autoryzacji
Example:
aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee

Responses

🟢200OK
application/json
Pojedynczy rekord
Body
id
string 
required
Identyfikator rekordu
version
object 
required
Informacje o wersji rekordu
from_datetime
string 
required
Data aktualności wersji od
to_datetime
string 
required
Data aktualności wersji do
latest
string 
required
Informacja, czy to jest najnowsza wersja rekordu
identifiers
object 
required
Identyfikatory podmiotu
pl_krs
string 
required
Numer KRS
pl_nip
string 
required
Numer NIP
pl_regon
string 
required
Numer REGON
content
object 
required
Treść odpowiedzi z wyszukiwarki
raw_result
object 
required
Nieprzetworzona treść odpowiedzi
meta
object 
required
Metadane
first_update_datetime
string 
required
Data i czas pierwszej aktualizacji rekordu
last_update_datetime
string 
required
Data i czas ostatniej aktualizacji rekordu
🟠400Bad request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🟠422Parameter Error
Modified at 2025-07-18 16:15:23
Previous
pl-wpv-record
Next
Get Records
Built with