Milestone Type Reference Table

This is a table of the milestone types we have available and their keys:

Milestone Type Key Group Description
SSTC sstc SSTC Sold Subject to Contract is the date the offer was made on the property which the seller has accepted
Contracts Underway draft_contracts_prepared SSTC Seller conveyancer confirms that the contract is being prepared and will be submitted to the buyer’s conveyancer for approval and amendments
Searches Ordered searches_ordered Searches This is the date property searches were ordered
Valuation Ordered valuation_ordered - This is when a mortgage survey is requested
Proposed Exchange proposed_exchange Completion The proposed date for the exchange of contracts
Proposed Completion prosposed_completion Completion The proposed completion date as agreed between the seller and the buyer conveyancer
Searches Expected searches_expected Searches When we expect the searches to be delivered by the local authority
Funding Applied funding_applied Funding This is completed when the purchaser is known to have applied for a mortgage. This will only appear if the purchaser has given us consent to check their funding status
Land Registry Completion landreg_completion - When Land Registry listed the property as complete. This data can lag some way behind the date of completion
Enquiries Opened enquiries_opened Enquiries When the buyer conveyancer raises preliminary enquiries
Enquiries Closed enquiries_closed Enquiries When enquiries are completed and closed so that an exchange of contract date can be agreed
Last Land Registry Completion last_land_reg_completion - This is the last time this property was sold according to Land Registry data
Valuation Booked survey_booked_for Funding When a mortgage survey is booked for
Valuation Satisfactory survery_satisfactory Funding Date when the lender notifies of the satisfactory mortgage valuation survey
Exchange exchange Completion Date when the Exchange of Contract takes place
Cash Buyer cash_buyer - The existence of this milestone indicates whether this listing has a cash buyer or not. It may well prove useful if this exists and then a Funding Applied milestone turns up, as it may indicate something is not quite right.
Searches Delivered search_delivered Searches When we know for sure that searches have been returned.
Memo Of Sale Sent memo_of_sale_sent SSTC When the memorandum of Sale was issued
Solicitors Instructed solicitors_instructed SSTC When the Solicitor or Conveyancer was officially asked to represent the Seller and the Buyer
Contract Sent contract_sent SSTC Seller conveyancer sent contracts to buyer conveyancer
Contract Received contract_received SSTC Date the Buyer conveyancer received the contract
Management Pack management_pack SSTC When the Leasehold management pack is received from the management company
Mortgage Offered funding_approved Funding When the lender issued the mortgage offer
Buyers Survey buyers_survey Enquiries When the buyer books for a Home Buyer Survey
Mortgage Offer Expected mortgage_offer_expected Funding When the lender confirms that a mortgage offer will be issued

Adding Milestones

Now you know how to create and find listings, its time to start adding some milestone to them. This is a very simple process of supplying the name of the milestone and a date in the format YYYY-MM-DD HH:MM:SS i.e. 2018-01-25 12:05:00.

curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR-ACCESS-TOKEN>" \
  -X PUT -d '{"milestones": { \
    "sstc": "2018-01-25 12:05:00"\
  } }' \
  https://developers.viewmychain.com/api/v1/listing/1/milestones

You can of course supply more than one milestone at a time:

curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR-ACCESS-TOKEN>" \
  -X PUT -d '{"milestones": { \
    "sstc": "2018-01-04 12:05:00", \
    "searches_ordered": "2018-01-21 09:00:00", \
    "searches_expected": "2018-02-12 00:00:00"\
  } }' \
  https://developers.viewmychain.com/api/v1/listing/1/milestones

If successful you will be given a listing object in response.

However, if the milestones you supply don't pass validation you will be presented with a 422 Status Code and an array of errors which will explain what went wrong, check here and look at the 422 response example for a list of all errors messages.

Adding Milestones With a Listing

You can create a listing with milestones. Simply add the milestones to the listing attributes you pass in:

curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR-ACCESS-TOKEN>" \
  -X POST -d '{"address_id":123456789, "branch_id": 99999, "milestones": { \
    "sstc": "2018-01-04 12:05:00", \
    "searches_ordered": "2018-01-21 09:00:00", \
    "searches_expected": "2018-02-12 00:00:00"\
  }}' \
  https://developers.viewmychain.com/api/v1/listing

Retrieving a single milestone for a listing

If you just want to get one milestone for a listing, rather asking for a listing and including all the milestones and then filtering to find the one you're after, you can make this simple get request:

https://developers.viewmychain.com/api/v1/listing/{listing_id}/milestone/{milestone_type_key}

To get the SSTC for example: https://developers.viewmychain.com/api/v1/listing/1/milestone/sstc or funding https://developers.viewmychain.com/api/v1/listing/1/milestone/funding_applied. Reference

If there is a milestone it will return something like this:

{
  "data":{
    "type":"milestone",
    "id":"1594046492",
    "attributes":{
      "created_at":1514092913,
      "updated_at":1514092947,
      "deleted_at":null,
      "completed_at":1513900800,
      "milestone_type_id":1,
      "milestone_type":"SSTC",
      "address_id":15880626,
      "is_derived":false,
      "excluded":false,
      "origin":1
    }
  }
}

If a milestone doesn't exists you will get a 204 HTTP response.

Retrieving all milestones for a given listing

You can now get the milestones for a listing by hitting:

  https://developers.viewmychain.com/api/v1/listing/123456789/relationships/milestones

Which will return:

{
  data: [
        {
            "type": "milestone",
            "id": "3106966873",
            "attributes": {
                "created_at": 1533824038,
                "updated_at": 1533824038,
                "deleted_at": null,
                "completed_at": 1533081600,
                "milestone_type_id": 1,
                "milestone_type": "SSTC",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197587",
            "attributes": {
                "created_at": 1537192132,
                "updated_at": 1537192132,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 8,
                "milestone_type": "Funding Applied",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197588",
            "attributes": {
                "created_at": 1537192209,
                "updated_at": 1537192209,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 26,
                "milestone_type": "Memo Of Sale Sent",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197589",
            "attributes": {
                "created_at": 1537192214,
                "updated_at": 1537192214,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 2,
                "milestone_type": "Contracts Underway",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197590",
            "attributes": {
                "created_at": 1537192216,
                "updated_at": 1537192216,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 27,
                "milestone_type": "Solicitors Instructed",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197591",
            "attributes": {
                "created_at": 1537192218,
                "updated_at": 1537192218,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 28,
                "milestone_type": "Contract Sent",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197592",
            "attributes": {
                "created_at": 1537192220,
                "updated_at": 1537192220,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 29,
                "milestone_type": "Contract Received",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197593",
            "attributes": {
                "created_at": 1537192223,
                "updated_at": 1537192223,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 30,
                "milestone_type": "Management Pack",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197594",
            "attributes": {
                "created_at": 1537192237,
                "updated_at": 1537192237,
                "deleted_at": null,
                "completed_at": 1535932800,
                "milestone_type_id": 18,
                "milestone_type": "Valuation Booked",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197595",
            "attributes": {
                "created_at": 1537192439,
                "updated_at": 1537192439,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 19,
                "milestone_type": "Valuation Satisfactory",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197600",
            "attributes": {
                "created_at": 1537192517,
                "updated_at": 1537192517,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 3,
                "milestone_type": "Searches Ordered",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197601",
            "attributes": {
                "created_at": 1537192517,
                "updated_at": 1537192517,
                "deleted_at": null,
                "completed_at": 1538352000,
                "milestone_type_id": 7,
                "milestone_type": "Searches Expected",
                "address_id": 29196478,
                "is_derived": true,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197602",
            "attributes": {
                "created_at": 1537192517,
                "updated_at": 1537192517,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 14,
                "milestone_type": "Enquiries Opened",
                "address_id": 29196478,
                "is_derived": true,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197603",
            "attributes": {
                "created_at": 1537192663,
                "updated_at": 1537192663,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 31,
                "milestone_type": "Mortgage Offered",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197604",
            "attributes": {
                "created_at": 1537192670,
                "updated_at": 1537192670,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 32,
                "milestone_type": "Buyers Survey",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3564197090",
            "attributes": {
                "created_at": 1539153389,
                "updated_at": 1539154365,
                "deleted_at": null,
                "completed_at": 1539561600,
                "milestone_type_id": 33,
                "milestone_type": "Mortgage Offer Expected",
                "address_id": 29196478,
                "is_derived": true,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3574669469",
            "attributes": {
                "created_at": 1539264850,
                "updated_at": 1539264850,
                "deleted_at": null,
                "completed_at": 1540512000,
                "milestone_type_id": 6,
                "milestone_type": "Proposed Completion",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        }
    ]
}

Reference Or requesting the listing and including the milestones:

  https://developers.viewmychain.com/api/v1/listing/123456789?includes=milestones

Resulting in:

{
    "data": {
        "type": "listing",
        "id": "16597149",
        "attributes": {
            "created_at": 1533824032,
            "updated_at": 1533824087,
            "deleted_at": null,
            "status_changedate": 1533772800,
            "date_last_received": 1533824032,
            "address_id": 29196478,
            "branch_id": 27157,
            "price": 200000,
            "chain_link_id": "20858541-38E2-48EE-8E77-4C2928BCD860",
            "full_address": "19 GRAINGER GARDENS, SOUTHAMPTON, SO19 0SD",
            "address_street_name": "19 GRAINGER GARDENS",
            "address_area": "SOUTHAMPTON",
            "address_postal_code": "SO19 0SD",
            "verified_as_property": 1,
            "branch_owner_id": null,
            "branch_name": "Enfields Property Services SOUTHAMPTON SO18 6TE"
        },
        "relationships": {
            "milestones": {
                "data": [
                    {
                        "type": "milestone",
                        "id": "3106966873"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197587"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197588"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197589"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197590"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197591"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197592"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197593"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197594"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197595"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197600"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197601"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197602"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197603"
                    },
                    {
                        "type": "milestone",
                        "id": "3387197604"
                    },
                    {
                        "type": "milestone",
                        "id": "3564197090"
                    },
                    {
                        "type": "milestone",
                        "id": "3574669469"
                    }
                ]
            }
        }
    },
    "included": [
        {
            "type": "milestone",
            "id": "3106966873",
            "attributes": {
                "created_at": 1533824038,
                "updated_at": 1533824038,
                "deleted_at": null,
                "completed_at": 1533081600,
                "milestone_type_id": 1,
                "milestone_type": "SSTC",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197587",
            "attributes": {
                "created_at": 1537192132,
                "updated_at": 1537192132,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 8,
                "milestone_type": "Funding Applied",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197588",
            "attributes": {
                "created_at": 1537192209,
                "updated_at": 1537192209,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 26,
                "milestone_type": "Memo Of Sale Sent",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197589",
            "attributes": {
                "created_at": 1537192214,
                "updated_at": 1537192214,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 2,
                "milestone_type": "Contracts Underway",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197590",
            "attributes": {
                "created_at": 1537192216,
                "updated_at": 1537192216,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 27,
                "milestone_type": "Solicitors Instructed",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197591",
            "attributes": {
                "created_at": 1537192218,
                "updated_at": 1537192218,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 28,
                "milestone_type": "Contract Sent",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197592",
            "attributes": {
                "created_at": 1537192220,
                "updated_at": 1537192220,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 29,
                "milestone_type": "Contract Received",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197593",
            "attributes": {
                "created_at": 1537192223,
                "updated_at": 1537192223,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 30,
                "milestone_type": "Management Pack",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197594",
            "attributes": {
                "created_at": 1537192237,
                "updated_at": 1537192237,
                "deleted_at": null,
                "completed_at": 1535932800,
                "milestone_type_id": 18,
                "milestone_type": "Valuation Booked",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197595",
            "attributes": {
                "created_at": 1537192439,
                "updated_at": 1537192439,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 19,
                "milestone_type": "Valuation Satisfactory",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197600",
            "attributes": {
                "created_at": 1537192517,
                "updated_at": 1537192517,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 3,
                "milestone_type": "Searches Ordered",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197601",
            "attributes": {
                "created_at": 1537192517,
                "updated_at": 1537192517,
                "deleted_at": null,
                "completed_at": 1538352000,
                "milestone_type_id": 7,
                "milestone_type": "Searches Expected",
                "address_id": 29196478,
                "is_derived": true,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197602",
            "attributes": {
                "created_at": 1537192517,
                "updated_at": 1537192517,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 14,
                "milestone_type": "Enquiries Opened",
                "address_id": 29196478,
                "is_derived": true,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197603",
            "attributes": {
                "created_at": 1537192663,
                "updated_at": 1537192663,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 31,
                "milestone_type": "Mortgage Offered",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3387197604",
            "attributes": {
                "created_at": 1537192670,
                "updated_at": 1537192670,
                "deleted_at": null,
                "completed_at": 1537142400,
                "milestone_type_id": 32,
                "milestone_type": "Buyers Survey",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3564197090",
            "attributes": {
                "created_at": 1539153389,
                "updated_at": 1539154365,
                "deleted_at": null,
                "completed_at": 1539561600,
                "milestone_type_id": 33,
                "milestone_type": "Mortgage Offer Expected",
                "address_id": 29196478,
                "is_derived": true,
                "excluded": false,
                "origin": 1
            }
        },
        {
            "type": "milestone",
            "id": "3574669469",
            "attributes": {
                "created_at": 1539264850,
                "updated_at": 1539264850,
                "deleted_at": null,
                "completed_at": 1540512000,
                "milestone_type_id": 6,
                "milestone_type": "Proposed Completion",
                "address_id": 29196478,
                "is_derived": false,
                "excluded": false,
                "origin": 1
            }
        }
    ]
}

Retrieving milestones of a given type

Let's say you want to get all SSTC milestones, you can do that by hitting:

   GET https://developers.viewmychain/com/api/v1/milestone_type/1/relationships/milestones

This will return a response as above. Reference

Retriving milestones within a Milestone Group

This is a more complicated endpoint, but it is more performant than potentially loading all the milestones.

  https://developers.viewmychain.com/api/v1/milestone_group/{milestone_group}/branch/{branch}/listing/{listing}/workflow

Where the milestone_group is the id of the milestone group you are interested in, the branch is the branch id you have access to, and the listing is the id of listing you want the milestones for. So for example let's say listing 123456789 is in a chain with your listing, and you wanted all the milestones within the SSTC group for that listing your url would look something like this:

https://developers.viewmychain.com/api/v1/milestone_group/1/branch/1234/listing/123456789/workflow

And will return a collection of milestone types and will also include any available milestones. This endpoint is useful as it tells you which milestone types belong to the group, whether a milestone exists for that type and listing or not.

{
  "data": [
    {
      "type": "milestone_type",
      "id": "1",
      "attributes": {
        "created_at": 1496156086,
        "updated_at": 1526292435,
        "deleted_at": null,
        "name": "SSTC",
        "key": "sstc",
        "sequence": 10,
        "is_default_workflow": true,
        "is_checklist_enabled": true
      },
      "relationships": {
        "milestones": {
          "data": [
            {
              "type": "milestone",
              "id": "3066704445"
            }
          ]
        }
      }
    },
    {
      "type": "milestone_type",
      "id": "26",
      "attributes": {
        "created_at": 1484737167,
        "updated_at": 1484737167,
        "deleted_at": null,
        "name": "Memo Of Sale Sent",
        "key": "memo_of_sale_sent",
        "sequence": 11,
        "is_default_workflow": true,
        "is_checklist_enabled": false
      },
      "relationships": {
        "milestones": {
          "data": []
        }
      }
    },
    {
      "type": "milestone_type",
      "id": "2",
      "attributes": {
        "created_at": 1496156086,
        "updated_at": 1526542876,
        "deleted_at": null,
        "name": "Contracts Underway",
        "key": "draft_contracts_prepared",
        "sequence": 20,
        "is_default_workflow": true,
        "is_checklist_enabled": true
      },
      "relationships": {
        "milestones": {
          "data": [
            {
              "type": "milestone",
              "id": "3376700794"
            }
          ]
        }
      }
    },
    {
      "type": "milestone_type",
      "id": "27",
      "attributes": {
        "created_at": 1484737167,
        "updated_at": 1484737167,
        "deleted_at": null,
        "name": "Solicitors Instructed",
        "key": "solicitors_instructed",
        "sequence": 21,
        "is_default_workflow": true,
        "is_checklist_enabled": false
      },
      "relationships": {
        "milestones": {
          "data": [
            {
              "type": "milestone",
              "id": "3394938720"
            }
          ]
        }
      }
    },
    {
      "type": "milestone_type",
      "id": "28",
      "attributes": {
        "created_at": 1484737167,
        "updated_at": 1484737167,
        "deleted_at": null,
        "name": "Contract Sent",
        "key": "contract_sent",
        "sequence": 22,
        "is_default_workflow": true,
        "is_checklist_enabled": false
      },
      "relationships": {
        "milestones": {
          "data": [
            {
              "type": "milestone",
              "id": "3394938721"
            }
          ]
        }
      }
    },
    {
      "type": "milestone_type",
      "id": "29",
      "attributes": {
        "created_at": 1484737167,
        "updated_at": 1484737167,
        "deleted_at": null,
        "name": "Contract Received",
        "key": "contract_received",
        "sequence": 23,
        "is_default_workflow": true,
        "is_checklist_enabled": false
      },
      "relationships": {
        "milestones": {
          "data": [
            {
              "type": "milestone",
              "id": "3394938722"
            }
          ]
        }
      }
    },
    {
      "type": "milestone_type",
      "id": "30",
      "attributes": {
        "created_at": 1484737167,
        "updated_at": 1484737167,
        "deleted_at": null,
        "name": "Management Pack",
        "key": "management_pack",
        "sequence": 24,
        "is_default_workflow": true,
        "is_checklist_enabled": false
      },
      "relationships": {
        "milestones": {
          "data": [
            {
              "type": "milestone",
              "id": "3394938723"
            }
          ]
        }
      }
    }
  ],
  "included": [
    {
      "type": "milestone",
      "id": "3066704445",
      "attributes": {
        "created_at": 1533279561,
        "updated_at": 1533279624,
        "deleted_at": null,
        "completed_at": 1533081600,
        "milestone_type_id": 1,
        "milestone_type": "SSTC",
        "address_id": 29221455,
        "is_derived": false,
        "excluded": false,
        "origin": 1
      }
    },
    {
      "type": "milestone",
      "id": "3376700794",
      "attributes": {
        "created_at": 1537011628,
        "updated_at": 1537082176,
        "deleted_at": null,
        "completed_at": 1536883200,
        "milestone_type_id": 2,
        "milestone_type": "Contracts Underway",
        "address_id": 29221455,
        "is_derived": true,
        "excluded": false,
        "origin": 1
      }
    },
    {
      "type": "milestone",
      "id": "3394938720",
      "attributes": {
        "created_at": 1537270127,
        "updated_at": 1537270127,
        "deleted_at": null,
        "completed_at": 1537228800,
        "milestone_type_id": 27,
        "milestone_type": "Solicitors Instructed",
        "address_id": 29221455,
        "is_derived": false,
        "excluded": false,
        "origin": 1
      }
    },
    {
      "type": "milestone",
      "id": "3394938721",
      "attributes": {
        "created_at": 1537270129,
        "updated_at": 1537270129,
        "deleted_at": null,
        "completed_at": 1537228800,
        "milestone_type_id": 28,
        "milestone_type": "Contract Sent",
        "address_id": 29221455,
        "is_derived": false,
        "excluded": false,
        "origin": 1
      }
    },
    {
      "type": "milestone",
      "id": "3394938722",
      "attributes": {
        "created_at": 1537270130,
        "updated_at": 1537270130,
        "deleted_at": null,
        "completed_at": 1537228800,
        "milestone_type_id": 29,
        "milestone_type": "Contract Received",
        "address_id": 29221455,
        "is_derived": false,
        "excluded": false,
        "origin": 1
      }
    },
    {
      "type": "milestone",
      "id": "3394938723",
      "attributes": {
        "created_at": 1537270132,
        "updated_at": 1537270132,
        "deleted_at": null,
        "completed_at": 1537228800,
        "milestone_type_id": 30,
        "milestone_type": "Management Pack",
        "address_id": 29221455,
        "is_derived": false,
        "excluded": false,
        "origin": 1
      }
    }
  ]
}