{"componentChunkName":"component---src-templates-content-page-js","path":"/api-integration","result":{"data":{"prismic":{"contentPage":{"page_title":"Api Integration","description":null,"keywords":[{"keyword":null}],"preview_image":null,"_meta":{"uid":"api-integration","lang":"en-us","type":"content-page"},"header_slides":[{"content":[{"type":"heading1","text":"Shipping API Integration","spans":[]},{"type":"paragraph","text":"TRT International service offerings include an Internet Application Program Interface (API). Our proprietary, platform-independent tools will provide you with instant, near real-time access to freight data. ","spans":[]}],"icon":null,"label":null,"background_image":{"dimensions":{"width":1400,"height":558},"alt":null,"copyright":null,"url":"https://images.prismic.io/usatrt/24dd5634-145a-444b-967a-e1b046500325_about-bg.jpg?auto=compress,format"}}],"aside_navigation":null,"parent":null,"body":[{"__typename":"PRISMIC_ContentPageBodyText","type":"text","label":"one-col","primary":{"text":[{"type":"heading2","text":"Getting Started.","spans":[]},{"type":"paragraph","text":"The Shipping API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, basic authentication, and verbs.","spans":[{"start":37,"end":41,"type":"hyperlink","data":{"link_type":"Web","url":"https://en.wikipedia.org/wiki/Representational_state_transfer"}},{"start":136,"end":140,"type":"hyperlink","data":{"link_type":"Web","url":"https://www.json.org/json-en.html"}}]},{"type":"heading3","text":"Authentication","spans":[]},{"type":"paragraph","text":"Shipping API uses Basic Authentication over HTTPs plus API key authenticate requests.  You need to request an API key and a dedicated user account for API Access from our team.","spans":[{"start":18,"end":38,"type":"hyperlink","data":{"link_type":"Web","url":"https://en.wikipedia.org/wiki/Basic_access_authentication"}}]},{"type":"paragraph","text":"All API requests must be made over a secured HTTPs connection. Calls made over plain HTTP will fail. API requests without authentication will also fail.","spans":[]},{"type":"heading3","text":"Retrieve Freight Details","spans":[]},{"type":"paragraph","text":"Retrieve the details of an existing freight. You need to provide the unique freight identifier provided by Freight List API","spans":[]},{"type":"preformatted","text":"GET https://api.usatrt.com/api/freight/{freight_vin}?api_key={API_KEY}","spans":[]},{"type":"heading5","text":"Response Example","spans":[{"start":0,"end":16,"type":"strong"}]},{"type":"preformatted","text":"{\n    \"Id\": 364730,\n    \"Vin\": \"KL7CJKSB1LB330630\",\n    \"Make\": \"CHEVROLET\",\n    \"Model\": \"Trax\",\n    \"Year\": 2020,\n    \"Color\": \"\",\n    \"LotNumber\": null,\n    \"Description\": null,\n    \"AssemblyCountry\": \"SOUTH KOREA\",\n    \"BodyStyle\": \"Sport Utility Vehicle (SUV)/Multi-Purpose Vehicle \",\n    \"EngineType\": \"\",\n    \"EngineLiters\": \"\",\n    \"EngineCyl\": \"\",\n    \"PortOfExportId\": 1,\n    \"PortOfExport\": \"NEW YORK\"\n}","spans":[]},{"type":"heading3","text":"Retrieve Freight Pictures","spans":[]},{"type":"paragraph","text":"Retrieve a list of a picture of an existing freight. ","spans":[]},{"type":"preformatted","text":"GET https://api.usatrt.com/api/freight/{freight_vin}/pictures?api_key={API_KEY}","spans":[]},{"type":"heading5","text":"Response Example","spans":[{"start":0,"end":16,"type":"strong"}]},{"type":"preformatted","text":"[\n    \"https://d1tafjgr3ktuku.cloudfront.net/Documents/4421/4421275.bin?content=image%2fjpeg&filename=Captu222re.JPG&Expires=1621249147&Signature=NGlpRCJ-H68VttqYDe7r-RXjj7k3BHxf9GNrEa9LOxHH2jUqyKT3JowrYWarmfVJGcEDgqAVDn1YFScehVDaL3-T8UC2iT7nEUHROo2UnYX0DUu7DxFoI9MZ2-l5MIEhkEPAnprqXQdA7EQ855ehE0LlmYhOOXXNMULxRHqN78MKgIfMW8vEZ5HQV6nIpnGmvYTnGY-KiM5svuLakVhlF3K3WieU3HbxvsPLOdbjE-scyyAKDP3loyO2jbaXb5umMg4xkvzEpGRCxCFfvYyLrYqKqftv79v47b0HXlEf3Ws6uerZgq6-7QLbHX2jYsMSBWLen2Cu~W8oZ-ePReoSMA__&Key-Pair-Id=APKAJ2DQ3CF4KTDIH5HQ\"\n]","spans":[]},{"type":"paragraph","text":"","spans":[]}],"background_color":null,"background_image":null}}]}}},"pageContext":{"uid":"api-integration","lang":"en-us","rootQuery":"\n  query contentPageQuery($uid: String!, $lang: String!) {\n    prismic {\n      contentPage(uid: $uid, lang: $lang) {\n        page_title\n        description\n        keywords {\n          keyword\n        }\n        preview_image\n        _meta {\n          uid\n          lang\n          type\n        }\n        header_slides {\n          content\n          icon\n          label\n          background_image\n        }\n        aside_navigation {\n          ... on PRISMIC_AsideNavigation {\n            text\n            body {\n              ... on PRISMIC_AsideNavigationBodyMenu {\n                fields {\n                  icon\n                  link {\n                    ...link\n                  }\n                  link_style\n                  link_text\n                }\n                label\n                primary {\n                  nav_link {\n                    ...link\n                  }\n                  nav_text\n                }\n                type\n              }\n            }\n          }\n        }\n        parent {\n          ... on PRISMIC_ContentPage {\n            _meta {\n              type\n              uid\n            }\n            parent {\n              ... on PRISMIC_ContentPage {\n                _meta {\n                  type\n                  uid\n                }\n              }\n            }\n          }\n        }\n        body {\n            ...on PRISMIC_ContentPageBodyShipping_calculator {\n                type\n                label\n                primary {\n                    bg_color\n                    bg_image\n                    title\n                    text\n                    calculator_title\n                    calculate_button_calculate\n                    calculator_button_request\n                    calculator_contact_email\n                    calculator_contact_first_name\n                    calculator_contact_last_name\n                    calculator_contact_telephone\n                    calculator_contact_title\n                    calculator_destination_container_1\n                    calculator_destination_container_2\n                    calculator_destination_country\n                    calculator_destination_port\n                    calculator_destination_title\n                    calculator_location_select\n                    calculator_location_title\n                    calculator_title\n                    calculator_total_cost\n                    calculator_tub_itinerary\n                    calculator_tub_rate_quote\n                }\n            }\n          ...on PRISMIC_ContentPageBodyBlog_posts {\n            type\n            label\n            primary {\n              bg_color\n              bg_image\n              title\n              text\n              featured\n              number_of_posts\n              \n              category {\n                ... on PRISMIC_BlogCategory {\n                  _meta {\n                    lang\n                    type\n                    uid\n                  }\n                }\n              }\n            }\n          }\n          ...on PRISMIC_ContentPageBodyVideo {\n            type\n            label\n            primary {\n              bg_color\n              bg_image\n              title\n              text\n            }\n            fields {\n              video_thumbnail\n              video_url\n            }\n          }\n          ... on PRISMIC_ContentPageBodyTestimonials {\n                type\n                label\n                primary {\n                    text\n                    title\n                    bg_color\n                    bg_image\n                }\n                fields {\n                    client_name\n                    client_photo\n                    image\n                    link {\n                        ...link\n                    }\n                    link_text\n                    link_text\n                    rating\n                    text\n                    video_url\n                }\n            }\n          ... on PRISMIC_ContentPageBodyPricing_plans {\n            type\n            label\n            fields {\n              price_units\n              plan_price\n              plan_name\n              plan_features\n              link_text\n              link_style\n              link {\n                ...link\n              }\n              is_free_plan\n            }\n            primary {\n              bg_image\n              bg_color\n              title\n              text\n            }\n          }\n          ... on PRISMIC_ContentPageBodyItems_collection {\n            label\n            type\n            primary {\n              bg_color\n              bg_image\n              text\n              title\n              link_style\n              link_text\n            }\n            fields {\n              tag\n            }\n          }\n          ... on PRISMIC_ContentPageBodyForm {\n            type\n            label\n            primary {\n              bg_color\n              bg_image\n              form_script\n              form_url\n              text\n            }\n          }\n          ... on PRISMIC_ContentPageBodyFeatute {\n            type\n            label\n            primary {\n              bg_image\n              bg_color\n              text\n              title\n            }\n            fields {\n              image\n              link_style\n              link_text\n              text\n              title\n              link {\n                ...link\n              }\n            }\n          }\n          ... on PRISMIC_ContentPageBodyBlock_with_text_and_image {\n            type\n            label\n            primary {\n              bg_color\n              bg_image\n              min_height\n              image\n              link_style\n              link_text\n              link {\n                ...link\n              }\n              text\n              title\n            }\n          }\n          ... on PRISMIC_ContentPageBodyText {\n            type\n            label\n            primary {\n              text\n              background_color\n              background_image\n            }\n          }\n          ... on PRISMIC_ContentPageBodyText_with_title {\n            type\n            label\n            fields {\n              text\n            }\n            primary {\n              background_color\n              background_image\n              title\n              link_text\n              text\n              link {\n                ...link\n              }\n            }\n          }\n          ... on PRISMIC_ContentPageBodyImage_with_text {\n            type\n            label\n            primary {\n              background_color\n              background_image\n              text\n            }\n            fields {\n              image\n              text\n            }\n          }\n          ... on PRISMIC_ContentPageBodyTwo_columns {\n            type\n            label\n            fields {\n              border_color\n              html\n              text\n            }\n            primary {\n              background_color\n              background_image\n              text\n            }\n          }\n          ... on PRISMIC_ContentPageBodyMap {\n            type\n            label\n            primary {\n              latitude\n              longitude\n            }\n          }\n          ... on PRISMIC_ContentPageBodyGallery {\n            type\n            label\n            fields {\n              image\n            }\n            primary {\n              bg_color\n              bg_image\n              text\n            }\n          }\n          ... on PRISMIC_ContentPageBodyText_with_title_list {\n            type\n            label\n            fields {\n              text\n              title\n            }\n            primary {\n              text\n            }\n          }\n          ... on PRISMIC_ContentPageBodyContacts {\n            type\n            label\n            primary {\n              bg_color\n              bg_image\n              text\n              title\n            }\n            fields {\n              address\n              description\n              email\n              fax\n              phone\n            }\n          }\n          ... on PRISMIC_ContentPageBodyApplication_title {\n              type\n              label\n              primary {\n                  title\n                  image\n                  apply_button_text\n                  phone\n              }\n          }\n          ... on PRISMIC_ContentPageBodyApply_form {\n              type\n              label\n              primary {\n                  main_text\n                  left_column\n                  form_script\n              }\n          }\n          ... on PRISMIC_ContentPageBodyJob_description_short {\n              type\n              label\n              primary {\n                  title\n                  image\n                  job_description\n              }\n              fields {\n                  button_text\n                  button_link {\n                      ...link\n                  }\n              }\n          }  \n        }\n      }\n    }\n  }\n"}},"staticQueryHashes":["222128783","2326144048","2605433386","2915870430","2954153127","4117844979"]}