--- http_interactions: - request: method: post uri: https://stage.iwoca-dev.co.uk/api/lending/v1/state/ body: encoding: UTF-8 string: '{"data":{"application":{"company":{"last_12_months_turnover":{"amount":0.0},"registered_company_name":"HOKO LTD","industry":"B | Mining and Quarrying","company_number":"09525857","type":"limited_liability_company","trading_from_date":"2015-05-22","registered_address":{"postcode":"W1T 3NF","street_line_1":"Berners House","street_line_2":"47-48 Berners Street","town":"London","country":"GB"},"vat_status":{"is_vat_registered":true}},"people":[{"uid":"8cf91c8d-7dad-4028-9871-739de9723943","first_name":"Jeremiah","last_name":"DuBuque","date_of_birth":"1982-03-04","roles":["applicant","shareholder","guarantor","director"],"phones":[{"uid":"1ade87a2-8845-4f1d-9441-29adda5f7cb7","number":"+423 01929 32251","type":"primary"}],"emails":[{"uid":"46cc012c-c034-46a8-9bff-10ae92d8a2a2","email":"judith.abernathy@becker.io","type":"primary"}],"residential_addresses":[{"uid":"20304bd8-1425-4c15-87b5-332f2ad1bd97","town":"Port Suzanne","street_line_1":"4581 Kurt Manors","street_line_2":"","country":"GB","postcode":"ZF2 0XR","house_number":"10","residential_status":"owner_no_mortgage"}],"privacy_policy":{"agreed":true,"datetime":"2020-01-23T18:16:33+00:00"}}],"requested_products":{"credit_facility":{"approval":{"amount":123123,"duration":12,"detailed_purpose":"business loan"}}}}}}' headers: Authorization: - Token NOT VALID Content-Type: - application/json User-Agent: - ruby-iwoca-0.1.0 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" response: status: code: 403 message: Forbidden headers: Date: - Thu, 23 Jan 2020 18:16:33 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - '106' Connection: - keep-alive Server: - nginx/1.15.12 X-State-Key: - '' Expires: - Thu, 23 Jan 2020 18:16:33 GMT Cache-Control: - max-age=0, no-cache, no-store, must-revalidate X-Partner: - None X-Content-Type-Options: - nosniff X-Xss-Protection: - 1; mode=block X-Frame-Options: - SAMEORIGIN Vary: - Cookie Set-Cookie: - isLoggedIn=False; Path=/ - sessionid_access=2be3e052-e602-4739-8b59-587c4e6da88c; expires=Fri, 22-Jan-2021 18:16:33 GMT; HttpOnly; Max-Age=31536000; Path=/ - uid=rBEABV4p4wGR4QAhAwwiAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk; path=/ Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: UTF-8 string: '{"errors": [{"code": "PermissionDenied", "detail": "You do not have permission to perform this action."}]}' http_version: recorded_at: Thu, 23 Jan 2020 18:16:33 GMT recorded_with: VCR 5.0.0