createComplaint

Method allows to create complaint with specific details.

Pictures must be uploaded directly ($_FILES).

Usage URL: https://e-hedo.pl/api/createComplaint.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

  • test

    Enables a sandbox mode - no data will be written on the server. Any value allowed.

POST data

(if any - change request to POST, put those in as form-data)

  • saleid | required

    Internal identifier of sale.

  • type | required

    Internal identifier of complaint type.

  • productid | required

    Internal identifier of product. Required in most cases

  • qty | required

    Quantity of products that complaint is about

  • description | required

    Description of complaint.

  • bankaccount | required

    Bank account number (required for refunds).

  • swift | required

    SWIFT (required for refunds)

  • picture1

    File key ($_FILES) for first picture

  • picture2

    File key ($_FILES) for second picture.

  • picture3

    File key ($_FILES) for third picture.

  • return_address

    Array with return address - if empty (not specified) data will be taken from sale

  • return_address[receiver_name]

    Receivers's full name / company name

  • return_address[postal_code]

    Receivers's postal code

  • return_address[city]

    Receivers's city

  • return_address[street]

    Receivers's street

  • return_address[home_number]

    Receivers's building number

  • return_address[flat_number]

    Receivers's flat nummber

  • return_address[phone]

    Receivers's phone number

  • return_address[email]

    Receivers's email address

  • return_address[country]

    Receivers's country - ISO2 code

  • delivery

    Array with delivery details - if empty (not specified) data will be taken from sale

  • delivery[fkshipmenttype]

    Shipment type internal identifier

  • delivery[pickup_point]

    Unique ID of selected delivery point. Only required if fkshipmenttype points at pickup point delivery type

saleid=112087&
type=3&
productid=40161&
qty=1&
description=Not working&
bankaccount=PL 1234 1234 1234 1234 1234 1234&
swift=XYZ12345
-- Keys below are only for visual purposes on what to use for file transfer
picture0
picture1
picture2
Example URL: https://e-hedo.pl/api/createComplaint.json?key=YOURAPIKEY&lang=en

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