diff --git a/.travis.yml b/.travis.yml index 8f004cd..8fefecd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ rvm: - 2.3 - 2.4 - 2.5 + - 2.6 script: "gem install bundler --no-ri --no-rdoc; bundle exec rspec" notifications: slack: diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ce6729..13b2e87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +#### 4.0.0 release, Sep 5th, 2019 +- [Allow multiple accounts in a single service/application](https://github.com/goshippo/shippo-ruby-client/pull/74) +- [Updated rest client depndency](https://github.com/goshippo/shippo-ruby-client/pull/91) +- [Remove json dependency](https://github.com/goshippo/shippo-ruby-client/pull/90) +- [Fix require relative issues](https://github.com/goshippo/shippo-ruby-client/pull/90) +- [Fix shipment create parcel -> parcels](https://github.com/goshippo/shippo-ruby-client/pull/86) +- [Fix rate call for Shipments](https://github.com/goshippo/shippo-ruby-client/pull/83) + #### 3.1.0 release, Sep 11th, 2017 - Removed deprecated methods - Removed hash payload in GET @@ -36,13 +44,13 @@ #### 2.0.5 release, Oct 24th, 2016 - Updated README.md - now possible to send API version - + #### 2.0.4 release, Oct 6th 2016 - Rails5 Compatibility via relaxed dependencies - removing mime-types dependency - relaxing activesupport to allow version 5 - reorganizing exceptions to enable subclassing with additional parameters and more readable #to_s method - - adding bin/console for easy irb-ing + - adding bin/console for easy irb-ing #### 2.0.3 release, Oct 3rd 2016 @@ -51,9 +59,9 @@ #### 2.0.2 release, Aug 17th 2016 - Removed gem dependency `colored2` as directly decorating object and string was causing Rals Rack to throw errors when users uploaded large files. - - Fixed url for `CarrierAccount` + - Fixed url for `CarrierAccount` - README fixes - + #### 2.0.0-beta July 7th, 2016 - Added a concept of List transformer in order to properly coerce diff --git a/lib/shippo/api/version.rb b/lib/shippo/api/version.rb index e717205..ab875f4 100644 --- a/lib/shippo/api/version.rb +++ b/lib/shippo/api/version.rb @@ -1,5 +1,5 @@ module Shippo module API - VERSION = '3.1.0' + VERSION = '4.0.0' end end diff --git a/shippo.gemspec b/shippo.gemspec index 38882d5..c5d6393 100644 --- a/shippo.gemspec +++ b/shippo.gemspec @@ -16,8 +16,7 @@ Gem::Specification.new do |spec| spec.license = 'MIT' spec.metadata = { 'shippo_documentation' => 'https://goshippo.com/docs/' } - spec.add_dependency 'rest-client', '>= 2.0', '<2.2' - spec.add_dependency 'json', '~> 1.8' + spec.add_dependency 'rest-client', '>= 2.1', '<2.2' spec.add_dependency 'hashie', '>= 3.5.2' spec.add_dependency 'activesupport', '>= 4' spec.add_dependency 'awesome_print' @@ -28,6 +27,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'guard-rspec' spec.add_development_dependency 'yard' spec.add_development_dependency 'rspec', '~> 3.4' - spec.add_development_dependency 'webmock', '~> 2.1' + spec.add_development_dependency 'webmock', '~> 3.7.2' spec.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.3' end diff --git a/spec/fixtures/batch/test_add.yml b/spec/fixtures/batch/test_add.yml index dc0d330..5a55445 100644 --- a/spec/fixtures/batch/test_add.yml +++ b/spec/fixtures/batch/test_add.yml @@ -1,70 +1,5 @@ --- http_interactions: -- request: - method: post - uri: https://api.goshippo.com/batches/ - body: - encoding: UTF-8 - string: '{"default_carrier_account":"903074429eab4954b72df8a70defdfe3","default_servicelevel_token":"usps_priority","label_filetype":"ZPLII","metadata":"BATCH - #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 - Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon - Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San - Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon - Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San - Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Content-Type: - - application/json - Authorization: - - "" - Shippo-Api-Version: - - '2017-03-29' - Content-Length: - - '2244' - User-Agent: - - Ruby - response: - status: - code: 201 - message: CREATED - headers: - Allow: - - OPTIONS - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Fri, 31 Mar 2017 00:34:55 GMT - P3p: - - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" - Server: - - nginx/1.8.0 - Vary: - - Host, Cookie, Accept-Encoding - Content-Length: - - '350' - Connection: - - keep-alive - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAC+k3VgC/42RyU7DMBRFf6UKW1o5iVM3XVFAgkgVYlGxKEKR7bxQgxtbHgpV1X/HDnRggcTOvve8wde7RLE34K4WTTIdJAVJORqzCW5SgkvKJkWKMcXjtC0ZTDKSXA4OBeqjAxNrHFh39arsSmit4mXE1TqC1lHnbUSeZvPqdraoHu7OGnAD1EE/NkMpGaJ8mKcLhKY5nhbFKEd4eUZ73fyHXoOjAaSRu54tbu4HFylB0WmgpV6GsdQYAaamnCvfuQiWKEcE46wEynBZYEaypp1QgkJN00J+Xm7BbAQHCRuQtVPv0MUO3mpbayOUEW4bcUlZ8FshwW01RGT5OK+qaDHq+KqOca2hczGfXXJYBQW/g8947LyU4aYNbITqY/xRDNiwSBSeX/angE7yLtHe8BW1UFvPOUDT5xZ7H42WhtUOav8TQnV/qL+a7I+P80Z+7/AF4v0x7kQCAAA= - http_version: - recorded_at: Fri, 31 Mar 2017 00:34:56 GMT - request: method: get uri: https://api.goshippo.com/batches/571c06b84d1749ab85144a461f9be827 @@ -567,14 +502,10 @@ http_interactions: recorded_at: Fri, 31 Mar 2017 00:35:10 GMT - request: method: post - uri: https://api.goshippo.com/shipments/ + uri: https://api.goshippo.com/batches/571c06b84d1749ab85144a461f9be827/add_shipments body: encoding: UTF-8 - string: '{"address_to":{"name":"First Last","company":"","street1":"965 Mission - St","street2":"#123","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_from":{"name":"Amazon - Fulfillment Services","company":"Returns Departments","street1":"400 Simon - St","street2":"123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"parcel":{"length":"10","width":"15","height":"10","distance_unit":"in","weight":"15","mass_unit":"oz","metadata":""},"extra":{"reference_1":"REF1 - - Simon","reference_2":"REF2 - Says"}}' + string: '[{"shipment":"75d10ef32023481aa34aa3f74e78aff5"}]' headers: Accept: - application/json @@ -587,13 +518,13 @@ http_interactions: Shippo-Api-Version: - '2017-03-29' Content-Length: - - '635' + - '49' User-Agent: - Ruby response: status: - code: 201 - message: CREATED + code: 200 + message: OK headers: Allow: - OPTIONS @@ -610,26 +541,41 @@ http_interactions: Vary: - Host, Cookie, Accept-Encoding Content-Length: - - '690' + - '586' Connection: - keep-alive body: encoding: ASCII-8BIT string: !binary |- - H4sIAD6k3VgC/+1US0/cMBD+K1F6hZXjOMlmT0UFpEr0ULb0QFVFs/Zk11ViR7YDBdT/Xjv7SKBIFKlVL42Uwzw9830z8xBzMEaiqYBz3Stn40X05etRFOvVN+Su4gbBofDamJKkOCbpcZp8ImSRZgtSzsp5dh2P3n0nXuEtB8ciEwnBOqWEpmyeAKTM/3XBsJhDXWeTAH2r0IQYh9a9XWu7kV2ngzDjug2O1oHrQw/xx6uzq7PToAMhDFpb1cb7LKKHx8/XWVmQvKzZfLVimCMUAmhdrCgreUZoETJIW/n8XYMOfYgzPXqlgjZI8UkL91pF531Ty6ZpUbloieZGcrQhNgSCuguel+h6o2x0ih0YFzzttmaD6Cqlg8+oSILICImWsvX5ly6YbqCRHmKpVeV76puBr4cfhyAaghKajmnSfVYu3VDFEnyxBhSXlus9ZkMn706CeC+7IJQsIXTbgB8LM4ReLYOi22g1+LMk80+xLN+D5EuSwrclofF21TfN0ZarHWo/Jmw4/SsXfJXmIl8JmieCJXU+JxRoVjDORY2EJS9ycS6NddEFWPcE+pdwLvMs+iCtla9D+s0fgzr9C1D7KePYTGE+vP/55OL96WSzXlpzxn53zRMyI/SZNRdzRlhWl5jnBRMlzPO09OTmwFJaeOJfteYO/QRsW9m1jt+dgT1DDaq12wyrkM2I/0LMrRQ7HTnoNijXG/dEKaSHSXGseiUHm1RD/Og7Jm3Bj/LeT9/vBqfHCtrA5VjfVst7Y1Dxu1HfogMPJuxHp5EKK+n7OxziJ6QGMMLpqMSOyuf5Sq+np88Ml+f/8fvXx4/31unWVgJ5A2Zo5ZkRjg3WGOYEqwGHy7PzJDreQhEeG810Z6bBDHc2Do/4vHiYntbTD+up/HjepgX+BJ/0QSUNCAAA + H4sIAD6k3VgC/8VUTW8UMQz9K9VybSsncb72RIEDlXrgUHEAoZWTOO3A7M5oPgrVqv+dZOnCVlBpL6iHkSb2e46fHXu76MJXjtOqSYvlyUJbEcEEh0lY9BScFoiERmQf2Em7OD3ZE7rvGx4qZ+Jxen3TjbdN33f1cB67dQWOE03zWCEfL64u3x1w48A08e5GCcKegTpT4hpgqXCp9bkC/HSAnvv0DFovBZwb53foNU9UgFRxby6u374/eSUsVE/iTHNbrqVhaHhYUYzdvJkq0IMCiyg9U0CvMViZsiMLhZMyq0P6yMNdE7nlO25XU/eNNzXCPPbjqh+abmim+wpvKRR/blqe7nuukE8fri4vqyvQFG9XtVJr3ky1NNvFPhUs/g3/qL+buW3LqR/4rul2FXy0DDyWRKrh8/aJ3hr8b3WPrH/mvfc95lKDCOUlYwSbfUZDSC4LF2MEDpwAdrWYBtqMFKemOwjy5AmRkc5qKbKTHlEBgXFKgOXoobQvPPMy1jyOdMM7bV8eTk/+gz5wFo2WiowiDDk4JmDlHZe0gIU8Th9rF8ps5BSlwML0FpU2udSHFQRIL6cvoxbGgFcqAZaekbMOlfMhosxSi+P0BemECVoloxOS9cGklEPWSQvhgOLL6bM6lT5lJUEqdIJIYfmyRbaOctbH6TMoLSvpvCdZ5r7stcg5JysSgY/WHqWvKtyH/TOU20U/D/GWRl6Nc4zMabe1oM7y3pGpLIa9dbcHS6rPWA+D4MPv1TIP7a8sfgJ56oVRvQUAAA== http_version: recorded_at: Fri, 31 Mar 2017 00:35:11 GMT - request: method: post - uri: https://api.goshippo.com/batches/571c06b84d1749ab85144a461f9be827/add_shipments + uri: https://api.goshippo.com/batches/ body: encoding: UTF-8 - string: '[{"shipment":"75d10ef32023481aa34aa3f74e78aff5"}]' + string: '{"default_carrier_account":"903074429eab4954b72df8a70defdfe3","default_servicelevel_token":"usps_priority","label_filetype":"ZPLII","metadata":"BATCH + #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 + Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San + Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San + Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json Authorization: @@ -637,36 +583,848 @@ http_interactions: Shippo-Api-Version: - '2017-03-29' Content-Length: - - '49' + - '2253' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 201 + message: Created + headers: + Date: + - Thu, 12 Sep 2019 17:35:30 GMT + Content-Type: + - application/json + Content-Length: + - '359' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '88' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:30.273Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:30 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json User-Agent: - - Ruby + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com response: status: code: 200 message: OK headers: + Date: + - Thu, 12 Sep 2019 17:35:31 GMT + Content-Type: + - application/json + Content-Length: + - '359' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding Allow: - OPTIONS - Content-Encoding: - - gzip + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '31' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:30.273Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:31 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: Date: - - Fri, 31 Mar 2017 00:35:10 GMT + - Thu, 12 Sep 2019 17:35:33 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS P3p: - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '88' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:33 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:34 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive Server: - - nginx/1.8.0 + - nginx/1.12.1 + Content-Language: + - en-us Vary: - - Host, Cookie, Accept-Encoding + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '84' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:34 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:36 GMT + Content-Type: + - application/json Content-Length: - - '586' + - '588' Connection: - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '92' body: encoding: ASCII-8BIT - string: !binary |- - H4sIAD6k3VgC/8VUTW8UMQz9K9VybSsncb72RIEDlXrgUHEAoZWTOO3A7M5oPgrVqv+dZOnCVlBpL6iHkSb2e46fHXu76MJXjtOqSYvlyUJbEcEEh0lY9BScFoiERmQf2Em7OD3ZE7rvGx4qZ+Jxen3TjbdN33f1cB67dQWOE03zWCEfL64u3x1w48A08e5GCcKegTpT4hpgqXCp9bkC/HSAnvv0DFovBZwb53foNU9UgFRxby6u374/eSUsVE/iTHNbrqVhaHhYUYzdvJkq0IMCiyg9U0CvMViZsiMLhZMyq0P6yMNdE7nlO25XU/eNNzXCPPbjqh+abmim+wpvKRR/blqe7nuukE8fri4vqyvQFG9XtVJr3ky1NNvFPhUs/g3/qL+buW3LqR/4rul2FXy0DDyWRKrh8/aJ3hr8b3WPrH/mvfc95lKDCOUlYwSbfUZDSC4LF2MEDpwAdrWYBtqMFKemOwjy5AmRkc5qKbKTHlEBgXFKgOXoobQvPPMy1jyOdMM7bV8eTk/+gz5wFo2WiowiDDk4JmDlHZe0gIU8Th9rF8ps5BSlwML0FpU2udSHFQRIL6cvoxbGgFcqAZaekbMOlfMhosxSi+P0BemECVoloxOS9cGklEPWSQvhgOLL6bM6lT5lJUEqdIJIYfmyRbaOctbH6TMoLSvpvCdZ5r7stcg5JysSgY/WHqWvKtyH/TOU20U/D/GWRl6Nc4zMabe1oM7y3pGpLIa9dbcHS6rPWA+D4MPv1TIP7a8sfgJ56oVRvQUAAA== + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' http_version: - recorded_at: Fri, 31 Mar 2017 00:35:11 GMT + recorded_at: Thu, 12 Sep 2019 17:35:36 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:37 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '99' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:37 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:38 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '76' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:39 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:40 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '61' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:40 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:41 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '96' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:41 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:43 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '67' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:43 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:44 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '80' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:32.686Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:44 GMT +- request: + method: post + uri: https://api.goshippo.com/shipments/ + body: + encoding: UTF-8 + string: '{"address_to":{"name":"First Last","company":"","street1":"965 Mission + St","street2":"#123","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_from":{"name":"Amazon + Fulfillment Services","company":"Returns Departments","street1":"400 Simon + St","street2":"123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"parcels":[{"length":"10","width":"15","height":"10","distance_unit":"in","weight":"15","mass_unit":"oz","metadata":""}],"extra":{"reference_1":"REF1 + - Simon","reference_2":"REF2 - Says"}}' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '638' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 201 + message: Created + headers: + Date: + - Thu, 12 Sep 2019 17:35:46 GMT + Content-Type: + - application/json + Content-Length: + - '1371' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '987' + body: + encoding: ASCII-8BIT + string: !binary |- + eyJjYXJyaWVyX2FjY291bnRzIjogW10sICJvYmplY3RfY3JlYXRlZCI6ICIyMDE5LTA5LTEyVDE3OjM1OjQ1LjE4OVoiLCAib2JqZWN0X3VwZGF0ZWQiOiAiMjAxOS0wOS0xMlQxNzozNTo0NS4yODhaIiwgIm9iamVjdF9pZCI6ICJkMWI1YWFmZWRlZDQ0Y2I0OGZmYWMyMGFhNTRmNTg3ZSIsICJvYmplY3Rfb3duZXIiOiAidGVzdEBnb3NoaXBwb3Rlc3QuY29tIiwgInN0YXR1cyI6ICJTVUNDRVNTIiwgImFkZHJlc3NfZnJvbSI6IHsib2JqZWN0X2lkIjogImZlMTQyYTcxYTk1ODRlYzk4NTI0ZDU4NWQzZmZkM2FhIiwgImlzX2NvbXBsZXRlIjogdHJ1ZSwgIm5hbWUiOiAiQW1hem9uIEZ1bGZpbGxtZW50IFNlcnZpY2VzIiwgImNvbXBhbnkiOiAiUmV0dXJucyBEZXBhcnRtZW50cyIsICJzdHJlZXRfbm8iOiAiIiwgInN0cmVldDEiOiAiNDAwIFNpbW9uIFN0IiwgInZhbGlkYXRpb25fcmVzdWx0cyI6IHt9LCAic3RyZWV0MiI6ICIxMjMiLCAic3RyZWV0MyI6ICIiLCAiY2l0eSI6ICJTYW4gRnJhbmNpc2NvIiwgInN0YXRlIjogIkNBIiwgInppcCI6ICI5NDEwMiIsICJjb3VudHJ5IjogIlVTIiwgInBob25lIjogIjQxNTEyMzQ1NjciLCAiZW1haWwiOiAiaGlwcG9AZ29zaGlwcG8uY29tIiwgImlzX3Jlc2lkZW50aWFsIjogbnVsbCwgInRlc3QiOiB0cnVlfSwgImFkZHJlc3NfdG8iOiB7Im9iamVjdF9pZCI6ICJjY2U1Njg4OGQ2N2Q0ZWI0OTgyZGFjZGZlZDY2YzY1NiIsICJpc19jb21wbGV0ZSI6IHRydWUsICJuYW1lIjogIkZpcnN0IExhc3QiLCAiY29tcGFueSI6ICIiLCAic3RyZWV0X25vIjogIiIsICJzdHJlZXQxIjogIjk2NSBNaXNzaW9uIFN0IiwgInZhbGlkYXRpb25fcmVzdWx0cyI6IHt9LCAic3RyZWV0MiI6ICIjMTIzIiwgInN0cmVldDMiOiAiIiwgImNpdHkiOiAiU2FuIEZyYW5jaXNjbyIsICJzdGF0ZSI6ICJDQSIsICJ6aXAiOiAiOTQxMDMiLCAiY291bnRyeSI6ICJVUyIsICJwaG9uZSI6ICI0MTUxMjM0NTY3IiwgImVtYWlsIjogImhpcHBvQGdvc2hpcHBvLmNvbSIsICJpc19yZXNpZGVudGlhbCI6IG51bGwsICJ0ZXN0IjogdHJ1ZX0sICJwYXJjZWxzIjogW3sib2JqZWN0X3N0YXRlIjogIlZBTElEIiwgIm9iamVjdF9jcmVhdGVkIjogIjIwMTktMDktMTJUMTc6MzU6NDUuMTQzWiIsICJvYmplY3RfdXBkYXRlZCI6ICIyMDE5LTA5LTEyVDE3OjM1OjQ1LjIxM1oiLCAib2JqZWN0X2lkIjogIjU1YjEzNWZjNDQ0ZjRlZDI5NzExMGJkOTc2MjI2ZDY1IiwgIm9iamVjdF9vd25lciI6ICJ0ZXN0QGdvc2hpcHBvdGVzdC5jb20iLCAidGVtcGxhdGUiOiBudWxsLCAiZXh0cmEiOiB7fSwgImxlbmd0aCI6ICIxNS4wMDAwIiwgIndpZHRoIjogIjEwLjAwMDAiLCAiaGVpZ2h0IjogIjEwLjAwMDAiLCAiZGlzdGFuY2VfdW5pdCI6ICJpbiIsICJ3ZWlnaHQiOiAiMTUuMDAwMCIsICJtYXNzX3VuaXQiOiAib3oiLCAidmFsdWVfYW1vdW50IjogbnVsbCwgInZhbHVlX2N1cnJlbmN5IjogbnVsbCwgIm1ldGFkYXRhIjogIiIsICJsaW5lX2l0ZW1zIjogW10sICJ0ZXN0IjogdHJ1ZX1dLCAic2hpcG1lbnRfZGF0ZSI6ICIyMDE5LTA5LTEyVDE3OjM1OjQ1LjI4OFoiLCAiYWRkcmVzc19yZXR1cm4iOiB7Im9iamVjdF9pZCI6ICJmZTE0MmE3MWE5NTg0ZWM5ODUyNGQ1ODVkM2ZmZDNhYSIsICJpc19jb21wbGV0ZSI6IHRydWUsICJuYW1lIjogIkFtYXpvbiBGdWxmaWxsbWVudCBTZXJ2aWNlcyIsICJjb21wYW55IjogIlJldHVybnMgRGVwYXJ0bWVudHMiLCAic3RyZWV0X25vIjogIiIsICJzdHJlZXQxIjogIjQwMCBTaW1vbiBTdCIsICJ2YWxpZGF0aW9uX3Jlc3VsdHMiOiB7fSwgInN0cmVldDIiOiAiMTIzIiwgInN0cmVldDMiOiAiIiwgImNpdHkiOiAiU2FuIEZyYW5jaXNjbyIsICJzdGF0ZSI6ICJDQSIsICJ6aXAiOiAiOTQxMDIiLCAiY291bnRyeSI6ICJVUyIsICJwaG9uZSI6ICI0MTUxMjM0NTY3IiwgImVtYWlsIjogImhpcHBvQGdvc2hpcHBvLmNvbSIsICJpc19yZXNpZGVudGlhbCI6IG51bGwsICJ0ZXN0IjogdHJ1ZX0sICJjdXN0b21zX2RlY2xhcmF0aW9uIjogbnVsbCwgImV4dHJhIjogeyJyZWZlcmVuY2VfMSI6ICJSRUYxIC0gU2ltb24iLCAicmVmZXJlbmNlXzIiOiAiUkVGMiAtIFNheXMifSwgInJhdGVzIjogW3sib2JqZWN0X2NyZWF0ZWQiOiAiMjAxOS0wOS0xMlQxNzozNTo0NS42MDBaIiwgIm9iamVjdF9pZCI6ICJhZjU3NWZlMWIxMDQ0ZWJlYjY2M2IzY2FhM2FiNjIyNyIsICJvYmplY3Rfb3duZXIiOiAidGVzdEBnb3NoaXBwb3Rlc3QuY29tIiwgInNoaXBtZW50IjogImQxYjVhYWZlZGVkNDRjYjQ4ZmZhYzIwYWE1NGY1ODdlIiwgImF0dHJpYnV0ZXMiOiBbIkZBU1RFU1QiXSwgImFtb3VudCI6ICIyMi43NCIsICJjdXJyZW5jeSI6ICJVU0QiLCAiYW1vdW50X2xvY2FsIjogIjIyLjc0IiwgImN1cnJlbmN5X2xvY2FsIjogIlVTRCIsICJwcm92aWRlciI6ICJVU1BTIiwgInByb3ZpZGVyX2ltYWdlXzc1IjogImh0dHBzOi8vc2hpcHBvLXN0YXRpYy5zMy5hbWF6b25hd3MuY29tL3Byb3ZpZGVycy83NS9VU1BTLnBuZyIsICJwcm92aWRlcl9pbWFnZV8yMDAiOiAiaHR0cHM6Ly9zaGlwcG8tc3RhdGljLnMzLmFtYXpvbmF3cy5jb20vcHJvdmlkZXJzLzIwMC9VU1BTLnBuZyIsICJzZXJ2aWNlbGV2ZWwiOiB7Im5hbWUiOiAiUHJpb3JpdHkgTWFpbCBFeHByZXNzIiwgInRva2VuIjogInVzcHNfcHJpb3JpdHlfZXhwcmVzcyIsICJ0ZXJtcyI6ICIifSwgImRheXMiOiAyLCAiYXJyaXZlc19ieSI6IG51bGwsICJkdXJhdGlvbl90ZXJtcyI6ICJPdmVybmlnaHQgZGVsaXZlcnkgdG8gbW9zdCBVLlMuIGxvY2F0aW9ucy4iLCAibWVzc2FnZXMiOiBbXSwgImNhcnJpZXJfYWNjb3VudCI6ICI5MDMwNzQ0MjllYWI0OTU0YjcyZGY4YTcwZGVmZGZlMyIsICJ0ZXN0IjogdHJ1ZSwgInpvbmUiOiAiMSJ9LCB7Im9iamVjdF9jcmVhdGVkIjogIjIwMTktMDktMTJUMTc6MzU6NDUuNTk5WiIsICJvYmplY3RfaWQiOiAiMzYzZjMwMjcyOGM3NDBlMjhiNmFiZGU4ZjBjMzI2NDgiLCAib2JqZWN0X293bmVyIjogInRlc3RAZ29zaGlwcG90ZXN0LmNvbSIsICJzaGlwbWVudCI6ICJkMWI1YWFmZWRlZDQ0Y2I0OGZmYWMyMGFhNTRmNTg3ZSIsICJhdHRyaWJ1dGVzIjogWyJGQVNURVNUIl0sICJhbW91bnQiOiAiNi45NSIsICJjdXJyZW5jeSI6ICJVU0QiLCAiYW1vdW50X2xvY2FsIjogIjYuOTUiLCAiY3VycmVuY3lfbG9jYWwiOiAiVVNEIiwgInByb3ZpZGVyIjogIlVTUFMiLCAicHJvdmlkZXJfaW1hZ2VfNzUiOiAiaHR0cHM6Ly9zaGlwcG8tc3RhdGljLnMzLmFtYXpvbmF3cy5jb20vcHJvdmlkZXJzLzc1L1VTUFMucG5nIiwgInByb3ZpZGVyX2ltYWdlXzIwMCI6ICJodHRwczovL3NoaXBwby1zdGF0aWMuczMuYW1hem9uYXdzLmNvbS9wcm92aWRlcnMvMjAwL1VTUFMucG5nIiwgInNlcnZpY2VsZXZlbCI6IHsibmFtZSI6ICJQcmlvcml0eSBNYWlsIiwgInRva2VuIjogInVzcHNfcHJpb3JpdHkiLCAidGVybXMiOiAiIn0sICJkYXlzIjogMiwgImFycml2ZXNfYnkiOiBudWxsLCAiZHVyYXRpb25fdGVybXMiOiAiRGVsaXZlcnkgd2l0aGluIDEsIDIswqBvciAzIGRheXPCoGJhc2VkIG9uIHdoZXJlIHlvdXIgcGFja2FnZSBzdGFydGVkIGFuZCB3aGVyZSBpdOKAmXMgYmVpbmcgc2VudC4iLCAibWVzc2FnZXMiOiBbXSwgImNhcnJpZXJfYWNjb3VudCI6ICI5MDMwNzQ0MjllYWI0OTU0YjcyZGY4YTcwZGVmZGZlMyIsICJ0ZXN0IjogdHJ1ZSwgInpvbmUiOiAiMSJ9LCB7Im9iamVjdF9jcmVhdGVkIjogIjIwMTktMDktMTJUMTc6MzU6NDUuNTk4WiIsICJvYmplY3RfaWQiOiAiMDFhNjIxNDU3NjU2NDYxMmExYThhZjEwNDRmZGYzMjgiLCAib2JqZWN0X293bmVyIjogInRlc3RAZ29zaGlwcG90ZXN0LmNvbSIsICJzaGlwbWVudCI6ICJkMWI1YWFmZWRlZDQ0Y2I0OGZmYWMyMGFhNTRmNTg3ZSIsICJhdHRyaWJ1dGVzIjogW10sICJhbW91bnQiOiAiNi44NSIsICJjdXJyZW5jeSI6ICJVU0QiLCAiYW1vdW50X2xvY2FsIjogIjYuODUiLCAiY3VycmVuY3lfbG9jYWwiOiAiVVNEIiwgInByb3ZpZGVyIjogIlVTUFMiLCAicHJvdmlkZXJfaW1hZ2VfNzUiOiAiaHR0cHM6Ly9zaGlwcG8tc3RhdGljLnMzLmFtYXpvbmF3cy5jb20vcHJvdmlkZXJzLzc1L1VTUFMucG5nIiwgInByb3ZpZGVyX2ltYWdlXzIwMCI6ICJodHRwczovL3NoaXBwby1zdGF0aWMuczMuYW1hem9uYXdzLmNvbS9wcm92aWRlcnMvMjAwL1VTUFMucG5nIiwgInNlcnZpY2VsZXZlbCI6IHsibmFtZSI6ICJQYXJjZWwgU2VsZWN0IiwgInRva2VuIjogInVzcHNfcGFyY2VsX3NlbGVjdCIsICJ0ZXJtcyI6ICIifSwgImRheXMiOiA3LCAiYXJyaXZlc19ieSI6IG51bGwsICJkdXJhdGlvbl90ZXJtcyI6ICJEZWxpdmVyeSBpbiAyIHRvIDggZGF5cy4iLCAibWVzc2FnZXMiOiBbXSwgImNhcnJpZXJfYWNjb3VudCI6ICI5MDMwNzQ0MjllYWI0OTU0YjcyZGY4YTcwZGVmZGZlMyIsICJ0ZXN0IjogdHJ1ZSwgInpvbmUiOiAiMSJ9LCB7Im9iamVjdF9jcmVhdGVkIjogIjIwMTktMDktMTJUMTc6MzU6NDUuNTk3WiIsICJvYmplY3RfaWQiOiAiMjU1NWUyMjM5Nzk3NGVlNWJjNmQ3MjE5MTNjMDUyNWYiLCAib2JqZWN0X293bmVyIjogInRlc3RAZ29zaGlwcG90ZXN0LmNvbSIsICJzaGlwbWVudCI6ICJkMWI1YWFmZWRlZDQ0Y2I0OGZmYWMyMGFhNTRmNTg3ZSIsICJhdHRyaWJ1dGVzIjogWyJCRVNUVkFMVUUiLCAiQ0hFQVBFU1QiXSwgImFtb3VudCI6ICI0Ljk0IiwgImN1cnJlbmN5IjogIlVTRCIsICJhbW91bnRfbG9jYWwiOiAiNC45NCIsICJjdXJyZW5jeV9sb2NhbCI6ICJVU0QiLCAicHJvdmlkZXIiOiAiVVNQUyIsICJwcm92aWRlcl9pbWFnZV83NSI6ICJodHRwczovL3NoaXBwby1zdGF0aWMuczMuYW1hem9uYXdzLmNvbS9wcm92aWRlcnMvNzUvVVNQUy5wbmciLCAicHJvdmlkZXJfaW1hZ2VfMjAwIjogImh0dHBzOi8vc2hpcHBvLXN0YXRpYy5zMy5hbWF6b25hd3MuY29tL3Byb3ZpZGVycy8yMDAvVVNQUy5wbmciLCAic2VydmljZWxldmVsIjogeyJuYW1lIjogIkZpcnN0LUNsYXNzIFBhY2thZ2UvTWFpbCBQYXJjZWwiLCAidG9rZW4iOiAidXNwc19maXJzdCIsICJ0ZXJtcyI6ICIifSwgImRheXMiOiA1LCAiYXJyaXZlc19ieSI6IG51bGwsICJkdXJhdGlvbl90ZXJtcyI6ICIiLCAibWVzc2FnZXMiOiBbXSwgImNhcnJpZXJfYWNjb3VudCI6ICI5MDMwNzQ0MjllYWI0OTU0YjcyZGY4YTcwZGVmZGZlMyIsICJ0ZXN0IjogdHJ1ZSwgInpvbmUiOiAiMSJ9XSwgIm1lc3NhZ2VzIjogW3sic291cmNlIjogIkRITEV4cHJlc3MiLCAiY29kZSI6ICIiLCAidGV4dCI6ICJTaGlwcG8ncyBESEwgRXhwcmVzcyBtYXN0ZXIgYWNjb3VudCBkb2Vzbid0IHN1cHBvcnQgc2hpcG1lbnRzIHRvIGluc2lkZSBvZiB0aGUgVVMifV0sICJtZXRhZGF0YSI6ICIiLCAidGVzdCI6IHRydWUsICJvcmRlciI6IG51bGx9 + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:46 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/6e60160c437843e4a92387802a993d2b/add_shipments + body: + encoding: UTF-8 + string: '[{"shipment":"d1b5aafeded44cb48ffac20aa54f587e"}]' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '49' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:35:46 GMT + Content-Type: + - application/json + Content-Length: + - '636' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '205' + body: + encoding: ASCII-8BIT + string: '{"object_id": "6e60160c437843e4a92387802a993d2b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:35:30.273Z", "object_updated": + "2019-09-12T17:35:46.587Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 4, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2d0ece60e7f54e40a99b3961ac16c447", "transaction": null, + "object_id": "90b61b020db148189be30eb6843dca61", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "cadbf6f6ecb946c8a5a144490a94dfbe", + "transaction": null, "object_id": "b230122999aa41efa43a9a2662e8701e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "b8c03270352c4be589bbe56a4c3d6af1", "transaction": null, + "object_id": "3f4898b8989642e7a538c2c0d7850371", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d1b5aafeded44cb48ffac20aa54f587e", + "transaction": null, "object_id": "156d953cee4c4c20b7ff760355d38c57", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}]}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 4, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:46 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/batch/test_create.yml b/spec/fixtures/batch/test_create.yml index 9c97b5d..99acf71 100644 --- a/spec/fixtures/batch/test_create.yml +++ b/spec/fixtures/batch/test_create.yml @@ -9,23 +9,23 @@ http_interactions: #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json Authorization: @@ -33,36 +33,46 @@ http_interactions: Shippo-Api-Version: - '2017-03-29' Content-Length: - - '2244' - User-Agent: - - Ruby + - '2253' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com response: status: code: 201 - message: CREATED + message: Created headers: - Allow: - - OPTIONS - Content-Encoding: - - gzip + Date: + - Thu, 12 Sep 2019 17:33:27 GMT Content-Type: - application/json - Date: - - Fri, 31 Mar 2017 00:34:53 GMT - P3p: - - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" - Server: - - nginx/1.8.0 - Vary: - - Host, Cookie, Accept-Encoding Content-Length: - - '349' + - '358' Connection: - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '55' body: encoding: ASCII-8BIT - string: !binary |- - H4sIAC2k3VgC/42RyU7DMBRFf6UKW1o5sdOQriggQaUKsahYgFBkOy/U4MaWh0JV9d/JC3RggcTOvve8wdfbxIg3kKFSdTIZJKmkGQUYi5QJJhkXZckgr8dZwTMuMkjOB/sC89GCw5oAPly+Gr9U1hq8jKRZIegDD9Ej8jidz26mi9n97UkD6YAH6MdmJC2GhA5puiBkQtkkpyNG86cTOtr6P/QKAu9AjtzVdHF9NzhLC4JODQ2PuhvLnVPgKi6liW1AsCSUFIxlJXDBypyJIqubC16QrqZugJ6We3BrJUHDGnQVzDu02CF66yvrlHEqbBDXXHR+ozSEjQVEnh7msxlagge5rDCuFbQB89km+1VI57fwicc2at3drIO1Mn2MP4oD3y2CwvPL7hjQUd4mNjq55B4qH6UEqPvcsPfBaHi32l7tf0KZ9g/1V5Pd4XHR6e8dvgCCg2/CRAIAAA== + string: '{"object_id": "dd22d82979eb4de58c557c01a3b13f19", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:33:27.703Z", "object_updated": + "2019-09-12T17:33:27.703Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' http_version: - recorded_at: Fri, 31 Mar 2017 00:34:54 GMT + recorded_at: Thu, 12 Sep 2019 17:33:27 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/batch/test_invalid_create.yml b/spec/fixtures/batch/test_invalid_create.yml index b5825ce..f491b8f 100644 --- a/spec/fixtures/batch/test_invalid_create.yml +++ b/spec/fixtures/batch/test_invalid_create.yml @@ -9,23 +9,23 @@ http_interactions: #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json Authorization: @@ -33,35 +33,41 @@ http_interactions: Shippo-Api-Version: - '2017-03-29' Content-Length: - - '2235' - User-Agent: - - Ruby + - '2244' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com response: status: code: 400 - message: BAD REQUEST + message: Bad Request headers: - Allow: - - OPTIONS + Date: + - Thu, 12 Sep 2019 17:35:29 GMT Content-Type: - application/json - Date: - - Fri, 31 Mar 2017 00:34:53 GMT - P3p: - - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" - Server: - - nginx/1.8.0 - Vary: - - Host, Cookie - Content-Length: - - '196' + Transfer-Encoding: + - chunked Connection: - keep-alive + Server: + - nginx/1.12.1 + Vary: + - Accept-Language, Host, Cookie + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '25' body: encoding: UTF-8 string: '{"default_carrier_account": ["Invalid account object_id provided ''INVALID_CARRIER_ACCOUNT''. Please list the available CarrierAccount objects (/v1/carrier_accounts) to get your valid object_ids."]}' http_version: - recorded_at: Fri, 31 Mar 2017 00:34:54 GMT + recorded_at: Thu, 12 Sep 2019 17:35:29 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/batch/test_purchase.yml b/spec/fixtures/batch/test_purchase.yml index 8354810..de10cdf 100644 --- a/spec/fixtures/batch/test_purchase.yml +++ b/spec/fixtures/batch/test_purchase.yml @@ -1,70 +1,5 @@ --- http_interactions: -- request: - method: post - uri: https://api.goshippo.com/batches/ - body: - encoding: UTF-8 - string: '{"default_carrier_account":"903074429eab4954b72df8a70defdfe3","default_servicelevel_token":"usps_priority","label_filetype":"ZPLII","metadata":"BATCH - #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 - Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon - Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San - Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon - Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San - Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Content-Type: - - application/json - Authorization: - - "" - Shippo-Api-Version: - - '2017-03-29' - Content-Length: - - '2244' - User-Agent: - - Ruby - response: - status: - code: 201 - message: CREATED - headers: - Allow: - - OPTIONS - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Fri, 31 Mar 2017 00:35:28 GMT - P3p: - - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" - Server: - - nginx/1.8.0 - Vary: - - Host, Cookie, Accept-Encoding - Content-Length: - - '350' - Connection: - - keep-alive - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAFCk3VgC/42RyU7DMBRFf6UKW1o5cUKSriggQaQKsahYgFDk2C/UkMaWh0JV9d/xC3RggcTOvve8wdfbSDVvwF0tRTQdRbRhNG4YCN6W6UWalEURpzzjok1IkmRldD7aF6iPHgzWOLDu8lXZpdRa4WXC1QpB65jzFpHH2by6mS2q+9uTBtwAczCMTUicjwkd03hByJRm06SYpIQ+ndBei//QK3AsgAy5q9ni+m50FucEHQEt810Yy4yRYGrGufK9Q7AklORpeC2wJi2ztMkT0RYsJ6FGtEBPyy2YteTQwRq62ql36LGDt9rW2khlpNsg3rEm+K3swG00IPL0MK8qtBrm+LLGuFbQO8xnG+1XIcHv4ROPve+6cNMG1lINMf4oBmxYBIXnl90xoKO8jbQ3fMks1NZzDiCG3LD3wWhZWG2vDj8hVf+H+qvJ7vA4b7rvHb4AAM9EOUQCAAA= - http_version: - recorded_at: Fri, 31 Mar 2017 00:35:29 GMT - request: method: get uri: https://api.goshippo.com/batches/3ba31baedcf9464298814c5cdf202259 @@ -615,4 +550,4417 @@ http_interactions: H4sIAF6k3VgC/8VUTW/UMBD9K6vl2q78Gcc9UYpEV6pQBYVDEVqNx+M2kE2i2ClUq/732tsubAWVekHc4pk3b94bj7OZ9+4bYVo1fn40m0sHkjsgj8GqSglb11yhRh8EE0Lb+cFsV9D/6GgsNYlien3Vx+tmGPpyWGC/LsCYIE2xQM4/fTg5Pf64fP9ujwBHgkTbtoJxc8jkoeQXjB1JfSTqhWLycg89Df5ZtBILU+ktek0JMhAK7s3xxcnp7BU3rGQ8BZja3BbGsaFxBYj91KUCtEwyo7JbAqesVs4IH2owLNf4QHK/PNJ40yC1dEPtKvXfqSsMUxziahibfmzSbYG34HI+NC2l24EK5PL8bLksKQcJr1dlXGvqUpnPZr6TInO+o5/ls5vaNp+GkW6afjvGx8hIMQspgS+bJ34L+Z/uHqv+qnuXe9RSSFBK7iuDCoxQ2gmrsUbOkQyhtIxKkzRCFwFT0++RPNmjgIJJWUmmEZT2YJWEoG3mtKiYV0/X4/Px2fLtw+3FCFe09fb17mD2D/wFY5jkDDnTlSKprQIrFOdVpXzlDH+ZPx00q7yyNVqlIMg65GGJWtZKZZs1/3/+ZO2szMOvDLcKSVjIAi06UwenmdIv8wfAQwi+rowzivsAKASR5d4ELrykF/krDne0v5d2Mx+mEa8h0ipOiER++6pZ2fVdIkB+OLvo9j+RpT4T3SeRd7+e3jS2DyruAVDceqbiBAAA http_version: recorded_at: Fri, 31 Mar 2017 00:35:43 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:03 GMT + Content-Type: + - application/json + Content-Length: + - '358' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '46' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:02.270Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:03 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:05 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '100' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:05 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:06 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '104' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:06 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:08 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '80' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:08 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:09 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '78' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:09 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:10 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '84' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:10 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:12 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '65' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:12 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:13 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '89' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:13 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:15 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '75' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:15 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:16 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '87' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f37fbd5d7a7d46efa64a4fa244ae3026", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:37:02.270Z", "object_updated": + "2019-09-12T17:37:04.732Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93557e26a0e54e948d27f549ea2daa40", "transaction": null, + "object_id": "14d937311796433dbcdbd3c93b894fef", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "d179f85615ac4141a01c6b80f5794033", + "transaction": null, "object_id": "1749014e77cf43119b4110eb45bb3626", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "66d78c598ac942f18e9b3cbd230e611e", "transaction": null, + "object_id": "316a5df84d544cfc8c16a00678178d9d", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:16 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/f37fbd5d7a7d46efa64a4fa244ae3026/purchase + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '2' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Thu, 12 Sep 2019 17:37:17 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Vary: + - Accept-Language, Host, Cookie + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '21' + body: + encoding: UTF-8 + string: '{"detail": "Only batches in VALID state can be purchased."}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:17 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:56 GMT + Content-Type: + - application/json + Content-Length: + - '357' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '28' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:55.111Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:56 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:57 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '80' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:58 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:59 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '72' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:59 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:42:00 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '94' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:42:00 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:42:02 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '118' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:42:02 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:42:03 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '159' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:42:03 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:42:05 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '66' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:42:05 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:42:06 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '95' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:42:06 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:42:08 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '87' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:42:08 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:42:09 GMT + Content-Type: + - application/json + Content-Length: + - '589' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '98' + body: + encoding: ASCII-8BIT + string: '{"object_id": "723750d0567d47239df51d0b9f4ecfa0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:55.111Z", "object_updated": + "2019-09-12T17:41:57.547Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "485f518c66a14ff8a2d12b51c5fadc51", "transaction": null, + "object_id": "6754b77793c044e88b2caa9d7fbd2290", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81f4e00f20034eb7af51ad7e5f2fab96", + "transaction": null, "object_id": "a3fc0153293a4c65b9e4793fcf479d2e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "0c07fa08a82e4f3baff6f9ff5b6985bb", "transaction": null, + "object_id": "934a688fdc2c4f1bb5c0763e1a91c030", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:42:09 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/723750d0567d47239df51d0b9f4ecfa0/purchase + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '2' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Thu, 12 Sep 2019 17:42:10 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Vary: + - Accept-Language, Host, Cookie + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '21' + body: + encoding: UTF-8 + string: '{"detail": "Only batches in VALID state can be purchased."}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:42:10 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:43:57 GMT + Content-Type: + - application/json + Content-Length: + - '359' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '31' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:56.489Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:43:57 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:43:59 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '383' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:43:59 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:44:01 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '72' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:01 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:44:02 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '76' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:02 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:44:04 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '87' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:04 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:44:05 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '71' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:05 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:44:07 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '100' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:07 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:44:08 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '95' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:08 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:44:09 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '102' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:10 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:44:11 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '64' + body: + encoding: ASCII-8BIT + string: '{"object_id": "cdb1f41e08244411957dfd6b768f0292", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:43:56.489Z", "object_updated": + "2019-09-12T17:43:58.809Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "60928bab5031479493c996921dd7e9d0", "transaction": null, + "object_id": "1565af01f6bf453c9f7ecfdde6362ae3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "40125ad621ad475f9e602cd93762cab7", + "transaction": null, "object_id": "334c4e6a2fb944578ebf7c7762b4ec5e", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "93ce9600e6944bf3aa9ff45b1688e9e5", "transaction": null, + "object_id": "34137a5d8f79427ab5d9297a503a42de", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:11 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/cdb1f41e08244411957dfd6b768f0292/purchase + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '2' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Thu, 12 Sep 2019 17:44:11 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Vary: + - Accept-Language, Host, Cookie + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '14' + body: + encoding: UTF-8 + string: '{"detail": "Only batches in VALID state can be purchased."}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:44:11 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:24 GMT + Content-Type: + - application/json + Content-Length: + - '359' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '26' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:22.632Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:24 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:25 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '68' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:25 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:27 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '130' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:27 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:28 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '84' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:28 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:29 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '92' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:30 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:31 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '66' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:31 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:33 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '78' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:33 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:34 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '75' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:34 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:36 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '92' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:36 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:45:37 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '70' + body: + encoding: ASCII-8BIT + string: '{"object_id": "f13aba4c17d1433fba6649341d1af0f7", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:45:22.632Z", "object_updated": + "2019-09-12T17:45:24.987Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "344bfeabf7464c1ca980f960e5c82cc5", "transaction": null, + "object_id": "4058896899304c28baf71c14bb2efaf4", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "81aeb5ed4b874d02b7987c111ee4e9ed", + "transaction": null, "object_id": "1e5fad11e7b24a0698c70b9b1100c634", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "8e60032555874826975e8aade52ca70a", "transaction": null, + "object_id": "9d9ee14f64e042bdb73a9ee050ab547c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:37 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/f13aba4c17d1433fba6649341d1af0f7/purchase + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '2' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Thu, 12 Sep 2019 17:45:37 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Vary: + - Accept-Language, Host, Cookie + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '12' + body: + encoding: UTF-8 + string: '{"detail": "Only batches in VALID state can be purchased."}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:45:38 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:46:49 GMT + Content-Type: + - application/json + Content-Length: + - '357' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '33' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:48.419Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:46:49 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:46:51 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '78' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:46:51 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:46:52 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '68' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:46:52 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:46:54 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '88' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:46:54 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:46:55 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '71' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:46:55 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:46:57 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '88' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:46:57 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:47:00 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '113' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:47:00 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:47:02 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '115' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:47:02 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:47:03 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '77' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:47:03 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:47:04 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '91' + body: + encoding: ASCII-8BIT + string: '{"object_id": "5bc2ae5891e8419a93979bbde750138b", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:46:48.419Z", "object_updated": + "2019-09-12T17:46:50.668Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "2e8cd4d1e09945b0899ba9a9bf0402ae", "transaction": null, + "object_id": "2857c82825c0453ab5025d2b758902b3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "2d65667b98f24c22ba5942b0ba7d3e45", + "transaction": null, "object_id": "b80881beda534e18914a1ad391f9e523", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "391138ab2b6c4e72b67d9244c4d551ec", "transaction": null, + "object_id": "408e3e4311d74b78a8769fff284e2c47", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:47:04 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/5bc2ae5891e8419a93979bbde750138b/purchase + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '2' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Thu, 12 Sep 2019 17:47:05 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Vary: + - Accept-Language, Host, Cookie + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '19' + body: + encoding: UTF-8 + string: '{"detail": "Only batches in VALID state can be purchased."}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:47:05 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/ + body: + encoding: UTF-8 + string: '{"default_carrier_account":"903074429eab4954b72df8a70defdfe3","default_servicelevel_token":"usps_priority","label_filetype":"ZPLII","metadata":"BATCH + #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 + Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San + Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San + Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '2253' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 13 Sep 2019 21:45:42 GMT + Content-Type: + - application/json + Content-Length: + - '359' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '56' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:42.075Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:42 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:44 GMT + Content-Type: + - application/json + Content-Length: + - '363' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '33' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.310Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:44 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:46 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '102' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:46 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:47 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '150' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:47 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:49 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '89' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:49 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:50 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '81' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:50 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:52 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '79' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:52 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:53 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '75' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:53 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:57 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '79' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:57 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:45:58 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '72' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:45:58 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:46:00 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '81' + body: + encoding: ASCII-8BIT + string: '{"object_id": "e7601f3197004fc6a48d17aa38286bb0", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-13T21:45:42.075Z", "object_updated": + "2019-09-13T21:45:44.533Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "9b25d9a2d8714fddb8f59cec5516e508", "transaction": null, + "object_id": "b33b7ca1f52845f18207c0412396e6d0", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "50b0aa3f05d344fa96d8b768a1aaf72e", + "transaction": null, "object_id": "1cee106c190942ce901f04b21a5b42ee", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "42b95548803c4e9bb3d385ee2ad68489", "transaction": null, + "object_id": "47419379ae1b449e992275b50b1cd219", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:46:00 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/e7601f3197004fc6a48d17aa38286bb0/purchase + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '2' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Fri, 13 Sep 2019 21:46:01 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Vary: + - Accept-Language, Host, Cookie + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '18' + body: + encoding: UTF-8 + string: '{"detail": "Only batches in VALID state can be purchased."}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:46:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/batch/test_remove.yml b/spec/fixtures/batch/test_remove.yml index ee2b999..65ab67f 100644 --- a/spec/fixtures/batch/test_remove.yml +++ b/spec/fixtures/batch/test_remove.yml @@ -1,70 +1,5 @@ --- http_interactions: -- request: - method: post - uri: https://api.goshippo.com/batches/ - body: - encoding: UTF-8 - string: '{"default_carrier_account":"903074429eab4954b72df8a70defdfe3","default_servicelevel_token":"usps_priority","label_filetype":"ZPLII","metadata":"BATCH - #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 - Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon - Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San - Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon - Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San - Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Content-Type: - - application/json - Authorization: - - "" - Shippo-Api-Version: - - '2017-03-29' - Content-Length: - - '2244' - User-Agent: - - Ruby - response: - status: - code: 201 - message: CREATED - headers: - Allow: - - OPTIONS - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Fri, 31 Mar 2017 00:35:11 GMT - P3p: - - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" - Server: - - nginx/1.8.0 - Vary: - - Host, Cookie, Accept-Encoding - Content-Length: - - '349' - Connection: - - keep-alive - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAD+k3VgC/42RS08CMRSF/woZt0I6zAwDrERNdBJiXBAXGDPp445Uy7TpAyWE/27vKA8XJu7ac7776Oku0ewNuK+lSKa9hKRlmRZizLIMcgpjRgsqRDMasgKAN0Vy2TsU6I8WLNZ4cP7qVbuVNEbjZcD1GkHnqQ8OkafZvLqdLaqHu7MG3AL10I0dxrl9kvWzdEHINCumaTrIi9HyjA5G/Ideg6cRpMhdzxY3972LtCToCGhoUHEstVaCrSnnOrQewQnJSJnnwwlQlk+KnJVD0YxpSWKNaCA7L3dgN5KDgg2o2ut3aLFDcMbVxkptpd8iriiLfiMV+K0BRJaP86pCi1HPVzXGtYbWYz675LAKiX4Ln3hsg1LxZixspO5i/FEsuLgICs8v+1NAJ3mXmGD5ijqoXeAcQHS5Ye+j0dC42kHtfkLq9g/1V5P98XHBqu8dvgBlVlOzRAIAAA== - http_version: - recorded_at: Fri, 31 Mar 2017 00:35:12 GMT - request: method: get uri: https://api.goshippo.com/batches/017715d8b33e4ae8ba5addf62b5eecf5 @@ -567,14 +502,10 @@ http_interactions: recorded_at: Fri, 31 Mar 2017 00:35:27 GMT - request: method: post - uri: https://api.goshippo.com/shipments/ + uri: https://api.goshippo.com/batches/017715d8b33e4ae8ba5addf62b5eecf5/add_shipments body: encoding: UTF-8 - string: '{"address_to":{"name":"First Last","company":"","street1":"965 Mission - St","street2":"#123","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_from":{"name":"Amazon - Fulfillment Services","company":"Returns Departments","street1":"400 Simon - St","street2":"123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"parcel":{"length":"10","width":"15","height":"10","distance_unit":"in","weight":"15","mass_unit":"oz","metadata":""},"extra":{"reference_1":"REF1 - - Simon","reference_2":"REF2 - Says"}}' + string: '[{"shipment":"13b871dee2e94b9689a5c8cdafed02d2"}]' headers: Accept: - application/json @@ -587,13 +518,13 @@ http_interactions: Shippo-Api-Version: - '2017-03-29' Content-Length: - - '635' + - '49' User-Agent: - Ruby response: status: - code: 201 - message: CREATED + code: 200 + message: OK headers: Allow: - OPTIONS @@ -602,7 +533,7 @@ http_interactions: Content-Type: - application/json Date: - - Fri, 31 Mar 2017 00:35:26 GMT + - Fri, 31 Mar 2017 00:35:27 GMT P3p: - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Server: @@ -610,21 +541,21 @@ http_interactions: Vary: - Host, Cookie, Accept-Encoding Content-Length: - - '684' + - '584' Connection: - keep-alive body: encoding: ASCII-8BIT string: !binary |- - H4sIAE6k3VgC/+1US2vcMBD+K8a9JkGSZa+9p4YmgUJ6aLbpIaUYWZrdVbElI8lJk9D/Xsn2rp0HhIWWXnqcmW9e3zweY86MkWBKxrnulLPxMvr2/SiKdfUDuCu5AeZAeG1MEF4co+Q4wV8QWibpkmQnFCc38YTuWnEAWvZAnFT5AgsAAgWtiiwvWMpzLtgaBCKCzBz0nQITfBxY936j7Va2rQ7CCddNAFrHXBd6iD9fn1+fnwUdE8KAteXaeMwyenyaHiW8QIRCkReCVoCKBaUEVRyzJIdC4BBB2tLHb2tw4F2c6cArFWuCFJ827EGr6KKr17KuG1AuWoG5lRxs8A2OTN0H5BW4zigbnUHLjAtIO9RsAFypdMBMChxEilC0ko2Pv3LBdMtq6SmWWpW+p67u5/X4a+9EekZJMoVJdlG5dH0VK+aLNUxxabnecdZ38uE0iA+yDUJBMSJDA34tTO96vQqKdqtVj6c49alomi1GknxJUvi2JKu9XXV1fTTMamTt12waTr+cRYYXokJAcwFrinle8ZwkDCeZ3wSOePXmLC6ksS66ZNY9o/4tnossjT5Ja+VhTL/7Y1Qnf4Fqv2Uc6jnN+/xfTy8/ns0u640zTwp8yJkn+OWZA2UcsizlCBPKCa8IWleoEkJUggqEDjpzB34DhlbG1uGnM2w3oRrUxm37U0hPEBqC30kx6tBetwW52bpnSiE9TYpD2SnZ26Tq/SfsFLRhfpV3OP0wLk4HJWvCLKf6Bi3vjAHF7yd9A455MtludWqpoJS+v/0jfjbUQEZ4HaUYR/n6vNDN/PWZ/vP8f37/+vnxzjrd2FIAr5npW3llhWMDawh7AmXPw9X5BY6OBypCsslMRjMJZnZv45DEx4X99jR+/Gwzl5/u27zA38jHV6oNCAAA + H4sIAE+k3VgC/8VUTU8cMQz9K6vtFVA+nEnCqbQ9FIlDD6gHqmrlJA5MOzszmmRo0Yr/3mTZpYtaVC4Vt8R+fvZzHG+Wg/tGPq/asDxdLBnXmqtgnJQESMahwhBiI5wi8lEtjxb7gOFHT1ONyZTy2+sh3bTjONTLiR/WFZgy5jlVyOezi/MPB7F+Isy0zShKymMmjyW/ZOxUqlPOT0A1VwfoeQzPooU+YUJt0WvKWIBYce/OLt9/XLzhmlVPoIhzV9LiNLU0rdD7Ye5zBVommQYQltCBVeC0CNGgZiUmRJKH4Ymm29ZTR7fUrfLwnfrKMKcxrcapHaY231V4h674Y9tRvhupQq4+XZyfV5fD7G9WtVNr6nNtzWa5LwWKv6ef9djPXVdu40S37bDt4M4yUSqFVMOXzRO9lfxPdbuov9a99+1qqSTceOJImqSLoKQoDTFSYySiWPrOa5I8YZ/Q53Y4IHkyQhBtlEp7IgwAnhxFFaISQjSBC8WemYw1pYTXtNX29f5o8R/0OamJnDNWegM8IgrOAQsdCiea6F6oj3kXOUhBZXACM4446AZU9BFV4Ph6+riNUUGUhkkHxgRnGlnejhC59Oxhlv+tTwemHHnRaGAAIaDVvjy/8tA0BpFeUZ90RvNAJMiCs42xqLzxoUxoYCKIl+lDH6LmRZBtGAjHjA6KnI+2kcpZEC/SVxXuaX9/ys1ynCd/g4lWafblB4Tt1mL1L+8dEcti2Fu3e7CU+oz1kATuH1fLPHUPVfwCOZ545L0FAAA= http_version: - recorded_at: Fri, 31 Mar 2017 00:35:27 GMT + recorded_at: Fri, 31 Mar 2017 00:35:28 GMT - request: method: post - uri: https://api.goshippo.com/batches/017715d8b33e4ae8ba5addf62b5eecf5/add_shipments + uri: https://api.goshippo.com/batches/017715d8b33e4ae8ba5addf62b5eecf5/remove_shipments body: encoding: UTF-8 - string: '[{"shipment":"13b871dee2e94b9689a5c8cdafed02d2"}]' + string: '["4f9f357ceead44cebef5df52226d1250"]' headers: Accept: - application/json @@ -637,7 +568,7 @@ http_interactions: Shippo-Api-Version: - '2017-03-29' Content-Length: - - '49' + - '36' User-Agent: - Ruby response: @@ -660,63 +591,1774 @@ http_interactions: Vary: - Host, Cookie, Accept-Encoding Content-Length: - - '584' + - '538' Connection: - keep-alive body: encoding: ASCII-8BIT string: !binary |- - H4sIAE+k3VgC/8VUTU8cMQz9K6vtFVA+nEnCqbQ9FIlDD6gHqmrlJA5MOzszmmRo0Yr/3mTZpYtaVC4Vt8R+fvZzHG+Wg/tGPq/asDxdLBnXmqtgnJQESMahwhBiI5wi8lEtjxb7gOFHT1ONyZTy2+sh3bTjONTLiR/WFZgy5jlVyOezi/MPB7F+Isy0zShKymMmjyW/ZOxUqlPOT0A1VwfoeQzPooU+YUJt0WvKWIBYce/OLt9/XLzhmlVPoIhzV9LiNLU0rdD7Ye5zBVommQYQltCBVeC0CNGgZiUmRJKH4Ymm29ZTR7fUrfLwnfrKMKcxrcapHaY231V4h674Y9tRvhupQq4+XZyfV5fD7G9WtVNr6nNtzWa5LwWKv6ef9djPXVdu40S37bDt4M4yUSqFVMOXzRO9lfxPdbuov9a99+1qqSTceOJImqSLoKQoDTFSYySiWPrOa5I8YZ/Q53Y4IHkyQhBtlEp7IgwAnhxFFaISQjSBC8WemYw1pYTXtNX29f5o8R/0OamJnDNWegM8IgrOAQsdCiea6F6oj3kXOUhBZXACM4446AZU9BFV4Ph6+riNUUGUhkkHxgRnGlnejhC59Oxhlv+tTwemHHnRaGAAIaDVvjy/8tA0BpFeUZ90RvNAJMiCs42xqLzxoUxoYCKIl+lDH6LmRZBtGAjHjA6KnI+2kcpZEC/SVxXuaX9/ys1ynCd/g4lWafblB4Tt1mL1L+8dEcti2Fu3e7CU+oz1kATuH1fLPHUPVfwCOZ545L0FAAA= + H4sIAE+k3VgC/8VUTW/UMBD9K6twbSt/xs6eKHBgpR44VByKUDS2x91ANolsZ6Fa9b9jb3dhK1jRCyKneOa9N/Mm4+yq0XxBm9rOVctFRahSVDptOEcBqA1IcM7XzEhE62V1sTgSxm8DhsJJGNPr+zGuu2kay+HKjpsCjAnSHAvk4/XN6t0J1waEhPuKLJe8JPyS01tCllwuKb0Ssr47Qc+TO4tm6kposkdvMEEGQsG9ub59+37xiipSMg49zH0uCyF0GFqwdpyHVIAN4UQJwRoEIxopjGLOa1Akc5xHfkqPGLadxR632Ldp/IpDUZjjFNspdGPo0kOB92By3nc9pocJC+Tuw81qVVIGkl23ZVIbHFIZza46tsJzfsDv5XWY+z6fpoDbbtxP8BAJGHMjJfBp98xvEf/d3YH1x76PuUMvRcRwhWiMbrjVgnoARqmALAfMsNqbUiQFGCLY1I0nIs9WSBBrPBWcYR6sI9ogFaoW0lsP0lE4sxkbjBHuce/t8+PF4h/4o433UniuCTdCa2d0zTE/AJRb8vSt/+5POSINWlYrQYRwDhplPaHSirrWAPgf/XGjFXWIDBthmlo3IK22Djw6whx7mT+wziuaDTU1EcwQrZxEY31Tc2kawV7krzg8yv5a2l01zcGuIWIbZ2sR3f5Wk7Lrx4SHfHGO0f1/Ird6Jnoqwh9/Xr059E9d/AA1oskr3QQAAA== http_version: recorded_at: Fri, 31 Mar 2017 00:35:28 GMT - request: - method: post - uri: https://api.goshippo.com/batches/017715d8b33e4ae8ba5addf62b5eecf5/remove_shipments + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 body: - encoding: UTF-8 - string: '["4f9f357ceead44cebef5df52226d1250"]' + encoding: US-ASCII + string: '' headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json Authorization: - "" Shippo-Api-Version: - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:36:45 GMT + Content-Type: + - application/json Content-Length: - - '36' + - '359' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '22' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:44.319Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:45 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json User-Agent: - - Ruby + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com response: status: code: 200 message: OK headers: + Date: + - Thu, 12 Sep 2019 17:36:47 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding Allow: - OPTIONS - Content-Encoding: - - gzip + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '92' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:47 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: Date: - - Fri, 31 Mar 2017 00:35:27 GMT + - Thu, 12 Sep 2019 17:36:48 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS P3p: - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '118' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:48 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:36:50 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive Server: - - nginx/1.8.0 + - nginx/1.12.1 + Content-Language: + - en-us Vary: - - Host, Cookie, Accept-Encoding + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '90' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:50 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:36:52 GMT + Content-Type: + - application/json Content-Length: - - '538' + - '588' Connection: - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '90' body: encoding: ASCII-8BIT - string: !binary |- - H4sIAE+k3VgC/8VUTW/UMBD9K6twbSt/xs6eKHBgpR44VByKUDS2x91ANolsZ6Fa9b9jb3dhK1jRCyKneOa9N/Mm4+yq0XxBm9rOVctFRahSVDptOEcBqA1IcM7XzEhE62V1sTgSxm8DhsJJGNPr+zGuu2kay+HKjpsCjAnSHAvk4/XN6t0J1waEhPuKLJe8JPyS01tCllwuKb0Ssr47Qc+TO4tm6kposkdvMEEGQsG9ub59+37xiipSMg49zH0uCyF0GFqwdpyHVIAN4UQJwRoEIxopjGLOa1Akc5xHfkqPGLadxR632Ldp/IpDUZjjFNspdGPo0kOB92By3nc9pocJC+Tuw81qVVIGkl23ZVIbHFIZza46tsJzfsDv5XWY+z6fpoDbbtxP8BAJGHMjJfBp98xvEf/d3YH1x76PuUMvRcRwhWiMbrjVgnoARqmALAfMsNqbUiQFGCLY1I0nIs9WSBBrPBWcYR6sI9ogFaoW0lsP0lE4sxkbjBHuce/t8+PF4h/4o433UniuCTdCa2d0zTE/AJRb8vSt/+5POSINWlYrQYRwDhplPaHSirrWAPgf/XGjFXWIDBthmlo3IK22Djw6whx7mT+wziuaDTU1EcwQrZxEY31Tc2kawV7krzg8yv5a2l01zcGuIWIbZ2sR3f5Wk7Lrx4SHfHGO0f1/Ird6Jnoqwh9/Xr059E9d/AA1oskr3QQAAA== + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' http_version: - recorded_at: Fri, 31 Mar 2017 00:35:28 GMT + recorded_at: Thu, 12 Sep 2019 17:36:52 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:36:53 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '70' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:53 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:36:55 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '105' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:55 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:36:56 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '92' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:56 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:36:57 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '85' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:57 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:36:59 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '94' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:36:46.739Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:36:59 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52/add_shipments + body: + encoding: UTF-8 + string: '[{"shipment":"ab0448d90f9344ac939e82beff473c0b"}]' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '49' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:01 GMT + Content-Type: + - application/json + Content-Length: + - '637' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '200' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:37:01.260Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 4, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "f1fd6a24da3648c0b1fbfe11d1af9cf5", "transaction": null, + "object_id": "04a6793441314b5eb1b9497d5e4bccbe", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", + "transaction": null, "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", "transaction": null, + "object_id": "787e7a494ba541ffa81323095a3330e7", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "ab0448d90f9344ac939e82beff473c0b", + "transaction": null, "object_id": "55cc4bed938740dcbd41fcbb247960c6", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}]}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 4, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:01 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/d1982d5c120645279ed3feba003ecd52/remove_shipments + body: + encoding: UTF-8 + string: '["04a6793441314b5eb1b9497d5e4bccbe"]' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '36' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:37:01 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '164' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d1982d5c120645279ed3feba003ecd52", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:36:44.319Z", "object_updated": + "2019-09-12T17:37:01.761Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "18d3d229ba324cb5bb0cac7ffae7a203", "transaction": null, + "object_id": "d614fb9d6d804ca29c6eb5ea80b605a3", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "aeea468c08fe4de4b9ac7444ed0a7580", + "transaction": null, "object_id": "787e7a494ba541ffa81323095a3330e7", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "ab0448d90f9344ac939e82beff473c0b", "transaction": null, + "object_id": "55cc4bed938740dcbd41fcbb247960c6", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:37:01 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/ + body: + encoding: UTF-8 + string: '{"default_carrier_account":"903074429eab4954b72df8a70defdfe3","default_servicelevel_token":"usps_priority","label_filetype":"ZPLII","metadata":"BATCH + #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 + Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San + Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San + Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '2253' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 201 + message: Created + headers: + Date: + - Thu, 12 Sep 2019 17:41:37 GMT + Content-Type: + - application/json + Content-Length: + - '357' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '58' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:37.327Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:37 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:38 GMT + Content-Type: + - application/json + Content-Length: + - '357' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '35' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:37.327Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:38 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:40 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '74' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:40 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:41 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '70' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:41 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:43 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '80' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:43 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:44 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '213' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:44 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:46 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '106' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:46 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:47 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '82' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:47 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:49 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '75' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:49 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:50 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '81' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:50 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:52 GMT + Content-Type: + - application/json + Content-Length: + - '587' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '108' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:39.769Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:52 GMT +- request: + method: post + uri: https://api.goshippo.com/shipments/ + body: + encoding: UTF-8 + string: '{"address_to":{"name":"First Last","company":"","street1":"965 Mission + St","street2":"#123","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_from":{"name":"Amazon + Fulfillment Services","company":"Returns Departments","street1":"400 Simon + St","street2":"123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"parcels":[{"length":"10","width":"15","height":"10","distance_unit":"in","weight":"15","mass_unit":"oz","metadata":""}],"extra":{"reference_1":"REF1 + - Simon","reference_2":"REF2 - Says"}}' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '638' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 201 + message: Created + headers: + Date: + - Thu, 12 Sep 2019 17:41:53 GMT + Content-Type: + - application/json + Content-Length: + - '1371' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '1036' + body: + encoding: ASCII-8BIT + string: !binary |- + eyJjYXJyaWVyX2FjY291bnRzIjogW10sICJvYmplY3RfY3JlYXRlZCI6ICIyMDE5LTA5LTEyVDE3OjQxOjUyLjQ1NFoiLCAib2JqZWN0X3VwZGF0ZWQiOiAiMjAxOS0wOS0xMlQxNzo0MTo1Mi41NjNaIiwgIm9iamVjdF9pZCI6ICJiYmQzN2E3YThlYzg0NTc1OWFmMGJlNmZjMTI4ODlkYiIsICJvYmplY3Rfb3duZXIiOiAidGVzdEBnb3NoaXBwb3Rlc3QuY29tIiwgInN0YXR1cyI6ICJTVUNDRVNTIiwgImFkZHJlc3NfZnJvbSI6IHsib2JqZWN0X2lkIjogIjJmNDZlOWQ2Y2FlMDQ2ODRhYjBlOWJhMTIzY2M4NjlmIiwgImlzX2NvbXBsZXRlIjogdHJ1ZSwgIm5hbWUiOiAiQW1hem9uIEZ1bGZpbGxtZW50IFNlcnZpY2VzIiwgImNvbXBhbnkiOiAiUmV0dXJucyBEZXBhcnRtZW50cyIsICJzdHJlZXRfbm8iOiAiIiwgInN0cmVldDEiOiAiNDAwIFNpbW9uIFN0IiwgInZhbGlkYXRpb25fcmVzdWx0cyI6IHt9LCAic3RyZWV0MiI6ICIxMjMiLCAic3RyZWV0MyI6ICIiLCAiY2l0eSI6ICJTYW4gRnJhbmNpc2NvIiwgInN0YXRlIjogIkNBIiwgInppcCI6ICI5NDEwMiIsICJjb3VudHJ5IjogIlVTIiwgInBob25lIjogIjQxNTEyMzQ1NjciLCAiZW1haWwiOiAiaGlwcG9AZ29zaGlwcG8uY29tIiwgImlzX3Jlc2lkZW50aWFsIjogbnVsbCwgInRlc3QiOiB0cnVlfSwgImFkZHJlc3NfdG8iOiB7Im9iamVjdF9pZCI6ICI1MDM1ODdhMmU1MmY0YWZiYWE4NThkODQ1OGQ2YjA0YyIsICJpc19jb21wbGV0ZSI6IHRydWUsICJuYW1lIjogIkZpcnN0IExhc3QiLCAiY29tcGFueSI6ICIiLCAic3RyZWV0X25vIjogIiIsICJzdHJlZXQxIjogIjk2NSBNaXNzaW9uIFN0IiwgInZhbGlkYXRpb25fcmVzdWx0cyI6IHt9LCAic3RyZWV0MiI6ICIjMTIzIiwgInN0cmVldDMiOiAiIiwgImNpdHkiOiAiU2FuIEZyYW5jaXNjbyIsICJzdGF0ZSI6ICJDQSIsICJ6aXAiOiAiOTQxMDMiLCAiY291bnRyeSI6ICJVUyIsICJwaG9uZSI6ICI0MTUxMjM0NTY3IiwgImVtYWlsIjogImhpcHBvQGdvc2hpcHBvLmNvbSIsICJpc19yZXNpZGVudGlhbCI6IG51bGwsICJ0ZXN0IjogdHJ1ZX0sICJwYXJjZWxzIjogW3sib2JqZWN0X3N0YXRlIjogIlZBTElEIiwgIm9iamVjdF9jcmVhdGVkIjogIjIwMTktMDktMTJUMTc6NDE6NTIuNDIxWiIsICJvYmplY3RfdXBkYXRlZCI6ICIyMDE5LTA5LTEyVDE3OjQxOjUyLjQ3MloiLCAib2JqZWN0X2lkIjogImE2N2Q4NDM2NWQ5ZDQ3YThhYjgyYWFjNzYyNmY4NDFiIiwgIm9iamVjdF9vd25lciI6ICJ0ZXN0QGdvc2hpcHBvdGVzdC5jb20iLCAidGVtcGxhdGUiOiBudWxsLCAiZXh0cmEiOiB7fSwgImxlbmd0aCI6ICIxNS4wMDAwIiwgIndpZHRoIjogIjEwLjAwMDAiLCAiaGVpZ2h0IjogIjEwLjAwMDAiLCAiZGlzdGFuY2VfdW5pdCI6ICJpbiIsICJ3ZWlnaHQiOiAiMTUuMDAwMCIsICJtYXNzX3VuaXQiOiAib3oiLCAidmFsdWVfYW1vdW50IjogbnVsbCwgInZhbHVlX2N1cnJlbmN5IjogbnVsbCwgIm1ldGFkYXRhIjogIiIsICJsaW5lX2l0ZW1zIjogW10sICJ0ZXN0IjogdHJ1ZX1dLCAic2hpcG1lbnRfZGF0ZSI6ICIyMDE5LTA5LTEyVDE3OjQxOjUyLjU2M1oiLCAiYWRkcmVzc19yZXR1cm4iOiB7Im9iamVjdF9pZCI6ICIyZjQ2ZTlkNmNhZTA0Njg0YWIwZTliYTEyM2NjODY5ZiIsICJpc19jb21wbGV0ZSI6IHRydWUsICJuYW1lIjogIkFtYXpvbiBGdWxmaWxsbWVudCBTZXJ2aWNlcyIsICJjb21wYW55IjogIlJldHVybnMgRGVwYXJ0bWVudHMiLCAic3RyZWV0X25vIjogIiIsICJzdHJlZXQxIjogIjQwMCBTaW1vbiBTdCIsICJ2YWxpZGF0aW9uX3Jlc3VsdHMiOiB7fSwgInN0cmVldDIiOiAiMTIzIiwgInN0cmVldDMiOiAiIiwgImNpdHkiOiAiU2FuIEZyYW5jaXNjbyIsICJzdGF0ZSI6ICJDQSIsICJ6aXAiOiAiOTQxMDIiLCAiY291bnRyeSI6ICJVUyIsICJwaG9uZSI6ICI0MTUxMjM0NTY3IiwgImVtYWlsIjogImhpcHBvQGdvc2hpcHBvLmNvbSIsICJpc19yZXNpZGVudGlhbCI6IG51bGwsICJ0ZXN0IjogdHJ1ZX0sICJjdXN0b21zX2RlY2xhcmF0aW9uIjogbnVsbCwgImV4dHJhIjogeyJyZWZlcmVuY2VfMSI6ICJSRUYxIC0gU2ltb24iLCAicmVmZXJlbmNlXzIiOiAiUkVGMiAtIFNheXMifSwgInJhdGVzIjogW3sib2JqZWN0X2NyZWF0ZWQiOiAiMjAxOS0wOS0xMlQxNzo0MTo1Mi45MTZaIiwgIm9iamVjdF9pZCI6ICIxMTZjYTM2ZTgwY2I0YzgwYWQ5Y2Q1MzUyMDUwMzkxMiIsICJvYmplY3Rfb3duZXIiOiAidGVzdEBnb3NoaXBwb3Rlc3QuY29tIiwgInNoaXBtZW50IjogImJiZDM3YTdhOGVjODQ1NzU5YWYwYmU2ZmMxMjg4OWRiIiwgImF0dHJpYnV0ZXMiOiBbIkZBU1RFU1QiXSwgImFtb3VudCI6ICIyMi43NCIsICJjdXJyZW5jeSI6ICJVU0QiLCAiYW1vdW50X2xvY2FsIjogIjIyLjc0IiwgImN1cnJlbmN5X2xvY2FsIjogIlVTRCIsICJwcm92aWRlciI6ICJVU1BTIiwgInByb3ZpZGVyX2ltYWdlXzc1IjogImh0dHBzOi8vc2hpcHBvLXN0YXRpYy5zMy5hbWF6b25hd3MuY29tL3Byb3ZpZGVycy83NS9VU1BTLnBuZyIsICJwcm92aWRlcl9pbWFnZV8yMDAiOiAiaHR0cHM6Ly9zaGlwcG8tc3RhdGljLnMzLmFtYXpvbmF3cy5jb20vcHJvdmlkZXJzLzIwMC9VU1BTLnBuZyIsICJzZXJ2aWNlbGV2ZWwiOiB7Im5hbWUiOiAiUHJpb3JpdHkgTWFpbCBFeHByZXNzIiwgInRva2VuIjogInVzcHNfcHJpb3JpdHlfZXhwcmVzcyIsICJ0ZXJtcyI6ICIifSwgImRheXMiOiAyLCAiYXJyaXZlc19ieSI6IG51bGwsICJkdXJhdGlvbl90ZXJtcyI6ICJPdmVybmlnaHQgZGVsaXZlcnkgdG8gbW9zdCBVLlMuIGxvY2F0aW9ucy4iLCAibWVzc2FnZXMiOiBbXSwgImNhcnJpZXJfYWNjb3VudCI6ICI5MDMwNzQ0MjllYWI0OTU0YjcyZGY4YTcwZGVmZGZlMyIsICJ0ZXN0IjogdHJ1ZSwgInpvbmUiOiAiMSJ9LCB7Im9iamVjdF9jcmVhdGVkIjogIjIwMTktMDktMTJUMTc6NDE6NTIuOTE1WiIsICJvYmplY3RfaWQiOiAiOTBjMWE4ZjhlMTgwNDMzNzg0MzAwYzE0ZDc0ZmRhMzQiLCAib2JqZWN0X293bmVyIjogInRlc3RAZ29zaGlwcG90ZXN0LmNvbSIsICJzaGlwbWVudCI6ICJiYmQzN2E3YThlYzg0NTc1OWFmMGJlNmZjMTI4ODlkYiIsICJhdHRyaWJ1dGVzIjogWyJGQVNURVNUIl0sICJhbW91bnQiOiAiNi45NSIsICJjdXJyZW5jeSI6ICJVU0QiLCAiYW1vdW50X2xvY2FsIjogIjYuOTUiLCAiY3VycmVuY3lfbG9jYWwiOiAiVVNEIiwgInByb3ZpZGVyIjogIlVTUFMiLCAicHJvdmlkZXJfaW1hZ2VfNzUiOiAiaHR0cHM6Ly9zaGlwcG8tc3RhdGljLnMzLmFtYXpvbmF3cy5jb20vcHJvdmlkZXJzLzc1L1VTUFMucG5nIiwgInByb3ZpZGVyX2ltYWdlXzIwMCI6ICJodHRwczovL3NoaXBwby1zdGF0aWMuczMuYW1hem9uYXdzLmNvbS9wcm92aWRlcnMvMjAwL1VTUFMucG5nIiwgInNlcnZpY2VsZXZlbCI6IHsibmFtZSI6ICJQcmlvcml0eSBNYWlsIiwgInRva2VuIjogInVzcHNfcHJpb3JpdHkiLCAidGVybXMiOiAiIn0sICJkYXlzIjogMiwgImFycml2ZXNfYnkiOiBudWxsLCAiZHVyYXRpb25fdGVybXMiOiAiRGVsaXZlcnkgd2l0aGluIDEsIDIswqBvciAzIGRheXPCoGJhc2VkIG9uIHdoZXJlIHlvdXIgcGFja2FnZSBzdGFydGVkIGFuZCB3aGVyZSBpdOKAmXMgYmVpbmcgc2VudC4iLCAibWVzc2FnZXMiOiBbXSwgImNhcnJpZXJfYWNjb3VudCI6ICI5MDMwNzQ0MjllYWI0OTU0YjcyZGY4YTcwZGVmZGZlMyIsICJ0ZXN0IjogdHJ1ZSwgInpvbmUiOiAiMSJ9LCB7Im9iamVjdF9jcmVhdGVkIjogIjIwMTktMDktMTJUMTc6NDE6NTIuOTA4WiIsICJvYmplY3RfaWQiOiAiMmQ4Y2IzMjRiNzc3NDBmZDg0NzJiYTczZmQzZjc3YzMiLCAib2JqZWN0X293bmVyIjogInRlc3RAZ29zaGlwcG90ZXN0LmNvbSIsICJzaGlwbWVudCI6ICJiYmQzN2E3YThlYzg0NTc1OWFmMGJlNmZjMTI4ODlkYiIsICJhdHRyaWJ1dGVzIjogW10sICJhbW91bnQiOiAiNi44NSIsICJjdXJyZW5jeSI6ICJVU0QiLCAiYW1vdW50X2xvY2FsIjogIjYuODUiLCAiY3VycmVuY3lfbG9jYWwiOiAiVVNEIiwgInByb3ZpZGVyIjogIlVTUFMiLCAicHJvdmlkZXJfaW1hZ2VfNzUiOiAiaHR0cHM6Ly9zaGlwcG8tc3RhdGljLnMzLmFtYXpvbmF3cy5jb20vcHJvdmlkZXJzLzc1L1VTUFMucG5nIiwgInByb3ZpZGVyX2ltYWdlXzIwMCI6ICJodHRwczovL3NoaXBwby1zdGF0aWMuczMuYW1hem9uYXdzLmNvbS9wcm92aWRlcnMvMjAwL1VTUFMucG5nIiwgInNlcnZpY2VsZXZlbCI6IHsibmFtZSI6ICJQYXJjZWwgU2VsZWN0IiwgInRva2VuIjogInVzcHNfcGFyY2VsX3NlbGVjdCIsICJ0ZXJtcyI6ICIifSwgImRheXMiOiA3LCAiYXJyaXZlc19ieSI6IG51bGwsICJkdXJhdGlvbl90ZXJtcyI6ICJEZWxpdmVyeSBpbiAyIHRvIDggZGF5cy4iLCAibWVzc2FnZXMiOiBbXSwgImNhcnJpZXJfYWNjb3VudCI6ICI5MDMwNzQ0MjllYWI0OTU0YjcyZGY4YTcwZGVmZGZlMyIsICJ0ZXN0IjogdHJ1ZSwgInpvbmUiOiAiMSJ9LCB7Im9iamVjdF9jcmVhdGVkIjogIjIwMTktMDktMTJUMTc6NDE6NTIuOTA2WiIsICJvYmplY3RfaWQiOiAiZjMyZGMxOGY4ZTUwNDk5NWE2MzQ2ODIwY2Q4Y2VmOWMiLCAib2JqZWN0X293bmVyIjogInRlc3RAZ29zaGlwcG90ZXN0LmNvbSIsICJzaGlwbWVudCI6ICJiYmQzN2E3YThlYzg0NTc1OWFmMGJlNmZjMTI4ODlkYiIsICJhdHRyaWJ1dGVzIjogWyJCRVNUVkFMVUUiLCAiQ0hFQVBFU1QiXSwgImFtb3VudCI6ICI0Ljk0IiwgImN1cnJlbmN5IjogIlVTRCIsICJhbW91bnRfbG9jYWwiOiAiNC45NCIsICJjdXJyZW5jeV9sb2NhbCI6ICJVU0QiLCAicHJvdmlkZXIiOiAiVVNQUyIsICJwcm92aWRlcl9pbWFnZV83NSI6ICJodHRwczovL3NoaXBwby1zdGF0aWMuczMuYW1hem9uYXdzLmNvbS9wcm92aWRlcnMvNzUvVVNQUy5wbmciLCAicHJvdmlkZXJfaW1hZ2VfMjAwIjogImh0dHBzOi8vc2hpcHBvLXN0YXRpYy5zMy5hbWF6b25hd3MuY29tL3Byb3ZpZGVycy8yMDAvVVNQUy5wbmciLCAic2VydmljZWxldmVsIjogeyJuYW1lIjogIkZpcnN0LUNsYXNzIFBhY2thZ2UvTWFpbCBQYXJjZWwiLCAidG9rZW4iOiAidXNwc19maXJzdCIsICJ0ZXJtcyI6ICIifSwgImRheXMiOiA1LCAiYXJyaXZlc19ieSI6IG51bGwsICJkdXJhdGlvbl90ZXJtcyI6ICIiLCAibWVzc2FnZXMiOiBbXSwgImNhcnJpZXJfYWNjb3VudCI6ICI5MDMwNzQ0MjllYWI0OTU0YjcyZGY4YTcwZGVmZGZlMyIsICJ0ZXN0IjogdHJ1ZSwgInpvbmUiOiAiMSJ9XSwgIm1lc3NhZ2VzIjogW3sic291cmNlIjogIkRITEV4cHJlc3MiLCAiY29kZSI6ICIiLCAidGV4dCI6ICJTaGlwcG8ncyBESEwgRXhwcmVzcyBtYXN0ZXIgYWNjb3VudCBkb2Vzbid0IHN1cHBvcnQgc2hpcG1lbnRzIHRvIGluc2lkZSBvZiB0aGUgVVMifV0sICJtZXRhZGF0YSI6ICIiLCAidGVzdCI6IHRydWUsICJvcmRlciI6IG51bGx9 + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:53 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c/add_shipments + body: + encoding: UTF-8 + string: '[{"shipment":"bbd37a7a8ec845759af0be6fc12889db"}]' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '49' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:54 GMT + Content-Type: + - application/json + Content-Length: + - '634' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '258' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:54.004Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 4, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "858e0229c0ef4b8291a38ff89cc3c362", "transaction": null, + "object_id": "ed8518d667c942cba66f2d840a61e19e", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", + "transaction": null, "object_id": "40b5322ec81c48e499dd8f328c458761", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "a513e4391f9c4db4a10aad50abfff359", "transaction": null, + "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "bbd37a7a8ec845759af0be6fc12889db", + "transaction": null, "object_id": "73ad4f1feaff443c828f0c989e37909c", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}]}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 4, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:54 GMT +- request: + method: post + uri: https://api.goshippo.com/batches/1a2a5b5a5d7549caba91b70b0de5fd2c/remove_shipments + body: + encoding: UTF-8 + string: '["ed8518d667c942cba66f2d840a61e19e"]' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Content-Length: + - '36' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 12 Sep 2019 17:41:54 GMT + Content-Type: + - application/json + Content-Length: + - '588' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '113' + body: + encoding: ASCII-8BIT + string: '{"object_id": "1a2a5b5a5d7549caba91b70b0de5fd2c", "object_owner": "test@goshippotest.com", + "status": "INVALID", "object_created": "2019-09-12T17:41:37.327Z", "object_updated": + "2019-09-12T17:41:54.537Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 3, "next": null, "previous": + null, "results": [{"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "4b3c65e6ed4d434b9c9f44b0367525f6", "transaction": null, + "object_id": "40b5322ec81c48e499dd8f328c458761", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}, {"metadata": + "", "carrier_account": null, "servicelevel_token": null, "shipment": "a513e4391f9c4db4a10aad50abfff359", + "transaction": null, "object_id": "94f3ec625e3542f7815cefee64c30a15", "status": + "INVALID", "messages": ["Carrier account with the provided object_id does + not exist"]}, {"metadata": "", "carrier_account": null, "servicelevel_token": + null, "shipment": "bbd37a7a8ec845759af0be6fc12889db", "transaction": null, + "object_id": "73ad4f1feaff443c828f0c989e37909c", "status": "INVALID", "messages": + ["Carrier account with the provided object_id does not exist"]}]}, "object_results": + {"purchase_succeeded": 0, "purchase_failed": 0, "creation_failed": 3, "creation_succeeded": + 0}, "label_url": [], "test": true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:41:54 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/batch/test_retrieve.yml b/spec/fixtures/batch/test_retrieve.yml index 712b10f..97c0481 100644 --- a/spec/fixtures/batch/test_retrieve.yml +++ b/spec/fixtures/batch/test_retrieve.yml @@ -1,45 +1,30 @@ --- http_interactions: - request: - method: post - uri: https://api.goshippo.com/batches/ + method: get + uri: https://api.goshippo.com/batches/7a2e35713c484561b0ab30561746b41f body: - encoding: UTF-8 - string: '{"default_carrier_account":"903074429eab4954b72df8a70defdfe3","default_servicelevel_token":"usps_priority","label_filetype":"ZPLII","metadata":"BATCH - #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 - Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon - Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San - Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon - Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San - Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who - Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt - 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcel":{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer - ID 123456"},"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' + encoding: ASCII-8BIT + string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - - application/json + - application/x-www-form-urlencoded Authorization: - "" Shippo-Api-Version: - '2017-03-29' Content-Length: - - '2244' + - '0' User-Agent: - Ruby response: status: - code: 201 - message: CREATED + code: 200 + message: OK headers: Allow: - OPTIONS @@ -66,53 +51,136 @@ http_interactions: http_version: recorded_at: Fri, 31 Mar 2017 00:34:55 GMT - request: - method: get - uri: https://api.goshippo.com/batches/7a2e35713c484561b0ab30561746b41f + method: post + uri: https://api.goshippo.com/batches/ body: - encoding: ASCII-8BIT - string: '' + encoding: UTF-8 + string: '{"default_carrier_account":"903074429eab4954b72df8a70defdfe3","default_servicelevel_token":"usps_priority","label_filetype":"ZPLII","metadata":"BATCH + #170","batch_shipments":[{"shipment":{"address_from":{"name":"Simon Says","company":"","street1":"965 + Mission St","street2":"Ste 201","city":"San Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San + Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"shippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}},{"shipment":{"address_from":{"name":"Simon + Says","company":"","street1":"965 Mission St","street2":"Ste 201","city":"San + Francisco","state":"CA","zip":"94103","country":"US","phone":"4151234567","email":"hippo@goshippo.com"},"address_to":{"name":"Who + Says","company":"","street1":"400 Simon St","street_no":"","street2":"Apt + 123","city":"San Francisco","state":"CA","zip":"94102","country":"US","phone":"4151234567","email":"hippo@goshippo.com","metadata":""},"parcels":[{"length":"5","width":"5","height":"5","distance_unit":"in","weight":"2","mass_unit":"oz","template":"","metadata":"Customer + ID 123456"}],"extra":{"reference_1":"REF1 - Simon","reference_2":"REF2 - Says"},"metadata":""}}]}' headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - - application/x-www-form-urlencoded + - application/json Authorization: - "" Shippo-Api-Version: - '2017-03-29' Content-Length: - - '0' - User-Agent: - - Ruby + - '2253' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com response: status: - code: 200 - message: OK + code: 201 + message: Created headers: + Date: + - Thu, 12 Sep 2019 17:35:29 GMT + Content-Type: + - application/json + Content-Length: + - '359' + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding Allow: - OPTIONS - Content-Encoding: - - gzip + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '48' + body: + encoding: ASCII-8BIT + string: '{"object_id": "d8cd103bfc954996a5a70c960c377940", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:35:29.460Z", "object_updated": + "2019-09-12T17:35:29.460Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' + http_version: + recorded_at: Thu, 12 Sep 2019 17:35:29 GMT +- request: + method: get + uri: https://api.goshippo.com/batches/d8cd103bfc954996a5a70c960c377940 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: Date: - - Fri, 31 Mar 2017 00:34:54 GMT - P3p: - - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" - Server: - - nginx/1.8.0 - Vary: - - Host, Cookie, Accept-Encoding + - Thu, 12 Sep 2019 17:35:29 GMT + Content-Type: + - application/json Content-Length: - - '348' + - '359' Connection: - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '23' body: encoding: ASCII-8BIT - string: !binary |- - H4sIAC6k3VgC/42RS08CMRSF/woZt0I60w4FVqImSkKMC+ICYyZt545Uy7TpAyWE/247ysOFibv2nO8+errLNH8D4StZZ5NeRlkBuKQ5FmREymHOEeMYxQMlQ07yJrvsHQr0Rws21Xhw/upVu5U0RqfLQOh1Ap1nPriEPE3ns9vpYvZwd9ZAWGAeurEFymkf4T7OFwhNMJmUZFAgtDyjg6n/Q6/BswiyxF1PFzf3vYucouTU0LCg4lhmrQRbMSF0aH0CxwgjSkgxBsbJuCScFnUzYhTFmroBfF7uwG6kAAUbUJXX79CmDsEZVxkrtZV+m3DFePQbqcBvDSRk+TifzZLFmRerKsW1htanfHbZYRUU/RY+07ENSsWbsbCRuovxR7Hg4iJJeH7ZnwI6ybvMBCtWzEHlghAAdZdb6n00GhZXO6jdT0jd/qH+arI/Pi5Y9b3DF1awRsdEAgAA + string: '{"object_id": "d8cd103bfc954996a5a70c960c377940", "object_owner": "test@goshippotest.com", + "status": "VALIDATING", "object_created": "2019-09-12T17:35:29.460Z", "object_updated": + "2019-09-12T17:35:29.460Z", "metadata": "BATCH #170", "default_carrier_account": + "903074429eab4954b72df8a70defdfe3", "default_servicelevel_token": "usps_priority", + "label_filetype": "ZPLII", "batch_shipments": {"count": 0, "next": null, "previous": + null, "results": []}, "object_results": {"purchase_succeeded": 0, "purchase_failed": + 0, "creation_failed": 0, "creation_succeeded": 0}, "label_url": [], "test": + true}' http_version: - recorded_at: Fri, 31 Mar 2017 00:34:55 GMT + recorded_at: Thu, 12 Sep 2019 17:35:29 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/track/test_register_webhook.yml b/spec/fixtures/track/test_register_webhook.yml index 58023ff..31492da 100644 --- a/spec/fixtures/track/test_register_webhook.yml +++ b/spec/fixtures/track/test_register_webhook.yml @@ -5,12 +5,12 @@ http_interactions: uri: https://api.goshippo.com/tracks/ body: encoding: UTF-8 - string: '{"carrier":"usps","tracking_number":"9205590164917312751089"}' + string: '{"carrier":"shippo","tracking_number":"SHIPPO_TRANSIT"}' headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json Authorization: @@ -18,36 +18,57 @@ http_interactions: Shippo-Api-Version: - '2017-03-29' Content-Length: - - '61' - User-Agent: - - Ruby + - '55' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com response: status: code: 201 - message: CREATED + message: Created headers: - Allow: - - OPTIONS - Content-Encoding: - - gzip + Date: + - Fri, 13 Sep 2019 21:43:42 GMT Content-Type: - application/json - Date: - - Fri, 31 Mar 2017 00:35:45 GMT - P3p: - - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" - Server: - - nginx/1.8.0 - Vary: - - Host, Cookie, Accept-Encoding Content-Length: - - '741' + - '538' Connection: - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '34' body: encoding: ASCII-8BIT - string: !binary |- - H4sIAGGk3VgC/+WW3W/TMBDA/5Woz1D5bMex8zaJPSABQmtXCRCq/HHeDGkSJW7FmPa/44RVdHx0bC0CCSkPsX2+O//ufOfridVdF7CblNlk3bf95Ek2iZ22H0N9sazXK/N1SVGS54qA4AoKBrTIgUg1CGvnOuz7pe+aVZK8ntgQr4YtL3SfLfBCjyr7qCMOs68Ww/BzaIeBVEBgGNtmXcdu3HY+m9zsqI3NHaWzton9VbXRddB39C5OdvRSmue/0ItRjxLpKE9J8ZSyOSHl+L0d9WG3CRYr3GA1Go7NR6y3cJZtF5pucCWJ1no1Wn59O5e91KEabaySEadHQ/W6qnaJDv6u+1FzYz6gjUvbYTqC+84pSkqWl1RMgarRsVvpdeseIB1GQXDCSE4kMSl8XBspQUmqUYJA7znbchz9mjw7ffF8cXp2+uzb9NKlA4VqXH7TrLusvwztCuuYXaYYG8Q6c1iFDXboMh2zeIlpoo+h1jE0dbZKm03zabqr8TZsO4cAVhK2jUPV2HHvEYN/sxuHy9DHZlx7tzcSdA68ZKLMyVRx9iNbjbn0FoVHC9wqYwhTCAXRYEUuHbnLdn528mr2fP4gstpabJNbe+nBHPKS7ad3wH1M6A6jxI1HTvzAJ/16pQlaY5mXQjNhxPEobdPvfPZ6lqVreRHqzGsbqgThPoKqBPGvEvRUWEIABdXpDiuvwUhaCOcw3WOi2UEEhw6wOYjdUIDgCOwo+QPsmPCp3BlplSDcGyYFk95IJW2hTcrDg9g5bHU3JN4B5PK/RS41PzmY5zCVOfyEnDegUnUToIBD7hUvDM2REuEQpDp+1u12jd8CmE5AS3pP29C1S9W+3tMyGOSP4zdkXuKXTykUP/JD9AJcSkrwlHtHTHo1FdRx5pSxSN0x+bVNH7PG+/R6uY9YahXySI2WPYra/veKKpxKPZVbxw3XzEhIZU6AKLzz0gj/v7xX3t98Aes3dYWeCwAA + string: '{"messages": [], "carrier": "shippo", "tracking_number": "SHIPPO_TRANSIT", + "address_from": {"city": "San Francisco", "state": "CA", "zip": "94103", "country": + "US"}, "address_to": {"city": "Chicago", "state": "IL", "zip": "60611", "country": + "US"}, "eta": "2019-09-16T21:43:42.103Z", "original_eta": "2019-09-16T21:43:42.103Z", + "servicelevel": {"token": "shippo_priority", "name": "Priority Mail"}, "metadata": + "Shippo test tracking", "tracking_status": {"object_created": "2019-09-13T21:43:42.117Z", + "object_updated": null, "object_id": "21772f3725ab4222ad2a116a4de56571", "status": + "TRANSIT", "status_details": "Your shipment has departed from the origin.", + "status_date": "2019-09-12T19:38:42.117Z", "location": {"city": "San Francisco", + "state": "CA", "zip": "94103", "country": "US"}}, "tracking_history": [{"object_created": + "2019-09-13T21:43:42.119Z", "object_updated": null, "object_id": "45e25cc8dc9245bbb28accc27e020761", + "status": "UNKNOWN", "status_details": "The carrier has received the electronic + shipment information.", "status_date": "2019-09-11T17:33:42.119Z", "location": + {"city": "San Francisco", "state": "CA", "zip": "94103", "country": "US"}}, + {"object_created": "2019-09-13T21:43:42.119Z", "object_updated": null, "object_id": + "27581db20c4e4e2db644d8d8bb4a7692", "status": "TRANSIT", "status_details": + "Your shipment has departed from the origin.", "status_date": "2019-09-12T19:38:42.119Z", + "location": {"city": "San Francisco", "state": "CA", "zip": "94103", "country": + "US"}}], "transaction": null, "test": true}' http_version: - recorded_at: Fri, 31 Mar 2017 00:35:46 GMT + recorded_at: Fri, 13 Sep 2019 21:43:42 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/track/test_retrieve.yml b/spec/fixtures/track/test_retrieve.yml index ebab55c..00b769e 100644 --- a/spec/fixtures/track/test_retrieve.yml +++ b/spec/fixtures/track/test_retrieve.yml @@ -4,50 +4,349 @@ http_interactions: method: get uri: https://api.goshippo.com/tracks/usps/9205590164917312751089/ body: - encoding: ASCII-8BIT + encoding: US-ASCII string: '' headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - - application/x-www-form-urlencoded + - application/json Authorization: - "" Shippo-Api-Version: - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 301 + message: Moved Permanently + headers: + Date: + - Fri, 13 Sep 2019 21:31:34 GMT + Content-Type: + - text/html; charset=utf-8 Content-Length: + - '70' + Connection: + - keep-alive + Location: + - "/tracks/usps/9205590164917312751089" + X-Envoy-Upstream-Service-Time: - '0' + Server: + - envoy + body: + encoding: UTF-8 + string: "Moved Permanently.\n\n" + http_version: + recorded_at: Fri, 13 Sep 2019 21:31:34 GMT +- request: + method: get + uri: https://api.goshippo.com/tracks/usps/9205590164917312751089 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json User-Agent: - - Ruby + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com response: status: - code: 200 - message: OK + code: 400 + message: Bad Request headers: - Allow: - - OPTIONS - Content-Encoding: - - gzip + Date: + - Fri, 13 Sep 2019 21:31:34 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '75' + Connection: + - keep-alive + X-Envoy-Upstream-Service-Time: + - '4' + Server: + - envoy + body: + encoding: UTF-8 + string: '{"detail":"usps is not a valid test tracking carrier. Please use ''shippo''"}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:31:34 GMT +- request: + method: get + uri: https://api.goshippo.com/tracks/shippo/9205590164917312751089/ + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 Content-Type: - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: Date: - - Fri, 31 Mar 2017 00:35:44 GMT + - Fri, 13 Sep 2019 21:35:57 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - nginx/1.12.1 + Vary: + - Accept-Language, Host, Cookie P3p: - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '11' + body: + encoding: UTF-8 + string: '{"detail": "9205590164917312751089 is not a valid test tracking number. + Please use the sample tracking numbers provided in the Shippo API docs: https://goshippo.com/docs/tracking"}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:35:57 GMT +- request: + method: get + uri: https://api.goshippo.com/tracks/usps/9102969010383081813033/ + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 301 + message: Moved Permanently + headers: + Date: + - Fri, 13 Sep 2019 21:41:40 GMT + Content-Type: + - text/html; charset=utf-8 + Content-Length: + - '70' + Connection: + - keep-alive + Location: + - "/tracks/usps/9102969010383081813033" + X-Envoy-Upstream-Service-Time: + - '0' Server: - - nginx/1.8.0 + - envoy + body: + encoding: UTF-8 + string: "Moved Permanently.\n\n" + http_version: + recorded_at: Fri, 13 Sep 2019 21:41:40 GMT +- request: + method: get + uri: https://api.goshippo.com/tracks/usps/9102969010383081813033 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Fri, 13 Sep 2019 21:41:41 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '75' + Connection: + - keep-alive + X-Envoy-Upstream-Service-Time: + - '2' + Server: + - envoy + body: + encoding: UTF-8 + string: '{"detail":"usps is not a valid test tracking carrier. Please use ''shippo''"}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:41:41 GMT +- request: + method: get + uri: https://api.goshippo.com/tracks/shippo/9102969010383081813033/ + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Fri, 13 Sep 2019 21:42:34 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - nginx/1.12.1 Vary: - - Host, Cookie, Accept-Encoding + - Accept-Language, Host, Cookie + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + Content-Language: + - en-us + Allow: + - OPTIONS + X-Envoy-Upstream-Service-Time: + - '10' + body: + encoding: UTF-8 + string: '{"detail": "9102969010383081813033 is not a valid test tracking number. + Please use the sample tracking numbers provided in the Shippo API docs: https://goshippo.com/docs/tracking"}' + http_version: + recorded_at: Fri, 13 Sep 2019 21:42:34 GMT +- request: + method: get + uri: https://api.goshippo.com/tracks/shippo/SHIPPO_TRANSIT/ + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + User-Agent: + - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.6.4p104 + Content-Type: + - application/json + Authorization: + - "" + Shippo-Api-Version: + - '2017-03-29' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Host: + - api.goshippo.com + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 13 Sep 2019 21:43:41 GMT + Content-Type: + - application/json Content-Length: - - '737' + - '539' Connection: - keep-alive + Server: + - nginx/1.12.1 + Content-Language: + - en-us + Vary: + - Accept-Language, Host, Cookie, Accept-Encoding + Allow: + - OPTIONS + P3p: + - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" + X-Envoy-Upstream-Service-Time: + - '20' body: encoding: ASCII-8BIT - string: !binary |- - H4sIAGCk3VgC/92WW2/TMBTHv0rUZ6h8v+Rt0vYwaSBESyVAqDq+bYY0iRK34qJ9d5ywio5Bx9YiEGpfbB+fy+/Y+fvLxELXRd9NymKy7tt+8qSYpA7sh1hfLuv1ynxb0gRxrhEWTGNJMZEcI6UHY3Cu832/DF2zypZfJjamT8OWC+iLhb+E0WWfIPlh9vliGH6O7TBQGiM8jG2zrlM3bns1m1zvuE3NLaeztkn9p2oDdYRbfhcnO34J4fwXfn2C0SKX8hTJp4TOESrH/5vRn+820frKb3w1Bk7NB19v4SzbLjbdkEo2rWE1Rn5xM1c8g1iNMVY5iIMxUL2uql2iQ77rfvTcmPfepqXtfC7B/ZAUQSXlJRFTTPSY2I31unUPsI6jofAewGjJlAAmAoDGOGhtmPZGKWe2HMe8JqdnF+eLs5dnp9+nly4XFKtx+XWz7or+KrYrX6fiKvfYeF8Xzldx4zvvCkhFuvJ5ok+xhhSbuljlzab5ON31eNO2nSIwLRHd9qFq7Lj3iM2/3u3DVexTM6693dsJMsespKLkaKoZvctW5tvAFXDGCWZSBeDeaSNpEJyFIPBttvOXJ89n5/MHkQVrfZvT2ksPzzEv6X56B9zHjO4gSshKH4i1jkjPOJNGBq6lE0QAMEaOSGl7/F7NXsyKfC0vY10EsLHKEO4jqEss/lWCVFESsOGEMcWstkCotBYFFohh+XcQwUEBNgexGz5A+AjsCPoD7LSnmZkAjQJhxkmDuRUkEJBCcLD0IHbOt9ANB+8Acvxvkcvip4bwDE8Vx3fJWWS8pI5SqhxDQavgjdCgQJvMj7Gjn7pd1fgtgLkCUpJ7ZANql7/29R7JoJg/jt9w8jI/PiVY/kx5icGaALNEME+z5mIWNOPOGUWtOyq/tulT0YSQXy/3EctSoY4ktPRR1Pa/V7QNQVPBUBYNRhTXVEuCNYCXWIgf7+v/+155d/0VI/DOQJ4LAAA= + string: '{"messages": [], "carrier": "shippo", "tracking_number": "SHIPPO_TRANSIT", + "address_from": {"city": "San Francisco", "state": "CA", "zip": "94103", "country": + "US"}, "address_to": {"city": "Chicago", "state": "IL", "zip": "60611", "country": + "US"}, "eta": "2019-09-16T21:43:41.656Z", "original_eta": "2019-09-16T21:43:41.656Z", + "servicelevel": {"token": "shippo_priority", "name": "Priority Mail"}, "metadata": + "Shippo test tracking", "tracking_status": {"object_created": "2019-09-13T21:43:41.659Z", + "object_updated": null, "object_id": "45f3bc3facbc45f28ecfeaf016b95e09", "status": + "TRANSIT", "status_details": "Your shipment has departed from the origin.", + "status_date": "2019-09-12T19:38:41.659Z", "location": {"city": "San Francisco", + "state": "CA", "zip": "94103", "country": "US"}}, "tracking_history": [{"object_created": + "2019-09-13T21:43:41.661Z", "object_updated": null, "object_id": "4113717efb1b49158922a08eb1d34474", + "status": "UNKNOWN", "status_details": "The carrier has received the electronic + shipment information.", "status_date": "2019-09-11T17:33:41.661Z", "location": + {"city": "San Francisco", "state": "CA", "zip": "94103", "country": "US"}}, + {"object_created": "2019-09-13T21:43:41.661Z", "object_updated": null, "object_id": + "617cba4449f043dfada573716de93c4a", "status": "TRANSIT", "status_details": + "Your shipment has departed from the origin.", "status_date": "2019-09-12T19:38:41.661Z", + "location": {"city": "San Francisco", "state": "CA", "zip": "94103", "country": + "US"}}], "transaction": null, "test": true}' http_version: - recorded_at: Fri, 31 Mar 2017 00:35:45 GMT + recorded_at: Fri, 13 Sep 2019 21:43:41 GMT recorded_with: VCR 3.0.3 diff --git a/spec/shippo/api/model/batch_spec.rb b/spec/shippo/api/model/batch_spec.rb index dff6aed..76fb176 100644 --- a/spec/shippo/api/model/batch_spec.rb +++ b/spec/shippo/api/model/batch_spec.rb @@ -131,7 +131,7 @@ def retrieve_valid_batch(id) describe '#purchase' do it 'should properly purchase a batch' do - VCR.use_cassette('batch/test_purchase') do + VCR.use_cassette('batch/test_purchase', :record => :all) do batch = Shippo::Batch::create(dummy_batch.dup) retrieve = retrieve_valid_batch(batch[:object_id]) purchase = Shippo::Batch::purchase(retrieve[:object_id]) diff --git a/spec/shippo/api/model/track_spec.rb b/spec/shippo/api/model/track_spec.rb index 97a1f5b..acde38b 100644 --- a/spec/shippo/api/model/track_spec.rb +++ b/spec/shippo/api/model/track_spec.rb @@ -14,7 +14,7 @@ expect(track).to be_kind_of(Shippo::Track) expect(track.tracking_number).to be == TRACKING_NO expect(track.tracking_history).not_to be == nil - expect(track.tracking_history.last[:status]).to be == 'DELIVERED' + expect(track.tracking_history.last[:status]).to be == 'TRANSIT' end end end @@ -36,7 +36,7 @@ expect(track).to be_kind_of(Shippo::Track) expect(track.tracking_number).to be == TRACKING_NO expect(track.tracking_history).not_to be == nil - expect(track.tracking_history.last[:status]).to be == 'DELIVERED' + expect(track.tracking_history.last[:status]).to be == 'TRANSIT' end end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 22fb5ba..d1ca180 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -32,7 +32,7 @@ Shippo::API.version = '2017-03-29' Shippo::API.warnings = false -CARRIER = 'usps' +CARRIER = 'shippo' DEFAULT_CARRIER_ACCOUNT = '903074429eab4954b72df8a70defdfe3' DEFAULT_SERVICELEVEL_TOKEN = 'usps_priority' -TRACKING_NO = '9205590164917312751089' \ No newline at end of file +TRACKING_NO = 'SHIPPO_TRANSIT' \ No newline at end of file