Download OpenAPI specification:
Logistics operations API for the 4klyft platform.
This API provides comprehensive endpoints for managing:
All API endpoints (except /api/docs and /api/v1/iam/auth/*) require JWT Bearer token authentication.
Include the token in the Authorization header:
Authorization: Bearer <your-jwt-token>
API requests are rate-limited to ensure fair usage. Standard limits are:
Retrieves the collection of BillingInvoice resources.
| page | integer Default: 1 The collection page number |
{- "totalItems": 0,
- "search": {
- "@type": "string",
- "template": "string",
- "variableRepresentation": "string",
- "mapping": [
- {
- "@type": "string",
- "variable": "string",
- "property": "string",
- "required": true
}
]
}, - "view": {
- "@id": "string",
- "@type": "string",
- "first": "string",
- "last": "string",
- "previous": "string",
- "next": "string"
}, - "member": [
- {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "number": "string",
- "tenantId": "string",
- "subscriptionId": "string",
- "periodStartedAt": "string",
- "periodEndsAt": "string",
- "lineItems": [
- {
- "property1": 0,
- "property2": 0
}
], - "subtotalCents": 0,
- "taxCents": 0,
- "totalCents": 0,
- "currency": "string",
- "status": "string",
- "issuedAt": "string",
- "dueAt": "string",
- "paidAt": "string",
- "paymentMethod": "string",
- "externalReference": "string",
- "createdAt": "string"
}
]
}Retrieves a BillingInvoice resource.
| id required | string BillingInvoice identifier |
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "number": "string",
- "tenantId": "string",
- "subscriptionId": "string",
- "periodStartedAt": "string",
- "periodEndsAt": "string",
- "lineItems": [
- {
- "property1": 0,
- "property2": 0
}
], - "subtotalCents": 0,
- "taxCents": 0,
- "totalCents": 0,
- "currency": "string",
- "status": "string",
- "issuedAt": "string",
- "dueAt": "string",
- "paidAt": "string",
- "paymentMethod": "string",
- "externalReference": "string",
- "createdAt": "string"
}Retrieves a BillingSubscription resource.
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "tenantId": "string",
- "planId": "string",
- "status": "string",
- "trialEndsAt": "string",
- "currentPeriodStartedAt": "string",
- "currentPeriodEndsAt": "string",
- "cancellationRequestedAt": "string",
- "cancellationEffectiveAt": "string",
- "paymentMethodRef": "string",
- "createdAt": "string"
}Creates a BillingSubscription resource.
The new BillingSubscription resource
| reason | string or null Optional cancellation reason for audit purposes. |
{- "reason": "string"
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "tenantId": "string",
- "planId": "string",
- "status": "string",
- "trialEndsAt": "string",
- "currentPeriodStartedAt": "string",
- "currentPeriodEndsAt": "string",
- "cancellationRequestedAt": "string",
- "cancellationEffectiveAt": "string",
- "paymentMethodRef": "string",
- "createdAt": "string"
}Creates a BillingSubscription resource.
The new BillingSubscription resource
| planId required | string |
{- "planId": "string"
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "id": "string",
- "tenantId": "string",
- "planId": "string",
- "status": "string",
- "trialEndsAt": "string",
- "currentPeriodStartedAt": "string",
- "currentPeriodEndsAt": "string",
- "cancellationRequestedAt": "string",
- "cancellationEffectiveAt": "string",
- "paymentMethodRef": "string",
- "createdAt": "string"
}Retrieves a BillingUsageReport resource.
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "tenantId": "string",
- "from": "string",
- "to": "string",
- "totals": [
- {
- "property1": 0,
- "property2": 0
}
]
}