githubEdit

Client SDKs

An official client SDK for the fulfillmenttools platform is provided, and clients can also be generated using third-party tools.

fulfillmenttools SDK

The official fulfillmenttools client SDK in TypeScript is available on GitHubarrow-up-right and npmarrow-up-right and can be used in any JavaScript runtime environment.

The TypeScript SDK is open source and licensed under the MIT License, allowing it to be used in projects and for contributions to its development.

circle-info

Learn how to set up and use the TypeScript SDK with the tutorial on GitHubarrow-up-right.

Client generation

Another approach is to use Swagger Codegenarrow-up-right, which can generate client SDKs from an OpenAPI specification for a wide range of programming languages.

Other tools, such as the OpenAPI Generatorarrow-up-right, can also be used. It is also possible to opt out of generating classes or types and instead manually model the required components for a specific use case.

circle-info

The Swagger Codegen GitHub repositoryarrow-up-right has more details on this tool.

TypeScript example

This example demonstrates how to generate a TypeScript client:

  1. Download the fulfillmenttools OpenAPI specification api.swagger.yamlarrow-up-right.

  2. Use the Swagger Codegen CLI tool to generate a TypeScript client:

    java -jar swagger-codegen-cli-3.0.62.jar generate \
      -i api.swagger.yaml \
      -l typescript-fetch \
      -o client
  3. This command generates the client classes in the client folder. Within this folder, the api.ts file contains the generated namespaces and interfaces.

  4. It is possible to use all the generated client classes, or to selectively use the generated enum, interface, namespace, and type definitions to implement a custom client.

Last updated