---
http_interactions:
- request:
method: post
uri: http://localhost:3000/v1/companies.json
body:
encoding: UTF-8
string: '{"company":{"company_name":"API Created","company_description":"This
company is a test created by the API.","address1":"209 Flax Street","city":"Testville","state":"TX","zip":"43987","phone":"999-777-6666","website":"http://www.nowhere.com","abbreviated_name":"api-created","freetrial_start_date":"2015-11-30
16:19:58 -0800","account_class":"internal"},"company_user":{"first_name":"John","last_name":"Hammond","email":"jhammond@ingen.com","password":"123456789","password_confirmation":"123456789"},"nonce":"2015-12-01
00:19:58 UTC"}'
headers:
User-Agent:
- Faraday v0.9.2
Accept:
- application/json
Content-Type:
- application/json
Authorization:
- Token token="Jz43pwlU1rb4ewhgltWO", signature="10c2b24475ec6ec746d012cb953f6ee7dc948b4df33faf63ddba376edbb5226c"
response:
status:
code: 200
message:
headers:
content-type:
- application/json; charset=utf-8
vary:
- Origin
x-ua-compatible:
- IE=Edge
etag:
- '"dc14f8d3ba84e09741757fd7ec2ceb7c"'
cache-control:
- max-age=0, private, must-revalidate
set-cookie:
- _api_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTdhNzBhMTMyNWFmMTQ5ZDg0NjNmNGMxMjAxYjBkNGQzBjsAVA%3D%3D--fe986b6a4747b2a6e81ff7b47caf5b31d0eabe77;
path=/; HttpOnly
x-request-id:
- 77c7ba22d47872df23fe663adb689d23
x-runtime:
- '0.132751'
connection:
- close
server:
- thin 1.5.1 codename Straight Razor
body:
encoding: UTF-8
string: '{"company_id":42185,"enterprise_id":null,"workflow_system_id":null,"account_level_id":7,"company_name":"API
Created","company_description":"This company is a test created by the API.","address1":"209
Flax Street","address2":null,"city":"Testville","state":"TX","zip":"43987","latitude":null,"longitude":null,"timezone":null,"formatted_address":null,"phone":"9997776666","phone_ext":null,"website":"http://www.nowhere.com","is_active":false,"abbreviated_name":"api-created","freetrial_start_date":"2015-12-01T00:19:58Z","signup_admin_id":null,"signup_ip_addr":null,"account_terminated":false,"termination_date":null,"activation_code":"lYzhGlmQvQEAdt-6ZEsI8A","account_class":"freetrial","promo_id":null,"average_score":0.0,"admin_notes":null,"customer_call_notes":null,"trial_source":"outbound","partner_id":null,"partner_account_id":null,"last_synd_stat_date":null,"last_credit_grant":null,"sales_status":false,"date_live":null,"country":"US","user_notes":null,"enable_referral_marketing":false,"enable_retention_marketing":false,"last_handwritten_review_credit_grant":null,"sugar_lead_id":null,"sugar_account_id":null,"sugar_opportunity_id":null,"created_at":"2015-12-01T00:19:58Z","updated_at":"2015-12-01T00:19:58Z","status":"inactive","sales_user_id":null}'
http_version:
recorded_at: Tue, 01 Dec 2015 00:19:58 GMT
recorded_with: VCR 3.0.0