billing
- userId
-
Arnaldo Friesen @arnaldo_friesen78
- label
- billing
- recipient
- Nathaniel Kuhlman
- street1
- 990 Waverley Road
- street2
- —
- city
- Sammieberg
- region
- Georgia
- postalCode
- 33874
- countryAlpha2
- ID
- isDefault
- true
- createdAt
Overview
addresses / #150
billing
#150
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/150" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/150" ); 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/150"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/150"
)
addresse = res.json() Response
{
"id": 150,
"userId": 113,
"label": "billing",
"recipient": "Nathaniel Kuhlman",
"street1": "990 Waverley Road",
"street2": null,
"city": "Sammieberg",
"region": "Georgia",
"postalCode": "33874",
"countryAlpha2": "ID",
"isDefault": true,
"createdAt": "2024-06-13T20:01:05.558Z"
}