List contact persons - celdotro/marketplace GitHub Wiki

About

  • List all contact persons

Class

celmarket\Admin\AdminContacts

Method

getContacts

API

  • method: admininfo
  • action: getAffiliateContacts

Parameters

(No parameters)

Response

An object with the following attributes

  • list = contact list -> array
    • (element from array) = a contact -> obiect
      • id = contact ID
      • type = contact person type
        • admin = Legal representative
        • tehnic = Tehnic
        • sales = Sales
        • financial = Financial
        • op = Operational
        • shipping = Delivery
      • name = contact person name
      • phone = phone number
      • email = email address
      • status = contact person status
        • 1 = active
        • 0 = inactive
  • page = page number
  • total = total number of contacts
  • limit = limit per page

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Admin/45.getContacts.php

Example - JSON

{
    "request": {},

    "response": {
        "list": [
            {
                "id": 1,
                "type": "shipping",
                "name": "Ion Popescu",
                "phone": "0724123456",
                "email": "[email protected]",
                "status": 1
            }
        ],
        "page": 1,
        "total": 1,
        "limit": 25
    }
}