Address ======= Manage and validate physical addresses used for shipping origins, destinations, and company locations. Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - GET - /api/address/isvalid - * - POST - /api/address/{addressId}/validated - * - POST - /api/address/{addressId}/avoidValidation - * - GET - /api/address/propertytype - .. _get-apiaddressisvalid: GET /api/address/isvalid ~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Query Parameters:* - `Line1` (string, query): No description available - `City` (string, query): No description available - `State` (string, query): No description available - `Zip` (string, 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/address/isvalid" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/address/isvalid .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/address/isvalid' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _post-apiaddressaddressidvalidated: POST /api/address/{addressId}/validated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `addressId` (integer, 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/address/{addressId}/validated" , addressId=789e0123-e89b-12d3-a456-426614174002 , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/address/{addressId}/validated \ addressId=789e0123-e89b-12d3-a456-426614174002 .. 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/address/789e0123-e89b-12d3-a456-426614174002/validated' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _post-apiaddressaddressidavoidvalidation: POST /api/address/{addressId}/avoidValidation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `addressId` (integer, 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/address/{addressId}/avoidValidation" , addressId=789e0123-e89b-12d3-a456-426614174002 ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/address/{addressId}/avoidValidation \ addressId=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ 'https://api.abconnect.co/api/address/789e0123-e89b-12d3-a456-426614174002/avoidValidation' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _get-apiaddresspropertytype: GET /api/address/propertytype ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Query Parameters:* - `Address1` (string, query): No description available - `Address2` (string, query): No description available - `City` (string, query): No description available - `State` (string, query): No description available - `ZipCode` (string, 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/address/propertytype" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/address/propertytype .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/address/propertytype' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} }