JobFreightProviders =================== Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - POST - /api/job/{jobDisplayId}/freightproviders - * - GET - /api/job/{jobDisplayId}/freightproviders - * - POST - /api/job/{jobDisplayId}/freightproviders/{optionIndex}/ratequote - .. _post-apijobjobdisplayidfreightproviders: POST /api/job/{jobDisplayId}/freightproviders ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/job/{jobDisplayId}/freightproviders" , jobDisplayId="2000000" , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/freightproviders \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/freightproviders' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _get-apijobjobdisplayidfreightproviders: GET /api/job/{jobDisplayId}/freightproviders ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available *Query Parameters:* - `ProviderIndexes` (array, query): No description available - `ShipmentTypes` (array, query): No description available - `OnlyActive` (boolean, query): No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/job/{jobDisplayId}/freightproviders" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/job/{jobDisplayId}/freightproviders \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/freightproviders' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _post-apijobjobdisplayidfreightprovidersoptionindexratequote: POST /api/job/{jobDisplayId}/freightproviders/{optionIndex}/ratequote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `optionIndex` (integer, path) *(required)*: No description available - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/job/{jobDisplayId}/freightproviders/{optionIndex}/ratequote" , optionIndex="100" , jobDisplayId="2000000" , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/freightproviders/{optionIndex}/ratequote \ optionIndex=100 \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/freightproviders/100/ratequote' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" }