--- http_interactions: - request: method: post uri: "/oauth/token" body: encoding: US-ASCII string: grant_type=client_credentials&client_id=&client_secret= headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate Content-Length: - '183' Content-Type: - application/x-www-form-urlencoded User-Agent: - Ruby response: status: code: 200 message: OK headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Cache-Control: - no-store Pragma: - no-cache Content-Type: - application/json; charset=utf-8 Etag: - '"0ae1c7559c2e6b42c16cf59ffd1306ff"' X-Request-Id: - 99d792c5-90fd-4aff-8c3e-d47b5fdd2c07 X-Runtime: - '0.052000' Transfer-Encoding: - chunked body: encoding: UTF-8 string: '{"access_token":"693c423c971de4c621605a60e5dea2f21553f05729864a8061321854ec390071","token_type":"bearer","created_at":1482272218}' http_version: recorded_at: Tue, 20 Dec 2016 22:16:58 GMT - request: method: get uri: "/api/v1/commodity_merchandising/contracts.json?q%5Bcustomer_id_eq%5D=100001" body: encoding: US-ASCII string: '' headers: Authorization: - Bearer 693c423c971de4c621605a60e5dea2f21553f05729864a8061321854ec390071 response: status: code: 200 message: OK headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Content-Type: - application/json; charset=utf-8 Etag: - '"c055d2733ad6698948cb11bae30ff1d9"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 84372fb6-cf16-4f04-af53-1ad6fbdb9fe8 X-Runtime: - '0.096000' Transfer-Encoding: - chunked body: encoding: UTF-8 string: '[{"contract_id":"0010000100P","customer_id":100001,"commodity_id":1004,"inv_contract_id":"10000100","location_id":1,"contract_number":100001,"price":378.0,"freight_adjustment":6.0,"commodity":{"commodity_id":1004,"description":"laudantium 4","conversion_factor":2000},"unit_of_measure":{"uom_id":5,"description":"cupiditate 5"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":100000.0,"delivered_quantity":51985.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010000200P","customer_id":100001,"commodity_id":1002,"inv_contract_id":"10000200","location_id":2,"contract_number":100002,"price":255.0,"freight_adjustment":7.0,"commodity":{"commodity_id":1002,"description":"sunt 2","conversion_factor":56},"unit_of_measure":{"uom_id":7,"description":"sapiente 7"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":50000.0,"delivered_quantity":13090.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010000300S","customer_id":100001,"commodity_id":1001,"inv_contract_id":"10000300","location_id":3,"contract_number":100003,"price":349.0,"freight_adjustment":6.0,"commodity":{"commodity_id":1001,"description":"et 1","conversion_factor":56},"unit_of_measure":{"uom_id":9,"description":"modi 9"},"contract_date":"2016-12-20","contract_type":"Sale","quantity":50000.0,"delivered_quantity":22587.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010000400P","customer_id":100001,"commodity_id":1004,"inv_contract_id":"10000400","location_id":4,"contract_number":100004,"price":203.0,"freight_adjustment":0.0,"commodity":{"commodity_id":1004,"description":"laudantium 4","conversion_factor":2000},"unit_of_measure":{"uom_id":11,"description":"occaecati 11"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":100000.0,"delivered_quantity":42224.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010000500P","customer_id":100001,"commodity_id":1002,"inv_contract_id":"10000500","location_id":5,"contract_number":100005,"price":215.0,"freight_adjustment":0.0,"commodity":{"commodity_id":1002,"description":"sunt 2","conversion_factor":56},"unit_of_measure":{"uom_id":13,"description":"rem 13"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":50000.0,"delivered_quantity":48004.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010000600P","customer_id":100001,"commodity_id":1002,"inv_contract_id":"10000600","location_id":6,"contract_number":100006,"price":269.0,"freight_adjustment":7.0,"commodity":{"commodity_id":1002,"description":"sunt 2","conversion_factor":56},"unit_of_measure":{"uom_id":15,"description":"at 15"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":100000.0,"delivered_quantity":20011.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010000700P","customer_id":100001,"commodity_id":1001,"inv_contract_id":"10000700","location_id":7,"contract_number":100007,"price":331.0,"freight_adjustment":0.0,"commodity":{"commodity_id":1001,"description":"et 1","conversion_factor":56},"unit_of_measure":{"uom_id":17,"description":"aliquam 17"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":50000.0,"delivered_quantity":11840.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010000800P","customer_id":100001,"commodity_id":1003,"inv_contract_id":"10000800","location_id":8,"contract_number":100008,"price":304.0,"freight_adjustment":6.0,"commodity":{"commodity_id":1003,"description":"natus 3","conversion_factor":56},"unit_of_measure":{"uom_id":19,"description":"quia 19"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":100000.0,"delivered_quantity":47574.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010000900P","customer_id":100001,"commodity_id":1002,"inv_contract_id":"10000900","location_id":9,"contract_number":100009,"price":226.0,"freight_adjustment":0.0,"commodity":{"commodity_id":1002,"description":"sunt 2","conversion_factor":56},"unit_of_measure":{"uom_id":21,"description":"ipsa 21"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":100000.0,"delivered_quantity":72657.0,"from_date":"2016-12-20","to_date":"2017-12-20"},{"contract_id":"0010001000P","customer_id":100001,"commodity_id":1005,"inv_contract_id":"10001000","location_id":10,"contract_number":100010,"price":295.0,"freight_adjustment":5.0,"commodity":{"commodity_id":1005,"description":"ipsum 5","conversion_factor":2000},"unit_of_measure":{"uom_id":23,"description":"dolorem 23"},"contract_date":"2016-12-20","contract_type":"Purchase","quantity":100000.0,"delivered_quantity":90928.0,"from_date":"2016-12-20","to_date":"2017-12-20"}]' http_version: recorded_at: Tue, 20 Dec 2016 22:16:58 GMT - request: method: get uri: "/api/v1/commodity_merchandising/contracts.json?q%5Bcontract_type_eq%5D=S&q%5Bcustomer_id_eq%5D=100001" body: encoding: US-ASCII string: '' headers: Authorization: - Bearer 693c423c971de4c621605a60e5dea2f21553f05729864a8061321854ec390071 response: status: code: 200 message: OK headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Content-Type: - application/json; charset=utf-8 Etag: - '"6568bcf4945b4fb3266f95ed24085cf9"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 7c0a453c-d117-4b39-9b23-4f513d204072 X-Runtime: - '0.056000' Transfer-Encoding: - chunked body: encoding: UTF-8 string: '[{"contract_id":"0010000300S","customer_id":100001,"commodity_id":1001,"inv_contract_id":"10000300","location_id":3,"contract_number":100003,"price":349.0,"freight_adjustment":6.0,"commodity":{"commodity_id":1001,"description":"et 1","conversion_factor":56},"unit_of_measure":{"uom_id":9,"description":"modi 9"},"contract_date":"2016-12-20","contract_type":"Sale","quantity":50000.0,"delivered_quantity":22587.0,"from_date":"2016-12-20","to_date":"2017-12-20"}]' http_version: recorded_at: Tue, 20 Dec 2016 22:21:27 GMT recorded_with: VCR 3.0.1