getComplaintReasons

Method returns list of available complaint reasons.

Usage URL: https://magboss.pl/api/getComplaintReasons.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

  • id

    integer

    Internal identifier of complaint reason.

  • name

    string

    Name of complaint reason.

Example URL: https://magboss.pl/api/getComplaintReasons.json?key=YOURAPIKEY&lang=en

[
    {
        "id": 1,
        "name": "Other"
    },
    {
        "id": 2,
        "name": "Resignation from purchase"
    },
    {
        "id": 3,
        "name": "Product damaged - replacement"
    },
    {
        "id": 4,
        "name": "Product damaged - return\/resignation"
    },
    {
        "id": 5,
        "name": "Mistake - replacement"
    },
    {
        "id": 6,
        "name": "Mistake - return\/resignation"
    },
    {
        "id": 7,
        "name": "Product missing - re-send"
    },
    {
        "id": 8,
        "name": "Product missing - resignation"
    },
    {
        "id": 9,
        "name": "Package lost"
    }
]
Example URL: https://magboss.pl/api/getComplaintReasons.xml?key=YOURAPIKEY&lang=en

<?xml version="1.0" encoding="utf-8"?>
<root>
	<item>
		<id>1</id>
		<name>Other</name>
	</item>
	<item>
		<id>2</id>
		<name>Resignation from purchase</name>
	</item>
	<item>
		<id>3</id>
		<name>Product damaged - replacement</name>
	</item>
	<item>
		<id>4</id>
		<name>Product damaged - return/resignation</name>
	</item>
	<item>
		<id>5</id>
		<name>Mistake - replacement</name>
	</item>
	<item>
		<id>6</id>
		<name>Mistake - return/resignation</name>
	</item>
	<item>
		<id>7</id>
		<name>Product missing - re-send</name>
	</item>
	<item>
		<id>8</id>
		<name>Product missing - resignation</name>
	</item>
	<item>
		<id>9</id>
		<name>Package lost</name>
	</item>
</root>