The Address object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: false
Default: false
Default: false
{
"id": "address_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"address_title": "address_title_example",
"address_type": "address_type_example",
"address_line1": "address_line1_example",
"address_line2": "address_line2_example",
"city": "city_example",
"county": "county_example",
"state": "state_example",
"country": "country_example",
"pincode": "pincode_example",
"email_id": "[email protected]",
"phone": "phone_example",
"fax": "fax_example",
"is_primary_address": false,
"is_shipping_address": false,
"disabled": false
} /api/core/address/{id} Retrieve a address
Retrieves the details of an existing address. Supply the unique address ID that was returned from a previous request.
Path parameters
The identifier of the address to retrieve.
Returns
Returns the address object if a valid identifier was provided.
curl https://api.overplane.dev/api/core/address/address_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "address_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"address_title": "address_title_example",
"address_type": "address_type_example",
"address_line1": "address_line1_example",
"address_line2": "address_line2_example",
"city": "city_example",
"county": "county_example",
"state": "state_example",
"country": "country_example",
"pincode": "pincode_example",
"email_id": "[email protected]",
"phone": "phone_example",
"fax": "fax_example",
"is_primary_address": false,
"is_shipping_address": false,
"disabled": false
} /api/core/address List all addresss
Returns a list of addresss. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of address objects.
curl https://api.overplane.dev/api/core/address \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "address_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"address_title": "address_title_example",
"address_type": "address_type_example",
"address_line1": "address_line1_example",
"address_line2": "address_line2_example",
"city": "city_example",
"county": "county_example",
"state": "state_example",
"country": "country_example",
"pincode": "pincode_example",
"email_id": "[email protected]",
"phone": "phone_example",
"fax": "fax_example",
"is_primary_address": false,
"is_shipping_address": false,
"disabled": false
}
],
"has_more": false,
"total": 1
} /api/core/address Create a address
Creates a new address object.
Body parameters
Default: false
Default: false
Default: false
Returns
Returns the newly created address object if the call succeeded.
curl https://api.overplane.dev/api/core/address \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"address_type":"address_type_example","address_line1":"address_line1_example","city":"city_example","country":"country_example"}' {
"id": "address_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"address_title": "address_title_example",
"address_type": "address_type_example",
"address_line1": "address_line1_example",
"address_line2": "address_line2_example",
"city": "city_example",
"county": "county_example",
"state": "state_example",
"country": "country_example",
"pincode": "pincode_example",
"email_id": "[email protected]",
"phone": "phone_example",
"fax": "fax_example",
"is_primary_address": false,
"is_shipping_address": false,
"disabled": false
} /api/core/address/{id} Update a address
Updates the specified address by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the address to update.
Body parameters
Default: false
Default: false
Default: false
Returns
Returns the updated address object.
curl https://api.overplane.dev/api/core/address/address_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"address_title":"address_title_example","address_type":"address_type_example"}' {
"id": "address_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"address_title": "address_title_example",
"address_type": "address_type_example",
"address_line1": "address_line1_example",
"address_line2": "address_line2_example",
"city": "city_example",
"county": "county_example",
"state": "state_example",
"country": "country_example",
"pincode": "pincode_example",
"email_id": "[email protected]",
"phone": "phone_example",
"fax": "fax_example",
"is_primary_address": false,
"is_shipping_address": false,
"disabled": false
} /api/core/address/{id} Delete a address
Permanently deletes a address. This cannot be undone.
Path parameters
The identifier of the address to delete.
Returns
Returns a confirmation that the address has been deleted.
curl https://api.overplane.dev/api/core/address/address_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "address_abc123",
"deleted": true
}