API Models
Complete reference for all API request and response models.
Model Categories
- Address Models
- Company Models
- Contact Models
BaseContactDetailsCalendarContactContactContactAddressDetailsContactAddressEditDetailsContactDetailedInfoContactDetailsContactEmailDetailsContactEmailEditDetailsContactHistoryPricePerPoundContactHistoryRevenueSumContactPhoneDetailsContactPhoneEditDetailsContactPrimaryDetailsContactUserMergeContactsSearchRequestModelMergeContactsSearchRequestParametersPlannerContactSearchContactEntityResultSearchContactRequestShipmentContactAddressDetailsShipmentContactDetails
- Document Models
- Form Models
- Job Models
- Lookup Models
- User Models
Overview
All API responses are validated using Pydantic models to ensure data consistency and type safety. The models are organized by their API tags and provide:
Field validation and type checking
Automatic JSON serialization/deserialization
Clear documentation of expected data structures
Support for nested models and relationships
Model Categories
Core Models
Company Models - Company entities including customers, vendors, and carriers
Contact Models - Contact information for individuals and businesses
Job Models - Shipping and logistics job models
User Models - User accounts and authentication
Supporting Models
Address Models - Physical address models with validation
Document Models - Document and file attachment models
Form Models - Form data and submissions
Lookup Models - Reference data and configuration values
Usage Example
When you call an API endpoint, the response is automatically validated against the corresponding Pydantic model:
from ABConnect import ABConnectAPI
from ABConnect.api.models.jobs import Job
api = ABConnectAPI()
# Get a job - response is validated as a Job model
job = api.jobs.get("2000000")
# Access typed fields
print(job.jobDisplayId) # "2000000"
print(job.customerContact.contact.fullName) # "Training"
# Models provide IDE autocomplete and type hints
for item in job.items:
print(f"{item.description}: {item.weight} lbs")
Cross-References
Throughout the API documentation, you’ll see references to these models in the Response Type sections. Click on any model reference to see its complete field documentation.