get
https://www.pelcro.com/api/v1/core/addresses
Overview
Addresses store shipping and billing information for customers. Each address can be marked as default and associated with subscriptions for fulfillment.
How It Works
- Create an address - Add a shipping or billing address for a customer
- Set as default - Mark an address as the customer's default
- Use for fulfillment - Associate addresses with subscriptions for shipping
Example: A customer adds their home address for magazine delivery. Later, they add a work address and set it as default for future subscriptions.
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /api/v1/core/addresses | List all addresses |
POST | /api/v1/core/addresses | Create an address |
GET | /api/v1/core/addresses/{id} | Get an address |
PUT | /api/v1/core/addresses/{id} | Update an address |
DELETE | /api/v1/core/addresses/{id} | Delete an address |
Address Types
| Type | Description |
|---|---|
shipping | Delivery address for physical products |
billing | Address used for invoicing and payments |
Related Endpoints
- Create Address - Add a new address for a customer
