Get Organization Address
client.Organizations.Address.Get(ctx, organizationID) (*OrganizationAddress, error)
GET/v1/organizations/{organization_id}/address
Get Organization Address
package main
import (
"context"
"fmt"
"github.com/nirvana-labs/nirvana-go"
"github.com/nirvana-labs/nirvana-go/option"
)
func main() {
client := nirvana.NewClient(
option.WithAPIKey("My API Key"),
)
organizationAddress, err := client.Organizations.Address.Get(context.TODO(), "organization_id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", organizationAddress.ID)
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"city": "San Francisco",
"country": "US",
"created_at": "2025-01-01T00:00:00Z",
"line1": "123 Main St",
"line2": "Suite 400",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"postal_code": "94105",
"state": "CA",
"tax_id": "EU372000000",
"tax_id_type": "eu_vat",
"updated_at": "2025-01-01T00:00:00Z"
}Returns Examples
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"city": "San Francisco",
"country": "US",
"created_at": "2025-01-01T00:00:00Z",
"line1": "123 Main St",
"line2": "Suite 400",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"postal_code": "94105",
"state": "CA",
"tax_id": "EU372000000",
"tax_id_type": "eu_vat",
"updated_at": "2025-01-01T00:00:00Z"
}