PlatformXeDocs
Get API Key

Issues

SDK methods for the federated bug / support-ticket workflow.

The client.issues namespace creates and lists federated issues — bug reports and support tickets that traverse application boundaries. Available in TypeScript, Python, and Go SDKs.

SDKInstallNamespace
TypeScriptnpm install @caldera/platformxe-sdkclient.issues
Pythonpip install platformxeclient.issues
Gogo get github.com/calderaxe/platformxe-goclient.Issues

List issues

// All open issues for the calling org
const issues = await client.issues.list();

// Filter by app + status
const lettingsBugs = await client.issues.list({ app: 'lettings', status: 'OPEN' });

Create an issue

const created = await client.issues.create({
  app: 'lettings',
  reporterId: 'user_123',
  title: 'Booking confirmation email shows wrong nights',
  description: 'Booked 3 nights, email says 2. Check booking_confirmation template.',
  priority: 'HIGH',
  tags: ['email', 'template'],
  metadata: { bookingId: 'bk_abc', templateId: 'booking_confirmation' },
});
console.log(created.id); // 'iss_…'
created = client.issues.create(
    app="lettings",
    reporter_id="user_123",
    title="Booking confirmation email shows wrong nights",
    description="Booked 3 nights, email says 2.",
    priority="HIGH",
)

An issue with app: 'PX' tagged plan-change (any case) is a plan-change request: it needs metadata.requestedPlan (BASIC, PRO or ENTERPRISE; otherwise 400 VALIDATION_ERROR), PRO and ENTERPRISE come with an Enterprise License: such a request goes to the licensing team as an issue (never a plan change) and fails with 409 CONTACT_LICENSING, error.details { email, id, existing }. One licensing request is open per organisation: a repeat while one is open files nothing and answers existing: true with the open request's id. While one of your organisation's is open, issues.create() fails with 409 CONFLICT and nothing is filed (see Issues).

Request a plan change

await client.issues.create({
  app: 'PX',
  reporterId: 'user_123',
  title: 'Upgrade to Basic',
  description: 'We need more webhooks.',
  tags: ['plan-change'],
  metadata: { requestedPlan: 'BASIC' }, // BASIC, PRO or ENTERPRISE; otherwise 400
});
// 409 CONFLICT while an earlier plan-change request is still open
// 409 CONTACT_LICENSING for PRO or ENTERPRISE: sent to the licensing team (they come with a license)
client.issues.create(
    app="PX",
    reporter_id="user_123",
    title="Upgrade to Basic",
    description="We need more webhooks.",
    tags=["plan-change"],
    metadata={"requestedPlan": "BASIC"},
)
_, err := client.Issues.Create(px.CreateIssueRequest{
	App:         "PX",
	ReporterID:  "user_123",
	Title:       "Upgrade to Basic",
	Description: "We need more webhooks.",
	Tags:        []string{"plan-change"},
	Metadata:    map[string]interface{}{"requestedPlan": "BASIC"},
})
// err is the API error: 400 VALIDATION_ERROR without a requestable plan, 409 CONFLICT while one is open,
// 409 CONTACT_LICENSING (px.ErrCodeContactLicensing) for PRO or ENTERPRISE

Fields

Issue record

FieldTypeDescription
idstringiss_<cuid>
organizationIdstringOwning tenant.
appstringSource app raising the issue.
reporterIdstringReporting user.
titlestring
descriptionstring
priority'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT'Defaults to MEDIUM.
status'OPEN' | 'IN_PROGRESS' | 'RESOLVED' | 'CLOSED'
tagsstring[]
metadataRecord<string, unknown>Free-form structured context.
createdAt / updatedAtstringISO 8601 timestamps.

Scopes required

MethodScope
issues.list()issues:read
issues.create()issues:write