shipping
- userId
-
Claudie Hagenes @claudie_hagenes
- label
- shipping
- recipient
- Sara Romaguera
- street1
- 10270 Kent Road
- street2
- —
- city
- East Abelardochester
- region
- Alabama
- postalCode
- 02860
- countryAlpha2
- MY
- isDefault
- false
- createdAt
Overview
addresses / #320
shipping
#320
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/320" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/320" ); 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/320"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/320"
)
addresse = res.json() Response
{
"id": 320,
"userId": 232,
"label": "shipping",
"recipient": "Sara Romaguera",
"street1": "10270 Kent Road",
"street2": null,
"city": "East Abelardochester",
"region": "Alabama",
"postalCode": "02860",
"countryAlpha2": "MY",
"isDefault": false,
"createdAt": "2024-08-31T03:25:44.276Z"
}