getPaymentTypes

Method returns list of payment types.

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

Query params

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

  • id

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

  • modified

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

  • name

    Name of payment type. Example: cover will return all payment types that contains cover in the name

  • country | required

    Country iso code. Two letters format ie: de, pl, gb, us

  • fkshipmenttype

    Internal ID of shipment type (from getShipmentTypes) - allows to return payment types available for this shipment type. More than one value can be specified after comma (,) separator.

  • lang

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

  • id

    Payment type internal identifier.

  • name

    Payment type name.

  • description

    Payment type description.

  • modified

    When payment type was last modified

  • logo

    File name of logo.

Example URL: https://e-hedo.pl/api/getPaymentTypes.json?key=YOURAPIKEY&lang=en&id=3,5

[
    {
        "id": 5,
        "name": "Bank transfer",
        "description": "",
        "modified": "2016-07-13 07:49:51",
        "logo": ""
    },
    {
        "id": 3,
        "name": "Cash on delivery",
        "description": "",
        "modified": "2016-07-13 07:50:06",
        "logo": ""
    }
]
Example URL: https://e-hedo.pl/api/getPaymentTypes.xml?key=YOURAPIKEY&lang=en&id=3,5

<?xml version="1.0" encoding="utf-8"?>
<root>
	<item>
		<id>5</id>
		<name>Bank transfer</name>
		<description></description>
		<modified>2016-07-13 07:49:51</modified>
		<logo></logo>
	</item>
	<item>
		<id>3</id>
		<name>Cash on delivery</name>
		<description></description>
		<modified>2016-07-13 07:50:06</modified>
		<logo></logo>
	</item>
</root>