How paymentscanada/api-toolkit works
Payments Canada API Toolkit is a collection of API consumer examples and reusable API reference artifacts, rather than one deployed application. Its principal user workflow is to choose a language sample, authenticate with consumer credentials, and call FIF or CCIN endpoints; separate Postman collections and OpenAPI specifications support manual exploration and API-contract reference. The Angular sample shows the clearest end-to-end flow, including lookup and extract features. Other language samples are represented as their own implementations. Only relationships supported by the README or shown source/reference index are drawn; unsampled Postman and specification contents are not inferred.
Main entry points: app.module.ts Application module · access-token.service.ts OAuth token service · fif/services FIF branch and extracts · ccin/services CCIN lookup and extracts
Components 22
Angular sample
- Angular bootstrap
code-samples/angular/src/main.ts - Application module
code-samples/angular/src/app/app.module.ts - OAuth token service
code-samples/angular/src/app/access-token/access-token.service.ts - FIF branch and extracts
code-samples/angular/src/app/fif/services - CCIN lookup and extracts
code-samples/angular/src/app/ccin/services - Search and extract views
code-samples/angular/src/app - API configuration
code-samples/angular/src/environments/environment.ts
Other samples
- Node.js client samples
code-samples/nodejs - Node REST client
code-samples/nodejs/rest-client.js - Node API configuration
code-samples/nodejs/config.js - Java REST sample
code-samples/java/src/main/java/ca/payments/example/restclient/RestClientApplication.java - Kotlin sample entry
code-samples/kotlin/src/main/kotlin/ca/payments/api_sample/kotlin/Main.kt - Kotlin API repository
code-samples/kotlin/src/main/kotlin/ca/payments/api_sample/kotlin/repository/ApiRepository.kt
Postman collections
- FIF and CCIN collections
postman-collection/FIF-and-CCIN - Lynx collection
postman-collection/Lynx - RTR collection
postman-collection/RTR-Sandbox
API specifications
- FIF and CCIN OpenAPI
swagger-oas/FIF-and-CCIN - RTR OpenAPI
swagger-oas/RTR-Sandbox
Other components
- API consumer
- Payments Canada API
- Postman user
- API portal reader
Connections 23
- Angular bootstrap → Application module: bootstraps
code-samples/angular/src/main.ts - Application module → OAuth token service: registers
code-samples/angular/src/app/app.module.ts - Application module → FIF branch and extracts: registers
code-samples/angular/src/app/app.module.ts - Application module → CCIN lookup and extracts: registers
code-samples/angular/src/app/app.module.ts - Application module → Search and extract views: declares
code-samples/angular/src/app/app.module.ts - Search and extract views → FIF branch and extracts: uses
code-samples/angular/src/app/fif/components/fif-dprn-search/fif-dprn-search.component.ts - Search and extract views → CCIN lookup and extracts: uses
code-samples/angular/src/app/ccin/components/ccin-search/ccin-search.component.ts - FIF branch and extracts → OAuth token service: requests token
code-samples/angular/src/app/fif/services/fif-branch/fif-branch.service.ts - CCIN lookup and extracts → OAuth token service: requests token
code-samples/angular/src/app/ccin/services/ccin-extracts/ccin-extracts.service.ts - FIF branch and extracts → Payments Canada API: calls endpoints
code-samples/angular/src/app/fif/services/fif-extract/fif-extract.service.ts - CCIN lookup and extracts → Payments Canada API: calls endpoints
code-samples/angular/src/app/ccin/services/ccin-lookup/ccin-lookup.service.ts - OAuth token service → Payments Canada API: requests token
code-samples/angular/src/app/access-token/access-token.service.ts - API configuration → OAuth token service: configures
code-samples/angular/src/app/access-token/access-token.service.ts - API consumer → Angular bootstrap: runs sample
- Node.js client samples → Node REST client: includes
code-samples/nodejs/index.js - Node REST client → Node API configuration: reads config
code-samples/nodejs/rest-client.js - Node.js client samples → Payments Canada API: calls endpoints
code-samples/nodejs/rest-client.js - Kotlin sample entry → Kotlin API repository: uses
code-samples/kotlin/src/main/kotlin/ca/payments/api_sample/kotlin/Main.kt - Kotlin API repository → Payments Canada API: calls endpoints
code-samples/kotlin/src/main/kotlin/ca/payments/api_sample/kotlin/repository/ApiRepository.kt - Java REST sample → Payments Canada API: API sample
- Postman user → FIF and CCIN collections: imports
README.md - API portal reader → FIF and CCIN OpenAPI: consults
README.md - API portal reader → RTR OpenAPI: consults
README.md