getAccountData

Method returns current account information

Usage URL: https://e-hedo.pl/api/getAccountData.json?key=YOURAPIKEY

Query params

(put those in your URL, e.g. ?id=123)

  • lang

    Language of result. ISO 2 Letter Language Codes ie: en, pl, cs

  • firstname | string

    Contractor's first name

  • lastname | string

    Contractor's last name

  • name | string

    Contractor's full name

  • iscompany | integer

    Indicates if contractor is registered as a company

  • country_i | string

    Country name set for invoices

  • country_s | string

    Country name set for shipment

  • city_i | string

    City set for invoices

  • city_s | string

    City set for shipment

  • postalcode_i | string

    Postal code set for invoices

  • postalcode_s | string

    Postal code set for shipment

  • street_i | string

    Street set for invoices

  • street_s | string

    Street set for shipment

  • buildingno_i | string

    Building no. set for invoices

  • buildingno_s | string

    Building no. set for shipment

  • flatno_i | string

    Flat no. set for invoices

  • flatno_s | string

    Flat no. set for shipment

  • email | string

    Contractor's contact email

  • phone | string

    Contractor's contact phone

  • imno | string

    Contractor's contact messenger number

  • imtype | string

    Contractor's contact messenger type

Example URL: https://e-hedo.pl/api/getAccountData.json?key=YOURAPIKEY&lang=en

{
    "firstname": "\u0141ukasz",
    "lastname": "Kolasa",
    "fathername": null,
    "name": "\u0141ukasz Kolasa",
    "iscompany": 0,
    "country_i": "Poland",
    "country_s": "Poland",
    "city_i": "Bia\u0142a Podlaska",
    "city_s": "Bia\u0142a Podlaska",
    "postalcode_i": "21-500",
    "postalcode_s": "21-500",
    "street_i": "Orzechowa",
    "street_s": "Orzechowa",
    "buildingno_i": "48",
    "buildingno_s": "48",
    "flatno_i": "20",
    "flatno_s": "20",
    "email": "maczugapl@gmail.com",
    "phone": "663193140",
    "imno": "",
    "imtype": null
}
Example URL: https://e-hedo.pl/api/getAccountData.xml?key=YOURAPIKEY&lang=en

<?xml version="1.0" encoding="utf-8"?>
<root>
	<firstname>Łukasz</firstname>
	<lastname>Kolasa</lastname>
	<fathername></fathername>
	<name>Łukasz Kolasa</name>
	<iscompany>0</iscompany>
	<country_i>Poland</country_i>
	<country_s>Poland</country_s>
	<city_i>Biała Podlaska</city_i>
	<city_s>Biała Podlaska</city_s>
	<postalcode_i>21-500</postalcode_i>
	<postalcode_s>21-500</postalcode_s>
	<street_i>Orzechowa</street_i>
	<street_s>Orzechowa</street_s>
	<buildingno_i>48</buildingno_i>
	<buildingno_s>48</buildingno_s>
	<flatno_i>20</flatno_i>
	<flatno_s>20</flatno_s>
	<email>maczugapl@gmail.com</email>
	<phone>663193140</phone>
	<imno></imno>
	<imtype></imtype>
</root>