Email Sellers

Email Sellers in Marketplacer represent the emails sent to a seller on the site.

Note: This endpoint requires an admin API key. See the Getting Started page to find out about generating API keys.

Listing email enquiries

This endpoint returns all email enquiries since a particular time.

Request

GET /api/v2/administration/email_sellers?since=2018-07-03T00:00:00+10:00

Response

Status: 200 OK
{
  "data": [
    {
      "id": 1,
      "type": "email_sellers",
      "attributes": {
        "created_at": "2018-07-03T00:00:00.000+10:00"
      }
    }
  ]
}

Getting details of an email enquiry

This endpoint returns extended detail about a particular email enquiry.

Request

GET /api/v2/administration/email_sellers/1

Response

Status: 200 OK
{
  "links": {
    "self": "https://bikeexchange.com.au/api/v2/client/email_sellers/1"
  },
  "data": {
    "id": 1,
    "type": "email_sellers",
    "attributes": {
      "advert_id": 1,
      "contact_preference": "email",
      "country": "Australia",
      "created_at": "2018-07-03T00:00:00.000+10:00",
      "domain": "www.bikeexchange.com.au",
      "email_address": "bob@gmail.com",
      "first_name": "bob",
      "message": "Hi, just wondering what year model this is. Does it come with a spare tyre?",
      "phone": "0400 000 000",
      "remote_ip": "127.0.0.1",
      "surname": ""
    },
    "relationships": {
      "seller": {
        "data": [
          {
            "type": "sellers",
            "id": 1
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": 1,
      "type": "sellers",
      "attributes": {
        "business_name": "Bikeworld",
        "phone": "(08) 0000 0000",
        "address": "199 Albany Highway",
        "city": "Albany",
        "postcode": "6330",
        "state": "Western Australia",
        "country_code": "AU"
      }
    }
  ]
}