TM Forum API conventions
Nambikk follows the TM Forum REST API design guidelines (TMF630) and the official OpenAPI description of each API. Where Nambikk needs more than a standard resource carries, it uses a TM Forum subtype rather than changing the standard resource.
Version and base paths
Each API implements its latest production release: v5 where TM Forum has
published one, otherwise the latest v4. Every API has its own base path, as
used by the TM Forum conformance test kits, on the same host as the native
API: https://{host}/tmf-api/....
| API | Release | Base path |
|---|---|---|
| TMF620 | 5.0.0 | /tmf-api/productCatalogManagement/v5 |
| TMF679 | 5.0.0 | /tmf-api/productOfferingQualification/v5 |
| TMF648 | 4.0.0 | /tmf-api/quoteManagement/v4 |
| TMF622 | 5.0.0 | /tmf-api/productOrderingManagement/v5 |
| TMF637 | 5.0.0 | /tmf-api/productInventoryManagement/v5 |
| TMF629 | 5.0.0 | /tmf-api/customerManagement/v5 |
| TMF632 | 5.0.0 | /tmf-api/partyManagement/v5 |
| TMF666 | 5.0.0 | /tmf-api/accountManagement/v5 |
TMF648 Quote 5.0.0 is a TM Forum pre-production release, so TMF648 uses
4.0.0. In v4, @type is optional and
characteristics are untyped Characteristic entries; Nambikk still sends
@type on every entity.
Authentication and tenant
TM Forum calls use the same OAuth 2.0 tokens and scopes as the native Platform API. The tenant comes from the verified token; nothing in a TM Forum request selects it. A TM Forum operation needs every scope its native calls need.
The selling channel is the Catalogue View. TM Forum clients pass it as the
catalog id on TMF620, as the channel reference on orders, and as channel
on the NambikkQuote subtype, because TMF648 v4 has no channel attribute.
Polymorphism
Every resource and every embedded entity carries @type; in v5 it is
mandatory, including on references and on request bodies. @baseType names
the standard parent when @type is a subtype, and @schemaLocation points to
the subtype's JSON Schema.
{
"id": "7c2d9a10-3e4f-4b5a-9c6d-1e2f3a4b5c6d",
"@type": "NambikkQuote",
"@baseType": "Quote",
"@schemaLocation": "https://developers.nambikk.ai/tmf/schemas/NambikkQuote.schema.json",
"state": "inProgress",
"nativeStatus": "PRICED"
}
Nambikk subtypes add native facts that have no standard attribute, such as the native status or a product's value level. Clients that do not know the subtype can read the standard parent attributes unchanged.
References use the standard reference types (for example ProductOfferingRef
with id, href, name and @referredType) and, where the standard allows
it, the RefOrValue form, which is either the reference or the full value.
Characteristics are typed by @type, for example StringCharacteristic,
NumberCharacteristic, BooleanCharacteristic or ObjectCharacteristic,
each with a value of that type.
Querying
| Feature | Behaviour |
|---|---|
| Paging | offset and limit. List responses return 200 with X-Total-Count and X-Result-Count. |
| Attribute selection | fields=name,state returns only those attributes plus id, href and @type. fields is also accepted on retrieve, create and update. |
| Filtering | attribute=value on the attributes each page lists, for example state=inProgress or relatedParty.id=.... Unsupported filters return 400. |
| Sorting | sort is not supported. Native default ordering applies. |
The native API pages with cursors. The adapter translates offset and limit
to cursors; very deep offsets are slower than the native cursor.
Writes
| Feature | Behaviour |
|---|---|
| Create | POST returns 201 Created with the full resource and a Location header. |
| Update | PATCH accepts application/merge-patch+json. JSON Patch is not supported. |
| Concurrency | Quotes carry version. A PATCH based on an older version fails with 409; the client reads the quote again. |
| Retries | Clients may send Idempotency-Key; the adapter uses it as the native command id, so a retried request is applied once. |
| Delete | DELETE returns 204 No Content where offered. |
Errors
Errors use the TM Forum Error resource:
{
"@type": "Error",
"code": "409",
"reason": "cart_version_conflict",
"message": "The quote changed since version 6.",
"status": "409",
"referenceError": "https://developers.nambikk.ai/foundations/errors"
}
reason carries the native error code, so clients can use the same error
handling as on the native API.
Enumerations
State and status values are returned exactly as the official OpenAPI file
spells them, so standard TM Forum clients and conformance tests read them unchanged. Where a TM Forum file has a
spelling defect, for example the TMF637 product status value "aborted "
with a trailing space, Nambikk follows the file and notes it on the API page.