You can fetch either single related resources or collections by sending GET requests to the "related" link /api/<parent_resource>/:id/<related_resource> (i.e. the parent resource endpoint, specifying the single parent resource ID and the related resource you want to retrieve).
Make sure to use the relationship name and not the resource name (e.g., if you want to retrieve the billing address associated with an order, use billing_address and not just addresses — see example)
When fetching a list of related resources results can be sorted (see example) and filtered (see examples).
Examples
Fetching a single related resource (1:1 relationship)
The following request fetches the billing address associated with the order identified by the ID "xYZkjABcde":
On success, the API responds with a 200 OK status code, returning the single related resource object:
{"data": {"id":"yzXKjYzaCx","type":"addresses","links": {...},"attributes": {"business":false,"first_name":"John","last_name":"Doe","company":null,"full_name":"John Doe","line_1":"1234 5th Avenue","line_2":null,"city":"New York","zip_code":"10018","state_code":"NY","country_code":"US","phone":"646-1234567","full_address":"1234 5th Avenue, 10018 New York NY (US) 646-1234567","name":"John Doe, 1234 5th Avenue, 10018 New York NY (US) 646-1234567","email":null,"notes":null,"lat":null,"lng":null,"is_localized":false,"is_geocoded":false,"provider_name":null,"map_url":null,"static_map_url":null,"billing_info":null,"created_at":"2018-01-01T12:00:00.000Z","updated_at":"2018-01-01T12:00:00.000Z","reference":null,"reference_origin":null,"metadata": {} },"relationships": {"geocoder": {"links": {...} } },"meta": {"mode":"test","organization_id":"JxYabZKcAw" } }}
Fetching a list of related resources (1:N relationship)
The following request fetches the order history of a specific customer, i.e. the list of orders associated with the customer identified by the ID "xYZkjABcde":