Skip to content

ERP Tools

Currency exchange rates

According to the NBP API documentation.

HTTP
curl {{host}}/api/erp/currency/rates/pln/eur \
-H "Authorization: Token {{token}}" \

Optional query parameters:

  • date - date in format yyyy-MM-dd (default: today)
Response
JSON
{
  "table": "A",
  "currency": "euro",
  "code": "EUR",
  "rates": [
    {
      "no": "166/A/NBP/2024",
      "effectiveDate": "2024-08-27",
      "mid": 4.2802
    }
  ]
}

VAT

Get SVG badge with VAT number status

HTTP
curl {{host}}/api/erp/vat/get-badge/5270103391 \
-H "Authorization: Token {{token}}" \

Response

svg

Optional query parameters:

  • label - true/false display vat number (default: true)

Get VAT status

HTTP
curl {{host}}/api/erp/vat/get-data/5270103391 \
-H "Authorization: Token {{token}}" \
Response
JSON
{
  "vat_nip": "5270103391",
  "vat_date": "2024-08-28",
  "vat_status": "VALID",
  "vat_data": {
    "Subject": {
      "name": "MICROSOFT SP\u00d3\u0141KA Z OGRANICZON\u0104 ODPOWIEDZIALNO\u015aCI\u0104",
      "nip": "5270103391",
      "statusVat": "VALID",
      "regon": "010016565",
      "krs": {
        "@xmlns:q1": "http://www.w3.org/2001/XMLSchema",
        "@xmlns:p3": "http://www.w3.org/2001/XMLSchema-instance",
        "@p3:type": "q1:string",
        "#text": "0000056838"
      },
      "workingAddress": {
        "@xmlns:q2": "http://www.w3.org/2001/XMLSchema",
        "@xmlns:p3": "http://www.w3.org/2001/XMLSchema-instance",
        "@p3:type": "q2:string",
        "#text": "ALEJE JEROZOLIMSKIE 195A, 02-222 WARSZAWA"
      },
      "registrationLegalDate": "2003-12-31",
      "accountNumbers": {
        "string": [
          "72103015080000000500217006",
          "09103015080000000500217073"
        ]
      },
      "hasVirtualAccounts": "false"
    }
  }
}

GUS

HTTP
curl {{host}}/api/erp/vat/get-data-gus/5270103391 \
-H "Authorization: Token {{token}}" \
Response
JSON
{
  "Nazwa": "MICROSOFT SP\u00d3\u0141KA Z OGRANICZON\u0104 ODPOWIEDZIALNO\u015aCI\u0104",
  "Regon": "010016565",
  "Nip": "5270103391",
  "Wojewodztwo": "MAZOWIECKIE",
  "Powiat": "Warszawa",
  "Gmina": "W\u0142ochy",
  "Ulica": "Aleje Jerozolimskie",
  "Miejscowosc": "Warszawa",
  "KodPocztowy": "02-222",
  "MiejscowoscPoczty": "Warszawa",
  "NrNieruchomosci": "195A",
  "NrLokalu": "",
  "Typ": "P",
  "SilosID": 6,
  "DataZakonczeniaDzialalnosci": ""
}

VIES

Get VIES status

HTTP
curl {{host}}/api/erp/vies/get/5270103391 \
-H "Authorization: Token {{token}}" \
Response
JSON

Get SVG badge with VIES status

HTTP
curl {{host}}/api/erp/vies/get-badge/5270103391 \
-H "Authorization: Token {{token}}" \

Optional query parameters:

  • label - true/false display vat number (default: true)

Response

svg