Skip to content

Instantly share code, notes, and snippets.

@kru
Created May 19, 2017 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kru/ee9c44a99eef21a88811e1ec737be14b to your computer and use it in GitHub Desktop.
Save kru/ee9c44a99eef21a88811e1ec737be14b to your computer and use it in GitHub Desktop.
response from the endpoint staging
{
"data": {
"type": "persons",
"id": "52",
"attributes": {
"prefix": "Dr.",
"first_name": "Carley",
"middle_name": "Rosemarie",
"last_name": "McClure",
"preferred_name": "Darrion McClure",
"legal_name": "Darrion Rosemarie McClure",
"suffix": "DVM",
"date_of_birth": "1984-08-21",
"contact_types": [
"buyer"
],
"motivations": [
"moving-up",
"personal"
],
"primary_motivation_note": "3",
"is_pre_approved": true,
"is_primary": true,
"status": 1,
"profile_photo": "",
"stage": "lead",
"lead_type": "own",
"is_starred": false,
"available_to_contact_date": null,
"buyer_type": null,
"pre_approved_amount": null,
"number_in_household": null,
"background_info": null,
"touch_count": null,
"initial_contact_date": "1999-05-22 11:48:47",
"last_contact_date": null,
"created_at": "2017-05-19 03:33:38",
"updated_at": "2017-05-19 15:47:16",
"company_name": "Pouros-Bergstrom",
"company_address": "779 Hermiston Green\nSouth Carlee, MA 74445",
"company_title": "Armored Assault Vehicle Officer",
"company_department": "Sales",
"primary_email": null,
"primary_phone": "+1 514-794-7203"
},
"links": {
"self": "http://hydrogen-crm-dev-1439781149.us-east-1.elb.amazonaws.com/api/v1/persons/52"
},
"relationships": {
"object-custom-fields": {
"links": {
"self": "http://hydrogen-crm-dev-1439781149.us-east-1.elb.amazonaws.com/api/v1/persons/52/relationships/object-custom-fields",
"related": "http://hydrogen-crm-dev-1439781149.us-east-1.elb.amazonaws.com/api/v1/persons/52/object-custom-fields"
},
"data": [
{
"type": "object-custom-fields",
"id": "62"
},
{
"type": "object-custom-fields",
"id": "63"
},
{
"type": "object-custom-fields",
"id": "64"
}
]
}
}
},
"included": [
{
"type": "object-custom-fields",
"id": "63",
"attributes": {
"object_id": "52",
"object_type": "persons",
"custom_field_value": "2019-18-07"
},
"links": {
"self": "http://hydrogen-crm-dev-1439781149.us-east-1.elb.amazonaws.com/api/v1/object-custom-fields/63"
}
}
],
"meta": {
"constants": {
"ES": [
{
"id": "es_interactions",
"label": "INTERACTIONS"
},
{
"id": "es_addresses",
"label": "ADDRESSES"
},
{
"id": "contact_type_ids",
"label": "CONTACT_TYPE_KEY"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment