getSales

Method returns sale list

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

Query params

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

  • id

    Internal identifier of sale. More than one value can be specified after comma (,) separator.

  • name

    Name of sale. Example: 03 will return all sales that contains 03 in the name

  • date

    Return all sales created after the date param. That is highly recommended when you want to update your local database.
    Date format is yyyy-MM-dd

  • modified

    Return all sales modified after the modified param. That is highly recommended when you want to update your local database.
    Date format is yyyy-MM-dd

  • type

    Return all sales with type param.

  • lang

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

  • id

    Internal identifier of sale.

  • type

    Type of sale:
    -1 - Order,
    0 - Invoice,
    1 - Invoice correction,
    2 - Receipt,
    3 - Receipt correction,
    5 - Advance invoice,
    10 - Utilization,
    100 - Invoice non-rating

  • created

    When created

  • modified

    When last modified

  • ordername

    Name of order

  • invoicename

    Name of assigned financial document

  • statusname

    Current sale status

  • fkcurrency

    Internal ID of currency

  • symbol

    Sale's currency symbol

  • paid

    Value paid

  • total

    Total net price of sale

  • totalgross

    Total gross price of sale

  • isassembling

    Points whether sale is marked as still assembling

  • assemblyend

    Date when assembling has been finished

  • paymentdeadline

    Payment deadline

  • paymenttag

    Internal tag of payment type

  • ispaid

    Points whether sale is fully paid

  • ispacked

    Points whether sale is already packed

  • isshipped

    Points whether sale is shipped

  • mergedids

    Lists of sales IDs that were merged into this one

Example URL: https://e-hedo.pl/api/getSales.json?key=YOURAPIKEY&lang=en&modified=2017-02-23

[
    {
        "id": 205430,
        "type": -1,
        "created": "2018-09-28 13:47:28",
        "modified": "2018-09-28 13:47:36",
        "invoicename": "--",
        "ordername": "Z18\/33482",
        "fkcurrency": 1,
        "statusname": "Pending",
        "symbol": "PLN",
        "paid": 0,
        "total": 273.21,
        "totalgross": 336.05,
        "isassembling": 0,
        "assemblyend": null,
        "paymentdeadline": "2018-10-08 13:47:28",
        "paymenttag": "paypal",
        "ispaid": 0,
        "ispacked": 0,
        "isshipped": 0,
        "mergedids": null
    },
    {
        "id": 205431,
        "type": 2,
        "created": "2018-09-28 00:00:00",
        "modified": "2018-09-28 14:24:10",
        "invoicename": "ssss",
        "ordername": "Z18\/33483",
        "fkcurrency": 1,
        "statusname": "Pending",
        "symbol": "PLN",
        "paid": 0,
        "total": 10854.91,
        "totalgross": 13351.54,
        "isassembling": 0,
        "assemblyend": null,
        "paymentdeadline": "2018-10-08 00:00:00",
        "paymenttag": "paypal",
        "ispaid": 0,
        "ispacked": 0,
        "isshipped": 0,
        "mergedids": null
    },
    {
        "id": 205432,
        "type": -1,
        "created": "2018-09-28 13:47:34",
        "modified": "2018-09-28 13:47:36",
        "invoicename": "--",
        "ordername": "Z18\/33484",
        "fkcurrency": 1,
        "statusname": "Pending",
        "symbol": "PLN",
        "paid": 0,
        "total": 54.12,
        "totalgross": 66.57,
        "isassembling": 0,
        "assemblyend": null,
        "paymentdeadline": "2018-10-08 13:47:34",
        "paymenttag": "paypal",
        "ispaid": 0,
        "ispacked": 0,
        "isshipped": 0,
        "mergedids": null
    }
]
Example URL: https://e-hedo.pl/api/getSales.xml?key=YOURAPIKEY&lang=en&modified=2017-02-23

<?xml version="1.0" encoding="utf-8"?>
<root>
	<item>
		<id>205430</id>
		<type>-1</type>
		<created>2018-09-28 13:47:28</created>
		<modified>2018-09-28 13:47:36</modified>
		<invoicename>--</invoicename>
		<ordername>Z18/33482</ordername>
		<fkcurrency>1</fkcurrency>
		<statusname>Pending</statusname>
		<symbol>PLN</symbol>
		<paid>0</paid>
		<total>273.21</total>
		<totalgross>336.05</totalgross>
		<isassembling>0</isassembling>
		<assemblyend></assemblyend>
		<paymentdeadline>2018-10-08 13:47:28</paymentdeadline>
		<paymenttag>paypal</paymenttag>
		<ispaid>0</ispaid>
		<ispacked>0</ispacked>
		<isshipped>0</isshipped>
		<mergedids></mergedids>
	</item>
	<item>
		<id>205431</id>
		<type>2</type>
		<created>2018-09-28 00:00:00</created>
		<modified>2018-09-28 14:24:10</modified>
		<invoicename>ssss</invoicename>
		<ordername>Z18/33483</ordername>
		<fkcurrency>1</fkcurrency>
		<statusname>Pending</statusname>
		<symbol>PLN</symbol>
		<paid>0</paid>
		<total>10854.91</total>
		<totalgross>13351.54</totalgross>
		<isassembling>0</isassembling>
		<assemblyend></assemblyend>
		<paymentdeadline>2018-10-08 00:00:00</paymentdeadline>
		<paymenttag>paypal</paymenttag>
		<ispaid>0</ispaid>
		<ispacked>0</ispacked>
		<isshipped>0</isshipped>
		<mergedids></mergedids>
	</item>
	<item>
		<id>205432</id>
		<type>-1</type>
		<created>2018-09-28 13:47:34</created>
		<modified>2018-09-28 13:47:36</modified>
		<invoicename>--</invoicename>
		<ordername>Z18/33484</ordername>
		<fkcurrency>1</fkcurrency>
		<statusname>Pending</statusname>
		<symbol>PLN</symbol>
		<paid>0</paid>
		<total>54.12</total>
		<totalgross>66.57</totalgross>
		<isassembling>0</isassembling>
		<assemblyend></assemblyend>
		<paymentdeadline>2018-10-08 13:47:34</paymentdeadline>
		<paymenttag>paypal</paymenttag>
		<ispaid>0</ispaid>
		<ispacked>0</ispacked>
		<isshipped>0</isshipped>
		<mergedids></mergedids>
	</item>
</root>