billing
- userId
-
Jonathan Howe @jonathan_howe77
- label
- billing
- recipient
- Sally Haley
- street1
- 222 Boehm Green
- street2
- —
- city
- Ellaton
- region
- Vermont
- postalCode
- 66902
- countryAlpha2
- NG
- isDefault
- false
- createdAt
Overview
addresses / #201
billing
#201
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/201" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/201" ); 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/201"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/201"
)
addresse = res.json() Response
{
"id": 201,
"userId": 150,
"label": "billing",
"recipient": "Sally Haley",
"street1": "222 Boehm Green",
"street2": null,
"city": "Ellaton",
"region": "Vermont",
"postalCode": "66902",
"countryAlpha2": "NG",
"isDefault": false,
"createdAt": "2024-08-20T06:36:41.091Z"
}