Get order questions - celdotro/marketplace GitHub Wiki

About

  • Get order's questions

Class

celmarket\Email\EmailCommunication

Method

getOrderContact

API

  • method: email
  • action: getOrderContact

Parameters

  • orders_id = order's ID

Response

An object with the following attributes

  • (atrtibute) = question thread -> array
    • (array element) = question/answer
      • for type = 0 - question
        • id = answer's ID
        • client = client's name
        • message = client's message
        • date = message's date
        • type = message's type
      • for type = 1
        • message = affiliate's message
        • data = message's date
        • type = message's type

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Email/17.getOrderContact.php

Example - JSON

{
  "request": {
   "orders_id": 1 
  },
  
  "response": {
    "0": {
      "id": 1,
      "client": "X",
      "message": "X",
      "date": "01-01-2018",
      "type": 0
    }
  }
}
⚠️ **GitHub.com Fallback** ⚠️