billing
- userId
-
Ericka DuBuque @ericka.dubuque
- label
- billing
- recipient
- Kathleen Rath
- street1
- 560 Murazik Terrace
- street2
- —
- city
- Elliotcester
- region
- Utah
- postalCode
- 52602
- countryAlpha2
- PL
- isDefault
- true
- createdAt
Overview
addresses / #26
billing
#26
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/26" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/26" ); 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/26"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/26"
)
addresse = res.json() Response
{
"id": 26,
"userId": 23,
"label": "billing",
"recipient": "Kathleen Rath",
"street1": "560 Murazik Terrace",
"street2": null,
"city": "Elliotcester",
"region": "Utah",
"postalCode": "52602",
"countryAlpha2": "PL",
"isDefault": true,
"createdAt": "2024-10-20T11:26:00.226Z"
}