Examples

PUT /v1/81f0e949-1006-4b75-89c5-a80023d8218d/leads/568a340f-b063-4c97-98fe-99bffa231a96
{
  "lead": {
    "desired_move_in_date": "2022-09-14",
    "notes_attributes": [
      {
        "note": "A shorter note"
      }
    ],
    "tenant_attributes": {
      "first_name": "Joseph"
    }
  }
}
200
{
  "lead": {
    "id": "568a340f-b063-4c97-98fe-99bffa231a96",
    "bilingual_agent": false,
    "caller_first_name": null,
    "caller_last_name": null,
    "cancelled_at": null,
    "closed": false,
    "confirmation_number": null,
    "created_at": "2022-09-12T22:36:37.133-10:00",
    "desired_move_in_date": "2022-09-14",
    "desired_unit_size_and_price": null,
    "due_at_move_in": null,
    "due_monthly": null,
    "extra_details": {},
    "facility_id": "81f0e949-1006-4b75-89c5-a80023d8218d",
    "facility_time_zone": "Hawaii",
    "floor": 2,
    "free_truck": false,
    "has_paid_reservation_fee": null,
    "invoiceable_fees": [],
    "kind": "internet",
    "lead_action_indexes": {},
    "length_of_stay_id": null,
    "move_in_from_reservation_url": null,
    "moved_in_at": null,
    "moving_labor": false,
    "moving_labor_contacted_already": false,
    "next_action_at": "2022-09-12T00:00:00.000-10:00",
    "next_lead_action": null,
    "next_lead_action_index": null,
    "origination": "lead",
    "plant_a_tree": false,
    "quoted_rate": null,
    "rate_type": null,
    "reduced_price": null,
    "reservation_fee_required": null,
    "reservation_window": 0,
    "reserved_at": null,
    "size": null,
    "source_id": "46c87555-dcf8-4219-b9b7-063a6095ade1",
    "source_name": "Test App",
    "standard_rate": null,
    "started_at": "2022-09-12T22:36:37.133-10:00",
    "status": "created",
    "tenant_id": "6757bbfc-107b-43ca-aac2-4e9b967c088b",
    "urgent": false,
    "wait_list": false,
    "wait_list_available": false,
    "within_reservation_window": true,
    "is_upgrade": null,
    "desired_unit_size_and_amenities": null,
    "tenant": {
      "id": "6757bbfc-107b-43ca-aac2-4e9b967c088b",
      "account_number": 1000000,
      "first_name": "Joseph",
      "last_name": "Wehner",
      "middle_initial": null,
      "email": "frankietrantow@stracke.io35",
      "tax_exempt": false,
      "is_military": false,
      "is_business": false,
      "business_name": null,
      "last_sign_in_at": null,
      "title": null,
      "delinquent": false,
      "current_ledger_ids": [],
      "preferences": {
        "email_invoices": true,
        "print_invoices": false,
        "charge_invoice_fee": true,
        "receive_legal_notices_by_email": null,
        "delinquency_exempt": false,
        "delinquency_docs_by_email": false,
        "delinquency_docs_by_mail": false,
        "receive_sms_for_gate_activity": false,
        "opt_in_to_marketing_emails": false,
        "opt_in_to_marketing_sms": false,
        "opt_in_to_transactional_sms": false,
        "exclude_from_insurance_auto_enroll": false,
        "exclude_from_insurance_auto_enroll_reason": null,
        "exclude_from_insurance_auto_enroll_created_by": null,
        "exclude_from_insurance_auto_enroll_on": null
      },
      "military_information": null,
      "username": "username_35",
      "drivers_license_number": null,
      "drivers_license_state": null,
      "vehicle_license_plate_number": null,
      "vehicle_license_state": null,
      "vehicle_description": null,
      "has_tenant_portal_account": false,
      "created_at": "2022-09-12T22:36:37.118-10:00",
      "gate_24_hour_access": false,
      "active": true,
      "tenant_account_kind_name": "Standard",
      "blocked_payments": false,
      "date_of_birth": null,
      "phone_numbers": [],
      "mailing_address": {
        "id": "9b57cf3a-6898-4b3f-9773-93089a726413",
        "address1": "2802629 Barrows Turnpike",
        "address2": null,
        "city": "South Jessie",
        "state": "CT",
        "postal": "39384",
        "country": "US",
        "full_address": "2802629 Barrows Turnpike, South Jessie, CT 39384",
        "latitude": 39.114844,
        "longitude": -94.630169,
        "time_zone_id": "America/New_York",
        "time_zone_offset": "-04:00",
        "invalid_data": false,
        "label": "Home"
      },
      "addresses": [
        {
          "id": "9b57cf3a-6898-4b3f-9773-93089a726413",
          "address1": "2802629 Barrows Turnpike",
          "address2": null,
          "city": "South Jessie",
          "state": "CT",
          "postal": "39384",
          "country": "US",
          "full_address": "2802629 Barrows Turnpike, South Jessie, CT 39384",
          "latitude": 39.114844,
          "longitude": -94.630169,
          "time_zone_id": "America/New_York",
          "time_zone_offset": "-04:00",
          "invalid_data": false,
          "label": "Home"
        }
      ],
      "facility_id": "81f0e949-1006-4b75-89c5-a80023d8218d",
      "previous_ledger_ids": [],
      "closed_lead_ids": [],
      "contact_ids": [],
      "support_case_ids": [],
      "event_ids": [
        "9d667560-cf84-465e-963d-ee1729013bec",
        "7b91e5d6-62fb-48f3-beb2-e2c685923c43"
      ],
      "password_recovery_question_ids": [
        "a81ee65f-0494-4022-aa8d-9638ee448eb5",
        "1749c245-ae7a-4dfe-b3bf-b520b0d4d869"
      ]
    },
    "unit": null,
    "length_of_stay": null,
    "successful_payment_events": [],
    "caller_phone_number": null,
    "unit_amenities": [],
    "current_user": null,
    "unit_type": null,
    "close_reason": null,
    "discount_plans": [],
    "lead_contents": [],
    "unit_group": null,
    "created_by": {
      "id": "46c87555-dcf8-4219-b9b7-063a6095ade1",
      "name": "Test App",
      "type": "Source"
    },
    "channel_id": "46c87555-dcf8-4219-b9b7-063a6095ade1",
    "confirmation_email": null
  },
  "meta": {
    "status_code": 200,
    "status_message": "OK",
    "status_cat": "https://http.cat/200",
    "request_method": "PUT",
    "request_id": null,
    "parameters": {
      "lead": {
        "desired_move_in_date": "2022-09-14",
        "notes_attributes": [
          {
            "note": "A shorter note"
          }
        ],
        "tenant_attributes": {
          "first_name": "Joseph"
        }
      },
      "facility_id": "81f0e949-1006-4b75-89c5-a80023d8218d",
      "id": "568a340f-b063-4c97-98fe-99bffa231a96"
    }
  }
}

Params

Param name Description
lead
required

Value: Must be a Hash
lead[tenant_id]
optional

A tenant record to associate the lead with. Required if tenant_attributes are not given.


Value: Must be a String
lead[tenant_attributes]
optional

Attributes to create a tenant record. Required if tenant_id is not given.


Value: Must be a Hash
lead[tenant_attributes][title]
optional

Value: Must be a String
lead[tenant_attributes][first_name]
required

Value: Must be a String
lead[tenant_attributes][last_name]
optional

Value: Must be a String
lead[tenant_attributes][middle_initial]
optional

Value: Must be a String
lead[tenant_attributes][last_name]
optional

Value: Must be a String
lead[tenant_attributes][email]
optional

Value: Must be a String
lead[tenant_attributes][is_military]
optional

True if the tenant record is a in the military.


Value: Must be one of: <code>true</code>, <code>false</code>.
lead[tenant_attributes][is_business]
optional

True if the tenant record is a commercial entity.


Value: Must be one of: <code>true</code>, <code>false</code>.
lead[tenant_attributes][phone_numbers_attributes]
required

A collection of phone numbers. At least one is required.


Value: Must be an Array of nested elements
lead[tenant_attributes][phone_numbers_attributes][number]
required

Phone number


Value: Must be a String
lead[tenant_attributes][phone_numbers_attributes][extension]
optional

Phone number extension


Value: Must be a String
lead[tenant_attributes][phone_numbers_attributes][label]
optional

A label for what the phone number is, such as Home, Work, Mobile, etc.


Value: Must be a String
lead[tenant_attributes][phone_numbers_attributes][sms_opt_in]
optional

Opt the tenant in to SMS (if applicable). Requires a "Mobile" label for SMS to work correctly.


Value: Must be one of: <code>true</code>, <code>false</code>.
lead[tenant_attributes][mailing_address_attributes]
optional

Value: Must be a Hash
lead[tenant_attributes][mailing_address_attributes][address1]
optional

Value: Must be a String
lead[tenant_attributes][mailing_address_attributes][address2]
optional

Value: Must be a String
lead[tenant_attributes][mailing_address_attributes][city]
optional

Value: Must be a String
lead[tenant_attributes][mailing_address_attributes][state]
optional

Value: Must be a String
lead[tenant_attributes][mailing_address_attributes][postal]
optional

Value: Must be a String
lead[tenant_attributes][mailing_address_attributes][time_zone]
optional

Valid IANA timezone identifier of the address (see http://www.iana.org/time-zones)


Value: Must be a String
lead[unit_id]
optional

The ID of the unit to reserve. Required if is_reservation is true.


Value: Must be a String
lead[online_move_in_url]
optional

The URL the lead can use to complete the move in


Value: Must be a String
lead[id]
optional

The ID of the lead (update only).


Value: Must be a String
lead[is_reservation]
required

Is the lead a reservation?


Value: Must be one of: <code>true</code>, <code>false</code>.
lead[caller_first_name]
optional

First name of the caller, if different from the tenant


Value: Must be a String
lead[caller_last_name]
optional

Last name of the caller, if different from the tenant


Value: Must be a String
lead[urgent]
optional

Value: Must be one of: <code>true</code>, <code>false</code>.
lead[quoted_rate]
optional

Value: Must be a String
lead[length_of_stay_id]
optional

The ID of the length of stay for the lead. You can get a list of length of stays from the company configuration.


Value: Must be a String
lead[size]
optional

Value: Must be a String
lead[floor]
optional

Value: Must be a String
lead[lead_contents]
optional

A collection of marketing content.


Value: Must be an Array of nested elements
lead[lead_contents][id]
optional

The ID of the marketing content for the lead. You can get a list of contents from the company configuration.


Value: Must be a String
lead[desired_move_in_date]
optional

Format: YYYY-MM-DD


Value: Must be a Date
lead[desired_unit_size_and_price]
optional

A String representing the size and price that the user is interested in. Get the possible options from the GET /unit_groups resource.


Value: Must be a String
lead[free_truck]
optional

Interested in a free truck


Value: Must be one of: <code>true</code>, <code>false</code>.
lead[moving_labor]
optional

Interested in having help with moving


Value: Must be one of: <code>true</code>, <code>false</code>.
lead[call_source]
optional

Where the call was initiated from


Value: Must be a String
lead[dnis]
optional

An identifier for the facility the lead was trying to reach - see http://en.wikipedia.org/wiki/Dialed_Number_Identification_Service


Value: Must be a String
lead[close_reason_id]
optional

The ID of the reason for closing the lead. You can get a list of reasons from the company configuration.


Value: Must be a String
lead[lead_action_performed]
optional

The kind of action that was performed on the lead


Value: Must be one of: <code>call</code>, <code>email</code>, <code>text</code>.
lead[lead_action_performed_index]
optional

The numeric value for the action performed (i.e. if this was the second call a "2" would be used)


Value: Must be a Integer
lead[next_lead_action]
optional

The kind of follow up action that will be performed


Value: Must be one of: <code>call</code>, <code>email</code>, <code>text</code>.
lead[notes_attributes]
optional

A collection of notes.


Value: Must be an Array of nested elements
lead[notes_attributes][note]
required

Note body - freeform text


Value: Must be a String
lead[caller_phone_number_attributes]
required

Phone number of the caller, if different from the tenant


Value: Must be a Hash
lead[caller_phone_number_attributes][number]
required

Phone number


Value: Must be a String
lead[caller_phone_number_attributes][extension]
optional

Phone number extension


Value: Must be a String
lead[caller_phone_number_attributes][label]
optional

A label for what the phone number is, such as Home, Work, Mobile, etc.


Value: Must be a String
lead[rate_type]
optional

The type of rate for the unit (ie. standard_rate, managed_rate, custom_rate, or channel_rate).


Value: Must be a String
lead[discount_plans]
optional

Must be an array of nested discount plan ids


Value: Must be an Array of nested elements
lead[discount_plans][id]
optional

The ID of the discount plan to apply.


Value: Must be a String
lead[payment_method]
required

Can accept a paymentmethodid, or fields for CC or ACH payments


Value: Must be a Hash
lead[payment_method][payment_method_id]
optional

If you want to use an existing payment method, pass in the id


Value: Must be a String
lead[payment_method][first_name]
optional

Required if not using an existing payment method


Value: Must be a String
lead[payment_method][last_name]
optional

Required if not using an existing payment method


Value: Must be a String
lead[payment_method][kind]
optional

Required if not using an existing payment method


Value: Must be one of: <code>ach</code>, <code>credit_card</code>, <code>check</code>, <code>cash</code>, <code>card_swipe</code>.
lead[payment_method][reuseable]
optional

Value: Must be one of: <code>true</code>, <code>false</code>.
lead[payment_method][magnetic_track]
optional

Required if using a card swipe


Value: Must be a String
lead[payment_method][card_number]
optional

Required if using a credit card


Value: Must be a String
lead[payment_method][card_type]
optional

Required if using a credit card


Value: Must be one of: <code>visa</code>, <code>mastercard</code>, <code>american_express</code>, <code>diners</code>, <code>discover</code>, <code>jcb</code>.
lead[payment_method][security_code]
optional

Required if using a credit card


Value: Must be a String
lead[payment_method][expiration_date]
optional

Required if using a credit card. Format: MM/YY


Value: Must be a String
lead[payment_method][account_number]
optional

Required if using ACH


Value: Must be a String
lead[payment_method][account_number_confirmation]
optional

Required if using ACH


Value: Must be a String
lead[payment_method][account_type]
optional

Required if using ACH


Value: Must be a String
lead[payment_method][bank_name]
optional

Required if using ACH


Value: Must be a String
lead[payment_method][routing_number]
optional

Required if using ACH


Value: Must be a String
lead[payment_method][billing_address_attributes]
optional

Required if not using an existing payment method


Value: Must be a Hash
lead[payment_method][billing_address_attributes][company]
optional

Value: Must be a String
lead[payment_method][billing_address_attributes][address1]
optional

Value: Must be a String
lead[payment_method][billing_address_attributes][address2]
optional

Value: Must be a String
lead[payment_method][billing_address_attributes][city]
optional

Value: Must be a String
lead[payment_method][billing_address_attributes][postal]
optional

Value: Must be a String
lead[payment_method][billing_address_attributes][state]
optional

Value: Must be a String
lead[payment_method][check_number]
optional

Required if using Check


Value: Must be a String
lead[payment_method][name_on_check]
optional

Required if using Check


Value: Must be a String
lead[payment_method][check_amount]
optional

Required if using Check


Value: Must be a String
lead[payment_method][reference_number]
optional

Required if using Money Order


Value: Must be a String
lead[payment_method][money_order_amount]
optional

Required if using Money Order


Value: Must be a String
lead[payment_method][amount_tendered]
optional

Required if using Cash


Value: Must be a String