Skip to content

GraphQL API

The TradeSafe API using GraphQL. A basic understanding of GraphQL is required to incorporate the api into your application.

A GraphQL Client is recommended when using the API, there are many options available for all the major programming languages.

The API uses enums for many fields. A list of these can be retrieved using an introspection query or can be viewed using the GraphQL Playground


Basic Transactional Workflow

API actions need to be preformed in a set order before the next action in the sequence can be performed.

These actions are but not limited to:

  1. Generate a user token for each user in your application.
  2. Create a transaction
  3. Generate a payment link
  4. Prompt user to make a deposit
  5. (Optional) Amend one or more allocations
  6. Accept one or more allocation