shipping
- userId
-
Jesse Kiehn @jesse_kiehn92
- label
- shipping
- recipient
- Christina Haley
- street1
- 53009 Mavis Path
- street2
- —
- city
- Justicebury
- region
- California
- postalCode
- 40294
- countryAlpha2
- AE
- isDefault
- false
- createdAt
Overview
addresses / #100
shipping
#100
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/100" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/100" ); const address = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/addresses.d.ts https://example-data.com/types/addresses.d.ts
import type { Address } from "./types/addresses";
const res = await fetch(
"https://example-data.com/api/v1/addresses/100"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/100"
)
addresse = res.json() Response
{
"id": 100,
"userId": 76,
"label": "shipping",
"recipient": "Christina Haley",
"street1": "53009 Mavis Path",
"street2": null,
"city": "Justicebury",
"region": "California",
"postalCode": "40294",
"countryAlpha2": "AE",
"isDefault": false,
"createdAt": "2024-10-06T00:17:22.432Z"
}