billing
- userId
-
Phyllis Hyatt @phyllis_hyatt83
- label
- billing
- recipient
- Dave Tillman
- street1
- 80289 Upton Estates
- street2
- —
- city
- Fort Jessicaboro
- region
- Wyoming
- postalCode
- 10713
- countryAlpha2
- FJ
- isDefault
- true
- createdAt
Overview
addresses / #112
billing
#112
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/112" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/112" ); 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/112"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/112"
)
addresse = res.json() Response
{
"id": 112,
"userId": 84,
"label": "billing",
"recipient": "Dave Tillman",
"street1": "80289 Upton Estates",
"street2": null,
"city": "Fort Jessicaboro",
"region": "Wyoming",
"postalCode": "10713",
"countryAlpha2": "FJ",
"isDefault": true,
"createdAt": "2024-09-17T18:10:03.351Z"
}