billing
- userId
-
Lazaro Herzog @lazaro_herzog
- label
- billing
- recipient
- Bessie Cartwright
- street1
- 8628 N 8th Street
- street2
- Suite 112
- city
- Port Marcostad
- region
- Virginia
- postalCode
- 38434-6445
- countryAlpha2
- JP
- isDefault
- false
- createdAt
Overview
addresses / #241
billing
#241
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/241" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/241" ); 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/241"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/241"
)
addresse = res.json() Response
{
"id": 241,
"userId": 181,
"label": "billing",
"recipient": "Bessie Cartwright",
"street1": "8628 N 8th Street",
"street2": "Suite 112",
"city": "Port Marcostad",
"region": "Virginia",
"postalCode": "38434-6445",
"countryAlpha2": "JP",
"isDefault": false,
"createdAt": "2024-06-16T02:55:35.970Z"
}