getAccountData

Method returns current account information

Usage URL: https://b2b.onesto-energy.pl/api/getAccountData.json?key=YOURAPIKEY

Query params

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

  • lang

    string

    Language of result. ISO 2 Letter Language Codes ie

    Example: en, pl, cs

  • firstname

    string

    Contractor's first name

  • lastname

    string

    Contractor's last name

  • name

    string

    Contractor's full name

  • iscompany

    boolean (1 = true, 0 = false)

    Flag indicating if contractor is a company

  • dropshipping

    boolean (1 = true, 0 = false)

    Flag indicating if contractor uses dropshipping services

  • currency

    string

    Currency symbol currently set as default on your account. Will be used for fetching products / creating orders by default unless changed by query parameter in those methods.

    Example: Three letters format ie: PLN, EUR, USD.

  • country_i

    string

    Country set for invoices

  • city_i

    string

    City set for invoices

  • postalcode_i

    string

    Postal code set for invoices

  • street_i

    string

    Street set for invoices

  • buildingno_i

    string

    Building no. set for invoices

  • flatno_i

    string

    Flat no. set for invoices

  • country_s

    string

    Country set for shipment

  • city_s

    string

    City set for shipment

  • postalcode_s

    string

    Postal code set for shipment

  • street_s

    string

    Street set for shipment

  • buildingno_s

    string

    Building no. set for shipment

  • 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

{
    "firstname": null,
    "lastname": null,
    "name": "Test Account E2E - Old API - level 0",
    "iscompany": 0,
    "country_i": null,
    "country_s": null,
    "city_i": null,
    "city_s": null,
    "postalcode_i": null,
    "postalcode_s": null,
    "street_i": null,
    "street_s": null,
    "buildingno_i": null,
    "buildingno_s": null,
    "flatno_i": null,
    "flatno_s": null,
    "email": "e2e-old-api-level-0@topsoft4u.com",
    "phone": null,
    "imno": null,
    "imtype": null
}
<?xml version="1.0" encoding="utf-8"?>
<root>
	<firstname></firstname>
	<lastname></lastname>
	<name>Test Account E2E - Old API - level 0</name>
	<iscompany>0</iscompany>
	<country_i></country_i>
	<country_s></country_s>
	<city_i></city_i>
	<city_s></city_s>
	<postalcode_i></postalcode_i>
	<postalcode_s></postalcode_s>
	<street_i></street_i>
	<street_s></street_s>
	<buildingno_i></buildingno_i>
	<buildingno_s></buildingno_s>
	<flatno_i></flatno_i>
	<flatno_s></flatno_s>
	<email>e2e-old-api-level-0@topsoft4u.com</email>
	<phone></phone>
	<imno></imno>
	<imtype></imtype>
</root>