TradeSafe API
TradeSafe GraphQL API Spec
Contact
TradeSafe Support
support@tradesafe.co.za
Terms of Service: https://www.tradesafe.co.za/documents/terms_and_conditions.pdf
API Endpoints
Production Server:
https://api.tradesafe.co.za/graphql
Development Server:
https://api-developer.tradesafe.dev/graphql
Version: 1.2.0
Queries
allocation
Example
Query
query allocation($id: ID!) {
allocation(id: $id) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
query allocation($id: ID!) {
allocation(id: $id) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"allocation": {
"id": ID,
"title": "abc123",
"description": "xyz789",
"auxiliaryData": {},
"state": AllocationState,
"value": 123.45,
"units": 987.65,
"unitCost": 123.45,
"initiatedDate": DateTime,
"daysToDeliver": 123.45,
"deliverBy": DateTime,
"daysToInspect": 987.65,
"inspectBy": DateTime,
"address": Address,
"deliveryInstructions": {},
"currentAmendment": Amendment,
"acceptedAmendment": Amendment,
"amendments": [Amendment],
"payments": [Payments],
"hasAccepted": true,
"acceptances": [Acceptance],
"calculation": AllocationCalculation,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
apiProfile
Example
Query
query apiProfile {
apiProfile {
id
name
token
organizations {
...OrganizationApiProfileFragment
}
}
}
query apiProfile {
apiProfile {
id
name
token
organizations {
...OrganizationApiProfileFragment
}
}
}
Response
{
"data": {
"apiProfile": {
"id": ID,
"name": "xyz789",
"token": "abc123",
"organizations": [OrganizationApiProfile]
}
}
}
clientInfo
Example
Query
query clientInfo {
clientInfo {
id
name
callback
organizationId
production
}
}
query clientInfo {
clientInfo {
id
name
callback
organizationId
production
}
}
Response
{
"data": {
"clientInfo": {
"id": ID,
"name": "xyz789",
"callback": "abc123",
"organizationId": ID,
"production": true
}
}
}
party
Party
Name | Description |
---|---|
id -
ID!
|
|
trashed -
Trashed
|
Allows to filter if trashed elements should be fetched |
Example
Query
query party($id: ID!, $trashed: Trashed) {
party(id: $id, trashed: $trashed) {
id
name
details {
...PartyDetailsFragment
}
email
role
avatar
fee
feeType
feeAllocation
acceptance {
...AcceptanceFragment
}
owner
calculation {
...PartyCalculationFragment
}
createdAt
updatedAt
deletedAt
reference
settings {
...PartySettingsFragment
}
}
}
Variables
{"id": ID, "trashed": Trashed}
query party($id: ID!, $trashed: Trashed) {
party(id: $id, trashed: $trashed) {
id
name
details {
...PartyDetailsFragment
}
email
role
avatar
fee
feeType
feeAllocation
acceptance {
...AcceptanceFragment
}
owner
calculation {
...PartyCalculationFragment
}
createdAt
updatedAt
deletedAt
reference
settings {
...PartySettingsFragment
}
}
}
{"id": ID, "trashed": Trashed}
Response
{
"data": {
"party": {
"id": ID,
"name": "xyz789",
"details": PartyDetails,
"email": "xyz789",
"role": Role,
"avatar": "xyz789",
"fee": 123.45,
"feeType": FeeType,
"feeAllocation": FeeAllocation,
"acceptance": Acceptance,
"owner": false,
"calculation": PartyCalculation,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime,
"reference": "xyz789",
"settings": PartySettings
}
}
}
reportTransactionSummary
TransactionPaginator
Name | Description |
---|---|
startDate -
Date
|
|
endDate -
Date
|
|
first -
Int
|
Limits number of fetched elements. Default = 10 |
page -
Int
|
The offset from which elements are returned |
trashed -
Trashed
|
Allows to filter if trashed elements should be fetched |
Example
Query
query reportTransactionSummary($startDate: Date, $endDate: Date, $first: Int, $page: Int, $trashed: Trashed) {
reportTransactionSummary(startDate: $startDate, endDate: $endDate, first: $first, page: $page, trashed: $trashed) {
paginatorInfo {
...PaginatorInfoFragment
}
data {
...TransactionFragment
}
}
}
Variables
{
"startDate": "2021-09-20T07:53:33.569Z",
"endDate": "2021-03-20T07:53:33.569Z",
"first": 10,
"page": 987,
"trashed": Trashed
}
query reportTransactionSummary($startDate: Date, $endDate: Date, $first: Int, $page: Int, $trashed: Trashed) {
reportTransactionSummary(startDate: $startDate, endDate: $endDate, first: $first, page: $page, trashed: $trashed) {
paginatorInfo {
...PaginatorInfoFragment
}
data {
...TransactionFragment
}
}
}
{
"startDate": "2021-09-20T07:53:33.569Z",
"endDate": "2021-03-20T07:53:33.569Z",
"first": 10,
"page": 987,
"trashed": Trashed
}
Response
{
"data": {
"reportTransactionSummary": {
"paginatorInfo": PaginatorInfo,
"data": [Transaction]
}
}
}
reportTransactionSummaryDownloadCsv
Example
Query
query reportTransactionSummaryDownloadCsv($startDate: Date, $endDate: Date) {
reportTransactionSummaryDownloadCsv(startDate: $startDate, endDate: $endDate)
}
Variables
{"startDate": "2021-03-20T07:53:33.569Z", "endDate": "2021-09-20T07:53:33.569Z"}
query reportTransactionSummaryDownloadCsv($startDate: Date, $endDate: Date) {
reportTransactionSummaryDownloadCsv(startDate: $startDate, endDate: $endDate)
}
{"startDate": "2021-03-20T07:53:33.569Z", "endDate": "2021-09-20T07:53:33.569Z"}
Response
{"data": {"reportTransactionSummaryDownloadCsv": "xyz789"}}
reportTransactionSummaryDownloadPdf
Example
Query
query reportTransactionSummaryDownloadPdf($startDate: Date, $endDate: Date) {
reportTransactionSummaryDownloadPdf(startDate: $startDate, endDate: $endDate)
}
Variables
{"startDate": "2021-03-20T07:53:33.569Z", "endDate": "2021-03-20T07:53:33.569Z"}
query reportTransactionSummaryDownloadPdf($startDate: Date, $endDate: Date) {
reportTransactionSummaryDownloadPdf(startDate: $startDate, endDate: $endDate)
}
{"startDate": "2021-03-20T07:53:33.569Z", "endDate": "2021-03-20T07:53:33.569Z"}
Response
{"data": {"reportTransactionSummaryDownloadPdf": "xyz789"}}
stats
Example
Query
query stats {
stats {
summary {
...StatsSummaryFragment
}
gateways {
...StatsGatewaysFragment
}
transactions {
...StatsTransactionsFragment
}
industries {
...StatsIndustriesFragment
}
funds {
...StatsFundsFragment
}
}
}
query stats {
stats {
summary {
...StatsSummaryFragment
}
gateways {
...StatsGatewaysFragment
}
transactions {
...StatsTransactionsFragment
}
industries {
...StatsIndustriesFragment
}
funds {
...StatsFundsFragment
}
}
}
Response
{
"data": {
"stats": {
"summary": StatsSummary,
"gateways": StatsGateways,
"transactions": StatsTransactions,
"industries": [StatsIndustries],
"funds": StatsFunds
}
}
}
token
Token
Name | Description |
---|---|
id -
ID!
|
|
trashed -
Trashed
|
Allows to filter if trashed elements should be fetched |
Example
Query
query token($id: ID!, $trashed: Trashed) {
token(id: $id, trashed: $trashed) {
id
name
legalName
reference
user {
...TokenUserFragment
}
organization {
...TokenOrganizationFragment
}
bankAccount {
...TokenBankAccountFragment
}
settings {
...TokenSettingsFragment
}
balance
}
}
Variables
{"id": ID, "trashed": Trashed}
query token($id: ID!, $trashed: Trashed) {
token(id: $id, trashed: $trashed) {
id
name
legalName
reference
user {
...TokenUserFragment
}
organization {
...TokenOrganizationFragment
}
bankAccount {
...TokenBankAccountFragment
}
settings {
...TokenSettingsFragment
}
balance
}
}
{"id": ID, "trashed": Trashed}
Response
{
"data": {
"token": {
"id": ID,
"name": "abc123",
"legalName": "abc123",
"reference": "abc123",
"user": TokenUser,
"organization": TokenOrganization,
"bankAccount": TokenBankAccount,
"settings": TokenSettings,
"balance": 123.45
}
}
}
tokens
TokenPaginator
Name | Description |
---|---|
first -
Int
|
Limits number of fetched elements. Default = 10 |
page -
Int
|
The offset from which elements are returned |
Example
Query
query tokens($first: Int, $page: Int) {
tokens(first: $first, page: $page) {
paginatorInfo {
...PaginatorInfoFragment
}
data {
...TokenFragment
}
}
}
Variables
{"first": 10, "page": 123}
query tokens($first: Int, $page: Int) {
tokens(first: $first, page: $page) {
paginatorInfo {
...PaginatorInfoFragment
}
data {
...TokenFragment
}
}
}
{"first": 10, "page": 123}
Response
{
"data": {
"tokens": {
"paginatorInfo": PaginatorInfo,
"data": [Token]
}
}
}
transaction
Transaction
Name | Description |
---|---|
id -
ID!
|
|
trashed -
Trashed
|
Allows to filter if trashed elements should be fetched |
Example
Query
query transaction($id: ID!, $trashed: Trashed) {
transaction(id: $id, trashed: $trashed) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "trashed": Trashed}
query transaction($id: ID!, $trashed: Trashed) {
transaction(id: $id, trashed: $trashed) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "trashed": Trashed}
Response
{
"data": {
"transaction": {
"id": ID,
"uuid": ID,
"reference": "abc123",
"metadata": TransactionMetadata,
"privacy": TransactionPrivacy,
"title": "xyz789",
"description": "xyz789",
"auxiliaryData": {},
"state": State,
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"calculation": Calculation,
"acceptances": [Acceptance],
"deposits": [Deposit],
"payments": [Payments],
"address": Address,
"deliveryInstructions": "xyz789",
"allocations": [Allocation],
"drawdowns": [Drawdown],
"parties": [Party],
"comments": [Comment],
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
transactionDeposit
Example
Query
query transactionDeposit($tokenId: ID) {
transactionDeposit(tokenId: $tokenId) {
name
number
branch
type
reference
}
}
Variables
{"tokenId": ID}
query transactionDeposit($tokenId: ID) {
transactionDeposit(tokenId: $tokenId) {
name
number
branch
type
reference
}
}
{"tokenId": ID}
Response
{
"data": {
"transactionDeposit": {
"name": "xyz789",
"number": "xyz789",
"branch": "abc123",
"type": "abc123",
"reference": "xyz789"
}
}
}
transactionDepositLink
Example
Query
query transactionDepositLink($id: ID!) {
transactionDepositLink(id: $id)
}
Variables
{"id": ID}
query transactionDepositLink($id: ID!) {
transactionDepositLink(id: $id)
}
{"id": ID}
Response
{"data": {"transactionDepositLink": "xyz789"}}
transactions
TransactionPaginator
Name | Description |
---|---|
filter -
TransactionFilterInput
|
|
orderBy -
[TransactionsOrderByOrderByClause!]
|
|
first -
Int
|
Limits number of fetched elements. Default = 10 |
page -
Int
|
The offset from which elements are returned |
trashed -
Trashed
|
Allows to filter if trashed elements should be fetched |
Example
Query
query transactions($filter: TransactionFilterInput, $orderBy: [TransactionsOrderByOrderByClause!], $first: Int, $page: Int, $trashed: Trashed) {
transactions(filter: $filter, orderBy: $orderBy, first: $first, page: $page, trashed: $trashed) {
paginatorInfo {
...PaginatorInfoFragment
}
data {
...TransactionFragment
}
}
}
Variables
{
"filter": TransactionFilterInput,
"orderBy": [TransactionsOrderByOrderByClause],
"first": 10,
"page": 987,
"trashed": Trashed
}
query transactions($filter: TransactionFilterInput, $orderBy: [TransactionsOrderByOrderByClause!], $first: Int, $page: Int, $trashed: Trashed) {
transactions(filter: $filter, orderBy: $orderBy, first: $first, page: $page, trashed: $trashed) {
paginatorInfo {
...PaginatorInfoFragment
}
data {
...TransactionFragment
}
}
}
{
"filter": TransactionFilterInput,
"orderBy": [TransactionsOrderByOrderByClause],
"first": 10,
"page": 987,
"trashed": Trashed
}
Response
{
"data": {
"transactions": {
"paginatorInfo": PaginatorInfo,
"data": [Transaction]
}
}
}
userinfo
Example
Query
query userinfo {
userinfo {
id
sub
first_name
last_name
email
cellphonenumber
}
}
query userinfo {
userinfo {
id
sub
first_name
last_name
email
cellphonenumber
}
}
Response
{
"data": {
"userinfo": {
"id": ID,
"sub": ID,
"first_name": "abc123",
"last_name": "xyz789",
"email": Email,
"cellphonenumber": "xyz789"
}
}
}
Mutations
allocationAcceptDelivery
Example
Query
mutation allocationAcceptDelivery($id: ID!) {
allocationAcceptDelivery(id: $id) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
mutation allocationAcceptDelivery($id: ID!) {
allocationAcceptDelivery(id: $id) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"allocationAcceptDelivery": {
"id": ID,
"title": "abc123",
"description": "abc123",
"auxiliaryData": {},
"state": AllocationState,
"value": 123.45,
"units": 123.45,
"unitCost": 123.45,
"initiatedDate": DateTime,
"daysToDeliver": 987.65,
"deliverBy": DateTime,
"daysToInspect": 987.65,
"inspectBy": DateTime,
"address": Address,
"deliveryInstructions": {},
"currentAmendment": Amendment,
"acceptedAmendment": Amendment,
"amendments": [Amendment],
"payments": [Payments],
"hasAccepted": false,
"acceptances": [Acceptance],
"calculation": AllocationCalculation,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
allocationCourierDetails
Example
Query
mutation allocationCourierDetails($id: ID!, $name: String!, $code: String!) {
allocationCourierDetails(id: $id, name: $name, code: $code) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "name": "abc123", "code": "abc123"}
mutation allocationCourierDetails($id: ID!, $name: String!, $code: String!) {
allocationCourierDetails(id: $id, name: $name, code: $code) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "name": "abc123", "code": "abc123"}
Response
{
"data": {
"allocationCourierDetails": {
"id": ID,
"title": "abc123",
"description": "xyz789",
"auxiliaryData": {},
"state": AllocationState,
"value": 123.45,
"units": 987.65,
"unitCost": 987.65,
"initiatedDate": DateTime,
"daysToDeliver": 987.65,
"deliverBy": DateTime,
"daysToInspect": 123.45,
"inspectBy": DateTime,
"address": Address,
"deliveryInstructions": {},
"currentAmendment": Amendment,
"acceptedAmendment": Amendment,
"amendments": [Amendment],
"payments": [Payments],
"hasAccepted": true,
"acceptances": [Acceptance],
"calculation": AllocationCalculation,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
allocationDisputeDelivery
Example
Query
mutation allocationDisputeDelivery($id: ID!, $comment: String!) {
allocationDisputeDelivery(id: $id, comment: $comment) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "comment": "abc123"}
mutation allocationDisputeDelivery($id: ID!, $comment: String!) {
allocationDisputeDelivery(id: $id, comment: $comment) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "comment": "abc123"}
Response
{
"data": {
"allocationDisputeDelivery": {
"id": ID,
"title": "abc123",
"description": "abc123",
"auxiliaryData": {},
"state": AllocationState,
"value": 987.65,
"units": 123.45,
"unitCost": 987.65,
"initiatedDate": DateTime,
"daysToDeliver": 123.45,
"deliverBy": DateTime,
"daysToInspect": 123.45,
"inspectBy": DateTime,
"address": Address,
"deliveryInstructions": {},
"currentAmendment": Amendment,
"acceptedAmendment": Amendment,
"amendments": [Amendment],
"payments": [Payments],
"hasAccepted": true,
"acceptances": [Acceptance],
"calculation": AllocationCalculation,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
allocationStartDelivery
Example
Query
mutation allocationStartDelivery($id: ID!) {
allocationStartDelivery(id: $id) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
mutation allocationStartDelivery($id: ID!) {
allocationStartDelivery(id: $id) {
id
title
description
auxiliaryData
state
value
units
unitCost
initiatedDate
daysToDeliver
deliverBy
daysToInspect
inspectBy
address {
...AddressFragment
}
deliveryInstructions
currentAmendment {
...AmendmentFragment
}
acceptedAmendment {
...AmendmentFragment
}
amendments {
...AmendmentFragment
}
payments {
...PaymentsFragment
}
hasAccepted
acceptances {
...AcceptanceFragment
}
calculation {
...AllocationCalculationFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"allocationStartDelivery": {
"id": ID,
"title": "xyz789",
"description": "xyz789",
"auxiliaryData": {},
"state": AllocationState,
"value": 123.45,
"units": 123.45,
"unitCost": 123.45,
"initiatedDate": DateTime,
"daysToDeliver": 987.65,
"deliverBy": DateTime,
"daysToInspect": 123.45,
"inspectBy": DateTime,
"address": Address,
"deliveryInstructions": {},
"currentAmendment": Amendment,
"acceptedAmendment": Amendment,
"amendments": [Amendment],
"payments": [Payments],
"hasAccepted": false,
"acceptances": [Acceptance],
"calculation": AllocationCalculation,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
amendmentAccept
Example
Query
mutation amendmentAccept($id: ID!) {
amendmentAccept(id: $id) {
id
state
value
units
unitCost
daysToDeliver
deliverBy
daysToInspect
inspectBy
comments {
...CommentFragment
}
acceptances {
...AcceptanceFragment
}
accepted
hasAccepted
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
mutation amendmentAccept($id: ID!) {
amendmentAccept(id: $id) {
id
state
value
units
unitCost
daysToDeliver
deliverBy
daysToInspect
inspectBy
comments {
...CommentFragment
}
acceptances {
...AcceptanceFragment
}
accepted
hasAccepted
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"amendmentAccept": {
"id": ID,
"state": AmendmentState,
"value": 123.45,
"units": 987.65,
"unitCost": 123.45,
"daysToDeliver": 123.45,
"deliverBy": DateTime,
"daysToInspect": 987.65,
"inspectBy": DateTime,
"comments": [Comment],
"acceptances": [Acceptance],
"accepted": true,
"hasAccepted": true,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
amendmentCancel
Example
Query
mutation amendmentCancel($id: ID!, $comment: String!) {
amendmentCancel(id: $id, comment: $comment) {
id
state
value
units
unitCost
daysToDeliver
deliverBy
daysToInspect
inspectBy
comments {
...CommentFragment
}
acceptances {
...AcceptanceFragment
}
accepted
hasAccepted
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "comment": "xyz789"}
mutation amendmentCancel($id: ID!, $comment: String!) {
amendmentCancel(id: $id, comment: $comment) {
id
state
value
units
unitCost
daysToDeliver
deliverBy
daysToInspect
inspectBy
comments {
...CommentFragment
}
acceptances {
...AcceptanceFragment
}
accepted
hasAccepted
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "comment": "xyz789"}
Response
{
"data": {
"amendmentCancel": {
"id": ID,
"state": AmendmentState,
"value": 123.45,
"units": 987.65,
"unitCost": 987.65,
"daysToDeliver": 987.65,
"deliverBy": DateTime,
"daysToInspect": 123.45,
"inspectBy": DateTime,
"comments": [Comment],
"acceptances": [Acceptance],
"accepted": true,
"hasAccepted": false,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
amendmentCreate
Example
Query
mutation amendmentCreate($allocationId: ID!, $input: AmendmentInput!) {
amendmentCreate(allocationId: $allocationId, input: $input) {
id
state
value
units
unitCost
daysToDeliver
deliverBy
daysToInspect
inspectBy
comments {
...CommentFragment
}
acceptances {
...AcceptanceFragment
}
accepted
hasAccepted
createdAt
updatedAt
deletedAt
}
}
Variables
{
"allocationId": ID,
"input": AmendmentInput
}
mutation amendmentCreate($allocationId: ID!, $input: AmendmentInput!) {
amendmentCreate(allocationId: $allocationId, input: $input) {
id
state
value
units
unitCost
daysToDeliver
deliverBy
daysToInspect
inspectBy
comments {
...CommentFragment
}
acceptances {
...AcceptanceFragment
}
accepted
hasAccepted
createdAt
updatedAt
deletedAt
}
}
{
"allocationId": ID,
"input": AmendmentInput
}
Response
{
"data": {
"amendmentCreate": {
"id": ID,
"state": AmendmentState,
"value": 123.45,
"units": 987.65,
"unitCost": 123.45,
"daysToDeliver": 123.45,
"deliverBy": DateTime,
"daysToInspect": 987.65,
"inspectBy": DateTime,
"comments": [Comment],
"acceptances": [Acceptance],
"accepted": true,
"hasAccepted": true,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
amendmentDecline
Example
Query
mutation amendmentDecline($id: ID!, $comment: String!) {
amendmentDecline(id: $id, comment: $comment) {
id
state
value
units
unitCost
daysToDeliver
deliverBy
daysToInspect
inspectBy
comments {
...CommentFragment
}
acceptances {
...AcceptanceFragment
}
accepted
hasAccepted
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "comment": "abc123"}
mutation amendmentDecline($id: ID!, $comment: String!) {
amendmentDecline(id: $id, comment: $comment) {
id
state
value
units
unitCost
daysToDeliver
deliverBy
daysToInspect
inspectBy
comments {
...CommentFragment
}
acceptances {
...AcceptanceFragment
}
accepted
hasAccepted
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "comment": "abc123"}
Response
{
"data": {
"amendmentDecline": {
"id": ID,
"state": AmendmentState,
"value": 123.45,
"units": 123.45,
"unitCost": 123.45,
"daysToDeliver": 987.65,
"deliverBy": DateTime,
"daysToInspect": 987.65,
"inspectBy": DateTime,
"comments": [Comment],
"acceptances": [Acceptance],
"accepted": true,
"hasAccepted": false,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
calculator
Example
Query
mutation calculator($input: CalculatorInput!) {
calculator(input: $input) {
baseValue
processingFees {
...ProcessingFeesFragment
}
processingFeePercentage
processingFeeValue
processingFeeVat
processingFeeTotal
totalValue
totalDeposits
processingFeeOzow
totalValueOzow
processingFeeSnapscan
totalValueSnapscan
gatewayProcessingFees {
...GatewayProcessingFeesFragment
}
parties {
...PartyCalculationFragment
}
allocations {
...AllocationCalculationFragment
}
drawdownTotals {
...DrawdownCalculationFragment
}
}
}
Variables
{"input": CalculatorInput}
mutation calculator($input: CalculatorInput!) {
calculator(input: $input) {
baseValue
processingFees {
...ProcessingFeesFragment
}
processingFeePercentage
processingFeeValue
processingFeeVat
processingFeeTotal
totalValue
totalDeposits
processingFeeOzow
totalValueOzow
processingFeeSnapscan
totalValueSnapscan
gatewayProcessingFees {
...GatewayProcessingFeesFragment
}
parties {
...PartyCalculationFragment
}
allocations {
...AllocationCalculationFragment
}
drawdownTotals {
...DrawdownCalculationFragment
}
}
}
{"input": CalculatorInput}
Response
{
"data": {
"calculator": {
"baseValue": 123.45,
"processingFees": ProcessingFees,
"processingFeePercentage": 123.45,
"processingFeeValue": 123.45,
"processingFeeVat": 123.45,
"processingFeeTotal": 987.65,
"totalValue": 987.65,
"totalDeposits": 123.45,
"processingFeeOzow": 987.65,
"totalValueOzow": 123.45,
"processingFeeSnapscan": 987.65,
"totalValueSnapscan": 123.45,
"gatewayProcessingFees": GatewayProcessingFees,
"parties": [PartyCalculation],
"allocations": [AllocationCalculation],
"drawdownTotals": DrawdownCalculation
}
}
}
drawdownApprove
Example
Query
mutation drawdownApprove($id: ID!) {
drawdownApprove(id: $id) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
mutation drawdownApprove($id: ID!) {
drawdownApprove(id: $id) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"drawdownApprove": {
"id": ID,
"title": "xyz789",
"description": "xyz789",
"value": 123.45,
"state": DrawdownState,
"reference": "xyz789",
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
drawdownCancel
Example
Query
mutation drawdownCancel($id: ID!, $comment: String) {
drawdownCancel(id: $id, comment: $comment) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "comment": "xyz789"}
mutation drawdownCancel($id: ID!, $comment: String) {
drawdownCancel(id: $id, comment: $comment) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "comment": "xyz789"}
Response
{
"data": {
"drawdownCancel": {
"id": ID,
"title": "xyz789",
"description": "xyz789",
"value": 123.45,
"state": DrawdownState,
"reference": "xyz789",
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
drawdownCreate
Example
Query
mutation drawdownCreate($input: DrawdownInput) {
drawdownCreate(input: $input) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"input": DrawdownInput}
mutation drawdownCreate($input: DrawdownInput) {
drawdownCreate(input: $input) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"input": DrawdownInput}
Response
{
"data": {
"drawdownCreate": {
"id": ID,
"title": "xyz789",
"description": "xyz789",
"value": 987.65,
"state": DrawdownState,
"reference": "abc123",
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
drawdownDelete
Example
Query
mutation drawdownDelete($id: ID!) {
drawdownDelete(id: $id) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
mutation drawdownDelete($id: ID!) {
drawdownDelete(id: $id) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"drawdownDelete": {
"id": ID,
"title": "abc123",
"description": "xyz789",
"value": 987.65,
"state": DrawdownState,
"reference": "xyz789",
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
drawdownReject
Example
Query
mutation drawdownReject($id: ID!, $comment: String) {
drawdownReject(id: $id, comment: $comment) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "comment": "xyz789"}
mutation drawdownReject($id: ID!, $comment: String) {
drawdownReject(id: $id, comment: $comment) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "comment": "xyz789"}
Response
{
"data": {
"drawdownReject": {
"id": ID,
"title": "xyz789",
"description": "xyz789",
"value": 987.65,
"state": DrawdownState,
"reference": "xyz789",
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
drawdownRequest
Example
Query
mutation drawdownRequest($id: ID!) {
drawdownRequest(id: $id) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
mutation drawdownRequest($id: ID!) {
drawdownRequest(id: $id) {
id
title
description
value
state
reference
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"drawdownRequest": {
"id": ID,
"title": "xyz789",
"description": "abc123",
"value": 987.65,
"state": DrawdownState,
"reference": "abc123",
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
TokenAccountWithdraw
Example
Query
mutation TokenAccountWithdraw($id: ID!) {
TokenAccountWithdraw(id: $id)
}
Variables
{"id": ID}
mutation TokenAccountWithdraw($id: ID!) {
TokenAccountWithdraw(id: $id)
}
{"id": ID}
Response
{"data": {"TokenAccountWithdraw": false}}
tokenCreate
Example
Query
mutation tokenCreate($input: TokenInput) {
tokenCreate(input: $input) {
id
name
legalName
reference
user {
...TokenUserFragment
}
organization {
...TokenOrganizationFragment
}
bankAccount {
...TokenBankAccountFragment
}
settings {
...TokenSettingsFragment
}
balance
}
}
Variables
{"input": TokenInput}
mutation tokenCreate($input: TokenInput) {
tokenCreate(input: $input) {
id
name
legalName
reference
user {
...TokenUserFragment
}
organization {
...TokenOrganizationFragment
}
bankAccount {
...TokenBankAccountFragment
}
settings {
...TokenSettingsFragment
}
balance
}
}
{"input": TokenInput}
Response
{
"data": {
"tokenCreate": {
"id": ID,
"name": "abc123",
"legalName": "xyz789",
"reference": "abc123",
"user": TokenUser,
"organization": TokenOrganization,
"bankAccount": TokenBankAccount,
"settings": TokenSettings,
"balance": 123.45
}
}
}
tokenUpdate
Example
Query
mutation tokenUpdate($id: ID!, $input: TokenInput) {
tokenUpdate(id: $id, input: $input) {
id
name
legalName
reference
user {
...TokenUserFragment
}
organization {
...TokenOrganizationFragment
}
bankAccount {
...TokenBankAccountFragment
}
settings {
...TokenSettingsFragment
}
balance
}
}
Variables
{"id": ID, "input": TokenInput}
mutation tokenUpdate($id: ID!, $input: TokenInput) {
tokenUpdate(id: $id, input: $input) {
id
name
legalName
reference
user {
...TokenUserFragment
}
organization {
...TokenOrganizationFragment
}
bankAccount {
...TokenBankAccountFragment
}
settings {
...TokenSettingsFragment
}
balance
}
}
{"id": ID, "input": TokenInput}
Response
{
"data": {
"tokenUpdate": {
"id": ID,
"name": "abc123",
"legalName": "abc123",
"reference": "xyz789",
"user": TokenUser,
"organization": TokenOrganization,
"bankAccount": TokenBankAccount,
"settings": TokenSettings,
"balance": 123.45
}
}
}
transactionCancel
Example
Query
mutation transactionCancel($id: ID!, $comment: String) {
transactionCancel(id: $id, comment: $comment) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "comment": "abc123"}
mutation transactionCancel($id: ID!, $comment: String) {
transactionCancel(id: $id, comment: $comment) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "comment": "abc123"}
Response
{
"data": {
"transactionCancel": {
"id": ID,
"uuid": ID,
"reference": "xyz789",
"metadata": TransactionMetadata,
"privacy": TransactionPrivacy,
"title": "abc123",
"description": "xyz789",
"auxiliaryData": {},
"state": State,
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"calculation": Calculation,
"acceptances": [Acceptance],
"deposits": [Deposit],
"payments": [Payments],
"address": Address,
"deliveryInstructions": "xyz789",
"allocations": [Allocation],
"drawdowns": [Drawdown],
"parties": [Party],
"comments": [Comment],
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
transactionCreate
Example
Query
mutation transactionCreate($input: CreateTransactionInput) {
transactionCreate(input: $input) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"input": CreateTransactionInput}
mutation transactionCreate($input: CreateTransactionInput) {
transactionCreate(input: $input) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"input": CreateTransactionInput}
Response
{
"data": {
"transactionCreate": {
"id": ID,
"uuid": ID,
"reference": "xyz789",
"metadata": TransactionMetadata,
"privacy": TransactionPrivacy,
"title": "xyz789",
"description": "abc123",
"auxiliaryData": {},
"state": State,
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"calculation": Calculation,
"acceptances": [Acceptance],
"deposits": [Deposit],
"payments": [Payments],
"address": Address,
"deliveryInstructions": "abc123",
"allocations": [Allocation],
"drawdowns": [Drawdown],
"parties": [Party],
"comments": [Comment],
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
transactionDecline
Example
Query
mutation transactionDecline($id: ID!, $comment: String) {
transactionDecline(id: $id, comment: $comment) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID, "comment": "xyz789"}
mutation transactionDecline($id: ID!, $comment: String) {
transactionDecline(id: $id, comment: $comment) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID, "comment": "xyz789"}
Response
{
"data": {
"transactionDecline": {
"id": ID,
"uuid": ID,
"reference": "abc123",
"metadata": TransactionMetadata,
"privacy": TransactionPrivacy,
"title": "abc123",
"description": "abc123",
"auxiliaryData": {},
"state": State,
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"calculation": Calculation,
"acceptances": [Acceptance],
"deposits": [Deposit],
"payments": [Payments],
"address": Address,
"deliveryInstructions": "xyz789",
"allocations": [Allocation],
"drawdowns": [Drawdown],
"parties": [Party],
"comments": [Comment],
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
transactionDelete
Example
Query
mutation transactionDelete($id: ID!) {
transactionDelete(id: $id) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
mutation transactionDelete($id: ID!) {
transactionDelete(id: $id) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"transactionDelete": {
"id": ID,
"uuid": ID,
"reference": "abc123",
"metadata": TransactionMetadata,
"privacy": TransactionPrivacy,
"title": "abc123",
"description": "xyz789",
"auxiliaryData": {},
"state": State,
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"calculation": Calculation,
"acceptances": [Acceptance],
"deposits": [Deposit],
"payments": [Payments],
"address": Address,
"deliveryInstructions": "abc123",
"allocations": [Allocation],
"drawdowns": [Drawdown],
"parties": [Party],
"comments": [Comment],
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
transactionDeposit
Deposit
Name | Description |
---|---|
id -
ID!
|
|
method -
DepositMethod!
|
|
value -
Float
|
|
redirects -
TransactionDepositRedirects
|
Example
Query
mutation transactionDeposit($id: ID!, $method: DepositMethod!, $value: Float, $redirects: TransactionDepositRedirects) {
transactionDeposit(id: $id, method: $method, value: $value, redirects: $redirects) {
id
value
processingFee
totalProcessingFee
method
processed
paymentLink
calculation {
...DepositCalculationFragment
}
redirects {
...DepositRedirectsFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{
"id": ID,
"method": DepositMethod,
"value": 123.45,
"redirects": TransactionDepositRedirects
}
mutation transactionDeposit($id: ID!, $method: DepositMethod!, $value: Float, $redirects: TransactionDepositRedirects) {
transactionDeposit(id: $id, method: $method, value: $value, redirects: $redirects) {
id
value
processingFee
totalProcessingFee
method
processed
paymentLink
calculation {
...DepositCalculationFragment
}
redirects {
...DepositRedirectsFragment
}
createdAt
updatedAt
deletedAt
}
}
{
"id": ID,
"method": DepositMethod,
"value": 123.45,
"redirects": TransactionDepositRedirects
}
Response
{
"data": {
"transactionDeposit": {
"id": ID,
"value": 123.45,
"processingFee": 123.45,
"totalProcessingFee": 123.45,
"method": DepositMethod,
"processed": false,
"paymentLink": "xyz789",
"calculation": DepositCalculation,
"redirects": DepositRedirects,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
transactionInvite
Example
Query
mutation transactionInvite($id: ID!) {
transactionInvite(id: $id) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"id": ID}
mutation transactionInvite($id: ID!) {
transactionInvite(id: $id) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"id": ID}
Response
{
"data": {
"transactionInvite": {
"id": ID,
"uuid": ID,
"reference": "xyz789",
"metadata": TransactionMetadata,
"privacy": TransactionPrivacy,
"title": "abc123",
"description": "xyz789",
"auxiliaryData": {},
"state": State,
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"calculation": Calculation,
"acceptances": [Acceptance],
"deposits": [Deposit],
"payments": [Payments],
"address": Address,
"deliveryInstructions": "abc123",
"allocations": [Allocation],
"drawdowns": [Drawdown],
"parties": [Party],
"comments": [Comment],
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
transactionUpdate
Example
Query
mutation transactionUpdate($input: UpdateTransactionInput) {
transactionUpdate(input: $input) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
Variables
{"input": UpdateTransactionInput}
mutation transactionUpdate($input: UpdateTransactionInput) {
transactionUpdate(input: $input) {
id
uuid
reference
metadata {
...TransactionMetadataFragment
}
privacy
title
description
auxiliaryData
state
industry
currency
feeAllocation
workflow
calculation {
...CalculationFragment
}
acceptances {
...AcceptanceFragment
}
deposits {
...DepositFragment
}
payments {
...PaymentsFragment
}
address {
...AddressFragment
}
deliveryInstructions
allocations {
...AllocationFragment
}
drawdowns {
...DrawdownFragment
}
parties {
...PartyFragment
}
comments {
...CommentFragment
}
files {
...FileFragment
}
createdAt
updatedAt
deletedAt
}
}
{"input": UpdateTransactionInput}
Response
{
"data": {
"transactionUpdate": {
"id": ID,
"uuid": ID,
"reference": "xyz789",
"metadata": TransactionMetadata,
"privacy": TransactionPrivacy,
"title": "xyz789",
"description": "xyz789",
"auxiliaryData": {},
"state": State,
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"calculation": Calculation,
"acceptances": [Acceptance],
"deposits": [Deposit],
"payments": [Payments],
"address": Address,
"deliveryInstructions": "xyz789",
"allocations": [Allocation],
"drawdowns": [Drawdown],
"parties": [Party],
"comments": [Comment],
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
}
}
Types
Acceptance
Field Name | Description |
---|---|
user -
AcceptanceUserData
|
|
accepted -
Boolean
|
|
acceptedDate -
DateTime
|
Example
{
"user": AcceptanceUserData,
"accepted": true,
"acceptedDate": DateTime
}
Account
Field Name | Description |
---|---|
type -
TransactionType
|
|
amount -
Float
|
|
reference -
String
|
|
status -
TransactionStatus
|
|
information -
JSON
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
deletedAt -
DateTime
|
Example
{
"type": TransactionType,
"amount": 123.45,
"reference": "abc123",
"status": TransactionStatus,
"information": {},
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
Address
Field Name | Description |
---|---|
id -
ID
|
|
name -
String
|
|
line1 -
String
|
|
line2 -
String
|
|
line3 -
String
|
|
line4 -
String
|
|
city -
String
|
|
area -
String
|
|
code -
String
|
|
country -
Country
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
deletedAt -
DateTime
|
Example
{
"id": ID,
"name": "xyz789",
"line1": "abc123",
"line2": "abc123",
"line3": "xyz789",
"line4": "xyz789",
"city": "xyz789",
"area": "abc123",
"code": "xyz789",
"country": Country,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
Allocation
Field Name | Description |
---|---|
id -
ID
|
|
title -
String!
|
|
description -
String!
|
|
auxiliaryData -
JSON
|
|
state -
AllocationState
|
|
value -
Float
|
|
units -
Float
|
|
unitCost -
Float
|
|
initiatedDate -
DateTime
|
|
daysToDeliver -
Float
|
|
deliverBy -
DateTime
|
|
daysToInspect -
Float
|
|
inspectBy -
DateTime
|
|
address -
Address
|
|
deliveryInstructions -
JSON
|
|
currentAmendment -
Amendment
|
|
acceptedAmendment -
Amendment
|
|
amendments -
[Amendment]
|
|
Arguments |
|
payments -
[Payments]
|
|
Arguments |
|
hasAccepted -
Boolean
|
|
acceptances -
[Acceptance]
|
|
calculation -
AllocationCalculation
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
deletedAt -
DateTime
|
Example
{
"id": ID,
"title": "abc123",
"description": "abc123",
"auxiliaryData": {},
"state": AllocationState,
"value": 123.45,
"units": 987.65,
"unitCost": 123.45,
"initiatedDate": DateTime,
"daysToDeliver": 123.45,
"deliverBy": DateTime,
"daysToInspect": 987.65,
"inspectBy": DateTime,
"address": Address,
"deliveryInstructions": {},
"currentAmendment": Amendment,
"acceptedAmendment": Amendment,
"amendments": [Amendment],
"payments": [Payments],
"hasAccepted": false,
"acceptances": [Acceptance],
"calculation": AllocationCalculation,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
AllocationCalculation
Field Name | Description |
---|---|
id -
ID
|
|
value -
Float
|
|
units -
Float
|
|
unitCost -
Float
|
|
refund -
Float
|
|
payout -
Float
|
|
fee -
Float
|
|
processingFee -
Float
|
|
originalValues -
AllocationCalculation
|
Example
{
"id": ID,
"value": 123.45,
"units": 987.65,
"unitCost": 123.45,
"refund": 123.45,
"payout": 123.45,
"fee": 987.65,
"processingFee": 987.65,
"originalValues": AllocationCalculation
}
AllocationInput
Input Field | Description |
---|---|
title -
String
|
|
description -
String
|
|
auxiliaryData -
JSON
|
|
value -
Float
|
|
units -
Float
|
|
unitCost -
Float
|
|
daysToDeliver -
Float
|
|
daysToInspect -
Float
|
|
partyId -
ID
|
|
addressId -
ID
|
|
deliveryInstructions -
JSON
|
Example
{
"title": "xyz789",
"description": "xyz789",
"auxiliaryData": {},
"value": 987.65,
"units": 123.45,
"unitCost": 123.45,
"daysToDeliver": 123.45,
"daysToInspect": 123.45,
"partyId": ID,
"addressId": ID,
"deliveryInstructions": {}
}
AllocationRelation
Input Field | Description |
---|---|
connect -
ID
|
|
create -
[CreateAllocationInput!]
|
|
update -
[UpdateAllocationInput!]
|
|
delete -
[ID!]
|
Example
{
"connect": ID,
"create": [CreateAllocationInput],
"update": [UpdateAllocationInput],
"delete": [ID]
}
AllocationState
Enum Value | Description |
---|---|
|
Created |
|
Initiated |
|
Goods / Service Accepted |
|
Renegotiation |
|
Canceled |
|
Declined |
|
Disputed |
|
Funds Released |
AllocationSummary
Field Name | Description |
---|---|
id -
ID
|
|
title -
String!
|
|
state -
AllocationState
|
|
calculation -
AllocationCalculation
|
|
payments -
[Payments]
|
|
Arguments |
Example
{
"id": ID,
"title": "abc123",
"state": AllocationState,
"calculation": AllocationCalculation,
"payments": [Payments]
}
Amendment
Field Name | Description |
---|---|
id -
ID!
|
|
state -
AmendmentState
|
|
value -
Float
|
|
units -
Float
|
|
unitCost -
Float
|
|
daysToDeliver -
Float
|
|
deliverBy -
DateTime
|
|
daysToInspect -
Float
|
|
inspectBy -
DateTime
|
|
comments -
[Comment]
|
|
acceptances -
[Acceptance]
|
|
accepted -
Boolean
|
|
hasAccepted -
Boolean
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
deletedAt -
DateTime
|
Example
{
"id": ID,
"state": AmendmentState,
"value": 123.45,
"units": 123.45,
"unitCost": 123.45,
"daysToDeliver": 123.45,
"deliverBy": DateTime,
"daysToInspect": 123.45,
"inspectBy": DateTime,
"comments": [Comment],
"acceptances": [Acceptance],
"accepted": false,
"hasAccepted": true,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
AmendmentState
Enum Value | Description |
---|---|
|
Created |
|
Accepted |
|
Declined |
|
Canceled |
ApiProfile
Field Name | Description |
---|---|
id -
ID
|
|
name -
String
|
|
token -
String
|
|
organizations -
[OrganizationApiProfile]
|
Example
{
"id": ID,
"name": "abc123",
"token": "xyz789",
"organizations": [OrganizationApiProfile]
}
BankAccount
Field Name | Description |
---|---|
id -
ID
|
|
accountNumberSuffix -
String
|
|
accountNumber -
String
|
|
accountType -
BankAccountType
|
|
bank -
UniversalBranchCode
|
|
bankName -
String
|
|
branchCode -
String
|
|
verified -
Boolean
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
deletedAt -
DateTime
|
Example
{
"id": ID,
"accountNumberSuffix": "xyz789",
"accountNumber": "abc123",
"accountType": BankAccountType,
"bank": UniversalBranchCode,
"bankName": "abc123",
"branchCode": "abc123",
"verified": true,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
BankAccountType
Enum Value | Description |
---|---|
|
Cheque/Current Account |
|
Savings Account |
|
Transmission Account |
|
Bond Account |
Calculation
Field Name | Description |
---|---|
baseValue -
Float
|
|
processingFees -
ProcessingFees
|
|
processingFeePercentage -
Float
|
|
processingFeeValue -
Float
|
|
processingFeeVat -
Float
|
|
processingFeeTotal -
Float
|
|
totalValue -
Float
|
|
totalDeposits -
Float
|
|
processingFeeOzow -
Float
|
No longer supported |
totalValueOzow -
Float
|
No longer supported |
processingFeeSnapscan -
Float
|
No longer supported |
totalValueSnapscan -
Float
|
No longer supported |
gatewayProcessingFees -
GatewayProcessingFees
|
No longer supported |
parties -
[PartyCalculation]
|
|
allocations -
[AllocationCalculation]
|
|
drawdownTotals -
DrawdownCalculation
|
Example
{
"baseValue": 123.45,
"processingFees": ProcessingFees,
"processingFeePercentage": 987.65,
"processingFeeValue": 123.45,
"processingFeeVat": 123.45,
"processingFeeTotal": 123.45,
"totalValue": 123.45,
"totalDeposits": 123.45,
"processingFeeOzow": 123.45,
"totalValueOzow": 987.65,
"processingFeeSnapscan": 123.45,
"totalValueSnapscan": 987.65,
"gatewayProcessingFees": GatewayProcessingFees,
"parties": [PartyCalculation],
"allocations": [AllocationCalculation],
"drawdownTotals": DrawdownCalculation
}
CalculatorInput
Input Field | Description |
---|---|
feeAllocation -
FeeAllocation!
|
|
allocations -
[CalculatorAllocationsInput!]!
|
|
parties -
[CalculatorPartiesInput!]!
|
|
industry -
Industry
|
Example
{
"feeAllocation": FeeAllocation,
"allocations": [CalculatorAllocationsInput],
"parties": [CalculatorPartiesInput],
"industry": Industry
}
CalculatorPartiesInput
Input Field | Description |
---|---|
role -
Role
|
|
fee -
Float
|
|
feeType -
FeeType
|
|
feeAllocation -
FeeAllocation
|
Example
{
"role": Role,
"fee": 987.65,
"feeType": FeeType,
"feeAllocation": FeeAllocation
}
Country
Enum Value | Description |
---|---|
|
Afghanistan |
|
Åland Islands |
|
Albania |
|
Algeria |
|
American Samoa |
|
Andorra |
|
Angola |
|
Anguilla |
|
Antarctica |
|
Antigua and Barbuda |
|
Argentina |
|
Armenia |
|
Aruba |
|
Australia |
|
Austria |
|
Azerbaijan |
|
Bahamas |
|
Bahrain |
|
Bangladesh |
|
Barbados |
|
Belarus |
|
Belgium |
|
Belize |
|
Benin |
|
Bermuda |
|
Bhutan |
|
Bolivia (Plurinational State of) |
|
Bonaire, Sint Eustatius and Saba |
|
Bosnia and Herzegovina |
|
Botswana |
|
Bouvet Island |
|
Brazil |
|
British Indian Ocean Territory |
|
Brunei Darussalam |
|
Bulgaria |
|
Burkina Faso |
|
Burundi |
|
Cabo Verde |
|
Cambodia |
|
Cameroon |
|
Canada |
|
Cayman Islands |
|
Central African Republic |
|
Chad |
|
Chile |
|
China |
|
Christmas Island |
|
Cocos (Keeling) Islands |
|
Colombia |
|
Comoros |
|
Congo |
|
Congo (Democratic Republic of the) |
|
Cook Islands |
|
Costa Rica |
|
Côte d'Ivoire |
|
Croatia |
|
Cuba |
|
Curaçao |
|
Cyprus |
|
Czechia |
|
Denmark |
|
Djibouti |
|
Dominica |
|
Dominican Republic |
|
Ecuador |
|
Egypt |
|
El Salvador |
|
Equatorial Guinea |
|
Eritrea |
|
Estonia |
|
Ethiopia |
|
Eswatini |
|
Falkland Islands (Malvinas) |
|
Faroe Islands |
|
Fiji |
|
Finland |
|
France |
|
French Guiana |
|
French Polynesia |
|
French Southern Territories |
|
Gabon |
|
Gambia |
|
Georgia |
|
Germany |
|
Ghana |
|
Gibraltar |
|
Greece |
|
Greenland |
|
Grenada |
|
Guadeloupe |
|
Guam |
|
Guatemala |
|
Guernsey |
|
Guinea |
|
Guinea-Bissau |
|
Guyana |
|
Haiti |
|
Heard Island and McDonald Islands |
|
Holy See |
|
Honduras |
|
Hong Kong |
|
Hungary |
|
Iceland |
|
India |
|
Indonesia |
|
Iran (Islamic Republic of) |
|
Iraq |
|
Ireland |
|
Isle of Man |
|
Israel |
|
Italy |
|
Jamaica |
|
Japan |
|
Jersey |
|
Jordan |
|
Kazakhstan |
|
Kenya |
|
Kiribati |
|
Korea (Democratic People's Republic of) |
|
Korea (Republic of) |
|
Kuwait |
|
Kyrgyzstan |
|
Lao People's Democratic Republic |
|
Latvia |
|
Lebanon |
|
Lesotho |
|
Liberia |
|
Libya |
|
Liechtenstein |
|
Lithuania |
|
Luxembourg |
|
Macao |
|
North Macedonia |
|
Madagascar |
|
Malawi |
|
Malaysia |
|
Maldives |
|
Mali |
|
Malta |
|
Marshall Islands |
|
Martinique |
|
Mauritania |
|
Mauritius |
|
Mayotte |
|
Mexico |
|
Micronesia (Federated States of) |
|
Moldova (Republic of) |
|
Monaco |
|
Mongolia |
|
Montenegro |
|
Montserrat |
|
Morocco |
|
Mozambique |
|
Myanmar |
|
Namibia |
|
Nauru |
|
Nepal |
|
Netherlands |
|
New Caledonia |
|
New Zealand |
|
Nicaragua |
|
Niger |
|
Nigeria |
|
Niue |
|
Norfolk Island |
|
Northern Mariana Islands |
|
Norway |
|
Oman |
|
Pakistan |
|
Palau |
|
Palestine, State of |
|
Panama |
|
Papua New Guinea |
|
Paraguay |
|
Peru |
|
Philippines |
|
Pitcairn |
|
Poland |
|
Portugal |
|
Puerto Rico |
|
Qatar |
|
Réunion |
|
Romania |
|
Russian Federation |
|
Rwanda |
|
Saint Barthélemy |
|
Saint Helena, Ascension and Tristan da Cunha |
|
Saint Kitts and Nevis |
|
Saint Lucia |
|
Saint Martin (French part) |
|
Saint Pierre and Miquelon |
|
Saint Vincent and the Grenadines |
|
Samoa |
|
San Marino |
|
Sao Tome and Principe |
|
Saudi Arabia |
|
Senegal |
|
Serbia |
|
Seychelles |
|
Sierra Leone |
|
Singapore |
|
Sint Maarten (Dutch part) |
|
Slovakia |
|
Slovenia |
|
Solomon Islands |
|
Somalia |
|
South Africa |
|
South Georgia and the South Sandwich Islands |
|
South Sudan |
|
Spain |
|
Sri Lanka |
|
Sudan |
|
Suriname |
|
Svalbard and Jan Mayen |
|
Sweden |
|
Switzerland |
|
Syrian Arab Republic |
|
Taiwan (Province of China) |
|
Tajikistan |
|
Tanzania, United Republic of |
|
Thailand |
|
Timor-Leste |
|
Togo |
|
Tokelau |
|
Tonga |
|
Trinidad and Tobago |
|
Tunisia |
|
Turkey |
|
Turkmenistan |
|
Turks and Caicos Islands |
|
Tuvalu |
|
Uganda |
|
Ukraine |
|
United Arab Emirates |
|
United Kingdom of Great Britain and Northern Ireland |
|
United States of America |
|
United States Minor Outlying Islands |
|
Uruguay |
|
Uzbekistan |
|
Vanuatu |
|
Venezuela (Bolivarian Republic of) |
|
Viet Nam |
|
Virgin Islands (British) |
|
Virgin Islands (U.S.) |
|
Wallis and Futuna |
|
Western Sahara |
|
Yemen |
|
Zambia |
|
Zimbabwe |
CreateAllocationInput
Input Field | Description |
---|---|
title -
String
|
|
description -
String
|
|
auxiliaryData -
JSON
|
|
value -
Float
|
|
units -
Float
|
|
unitCost -
Float
|
|
daysToDeliver -
Float
|
|
daysToInspect -
Float
|
|
addressId -
ID
|
|
deliveryInstructions -
JSON
|
Example
{
"title": "abc123",
"description": "xyz789",
"auxiliaryData": {},
"value": 987.65,
"units": 987.65,
"unitCost": 123.45,
"daysToDeliver": 123.45,
"daysToInspect": 987.65,
"addressId": ID,
"deliveryInstructions": {}
}
CreateTransactionInput
Create a Transaction
Input Field | Description |
---|---|
title -
String!
|
Title sumarising the transaction |
description -
String!
|
Long description of the transaction and its terms |
auxiliaryData -
JSON
|
Additional data to describe the transaction |
industry -
Industry!
|
The industry classificaton for the transaction |
currency -
Currency!
|
The base curreny for the transaction |
feeAllocation -
FeeAllocation!
|
How TradeSafe's fee is split between the parties |
workflow -
TransactionWorkflow
|
How should the transaction be structured |
allocations -
AllocationRelation
|
How should the funds be paid out |
parties -
PartiesRelation
|
Parties involved in the transaction |
addressId -
String
|
Delivery Address ID |
deliveryInstructions -
String
|
Delivery Instructions |
privacy -
TransactionPrivacy
|
|
reference -
String
|
Example
{
"title": "xyz789",
"description": "xyz789",
"auxiliaryData": {},
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"allocations": AllocationRelation,
"parties": PartiesRelation,
"addressId": "xyz789",
"deliveryInstructions": "xyz789",
"privacy": TransactionPrivacy,
"reference": "xyz789"
}
DateTime
A datetime string with format Y-m-d H:i:s
, e.g. 2018-01-01 13:00:00
.
Example
2016-10-07 01:08:03
Deposit
Field Name | Description |
---|---|
id -
ID
|
|
value -
Float
|
|
processingFee -
Float
|
|
totalProcessingFee -
Float
|
|
method -
DepositMethod
|
|
processed -
Boolean
|
|
paymentLink -
String
|
|
calculation -
DepositCalculation
|
|
redirects -
DepositRedirects
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
deletedAt -
DateTime
|
Example
{
"id": ID,
"value": 123.45,
"processingFee": 987.65,
"totalProcessingFee": 123.45,
"method": DepositMethod,
"processed": true,
"paymentLink": "abc123",
"calculation": DepositCalculation,
"redirects": DepositRedirects,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
DepositCalculation
Field Name | Description |
---|---|
eft -
EftCalculationDetails
|
|
ozow -
OzowCalculationDetails
|
Example
{
"eft": EftCalculationDetails,
"ozow": OzowCalculationDetails
}
DepositMethod
Enum Value | Description |
---|---|
|
Account |
|
Electronic Funds Transfer |
|
Snapscan |
|
Ozow |
|
Ecentric |
Drawdown
Field Name | Description |
---|---|
id -
ID
|
|
title -
String
|
|
description -
String
|
|
value -
Float
|
|
state -
DrawdownState
|
|
reference -
String
|
|
files -
[File]
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
deletedAt -
DateTime
|
Example
{
"id": ID,
"title": "abc123",
"description": "abc123",
"value": 987.65,
"state": DrawdownState,
"reference": "abc123",
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
DrawdownState
Enum Value | Description |
---|---|
|
Created |
|
Pending Approval |
|
Approved |
|
Rejected |
|
Canceled |
|
Funds Released |
EftCalculationDetails
Field Name | Description |
---|---|
value -
Float
|
|
fee -
Float
|
|
depositValue -
Float
|
|
bankingDetails -
DepositDetails
|
Example
{
"value": 987.65,
"fee": 987.65,
"depositValue": 123.45,
"bankingDetails": DepositDetails
}
FeeAllocation
Enum Value | Description |
---|---|
|
Agent Pays Whole Fee |
|
Buyer Pays Whole Fee |
|
Seller Pays Whole Fee |
|
Buyer & Seller Split Fee 50/50 |
|
Buyer & Agent Split Fee 50/50 |
|
Seller & Agent Split Fee 50/50 |
|
Fee Split 3-ways between Buyer, Seller & Agent |
File
File Object
Field Name | Description |
---|---|
id -
ID
|
ID of File |
filename -
String
|
Filename |
mimetype -
String
|
MIME Type |
metadata -
JSON
|
File Metadata |
isNew -
Boolean
|
Is New file |
allowedParties -
[String]
|
Allowed Parties |
uri -
String
|
File URI |
Example
{
"id": ID,
"filename": "abc123",
"mimetype": "abc123",
"metadata": {},
"isNew": false,
"allowedParties": ["xyz789"],
"uri": "abc123"
}
Float
The Float
scalar type represents signed double-precision fractional values as specified by
IEEE 754.
Example
123.45
GatewayProcessingFees
Field Name | Description |
---|---|
manualEft -
ProcessingFee
|
|
ecentric -
ProcessingFee
|
|
ozow -
ProcessingFee
|
|
snapscan -
ProcessingFee
|
Example
{
"manualEft": ProcessingFee,
"ecentric": ProcessingFee,
"ozow": ProcessingFee,
"snapscan": ProcessingFee
}
ID
The ID
scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4"
) or integer (such as 4
) input value will be accepted as an ID.
Example
3NtedQtDDX2vmlha9p8NQW
Industry
Enum Value | Description |
---|---|
|
Agriculture, Livestock & Game |
|
Art, Antiques & Collectibles |
|
Cars, Bikes, Planes & Boats |
|
Cell phones, Computers & Electronics |
|
Construction |
|
Diesel, Petroleum & Lubricating Oils |
|
Events, Weddings & Functions |
|
Films, Production & Photography |
|
Freelancing & Contract Work |
|
General Goods & Services |
|
Mergers & Acquisitions |
|
Mining & Metals |
|
Property (Residential & Commercial) |
|
Renewables |
|
Rental Deposits & Holiday Rentals |
|
Web Domain Purchases & Transfers |
Int
The Int
scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
987
OrderByClause
Allows ordering a list of records.
Input Field | Description |
---|---|
field -
String!
|
The column that is used for ordering. |
order -
SortOrder!
|
The direction that is used for ordering. |
Example
{"field": "xyz789", "order": SortOrder}
OrganizationType
Enum Value | Description |
---|---|
|
Sole Proprietorship |
|
Private Company |
|
Public Company |
|
State Owned Enterprise |
|
Personal Liability Company |
|
Close Corporation |
|
Not for Profit |
|
Trust |
|
Other |
PageInfo
Pagination information about the corresponding list of items.
Field Name | Description |
---|---|
hasNextPage -
Boolean!
|
When paginating forwards, are there more items? |
hasPreviousPage -
Boolean!
|
When paginating backwards, are there more items? |
startCursor -
String
|
When paginating backwards, the cursor to continue. |
endCursor -
String
|
When paginating forwards, the cursor to continue. |
total -
Int
|
Total number of node in connection. |
count -
Int
|
Count of nodes in current request. |
currentPage -
Int
|
Current page of request. |
lastPage -
Int
|
Last page in connection. |
Example
{
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "abc123",
"endCursor": "abc123",
"total": 123,
"count": 123,
"currentPage": 123,
"lastPage": 987
}
PaginatorInfo
Pagination information about the corresponding list of items.
Field Name | Description |
---|---|
count -
Int!
|
Total count of available items in the page. |
currentPage -
Int!
|
Current pagination page. |
firstItem -
Int
|
Index of first item in the current page. |
hasMorePages -
Boolean!
|
If collection has more pages. |
lastItem -
Int
|
Index of last item in the current page. |
lastPage -
Int!
|
Last page number of the collection. |
perPage -
Int!
|
Number of items per page in the collection. |
total -
Int!
|
Total items available in the collection. |
Example
{
"count": 987,
"currentPage": 123,
"firstItem": 123,
"hasMorePages": true,
"lastItem": 123,
"lastPage": 123,
"perPage": 987,
"total": 123
}
PartiesRelation
Input Field | Description |
---|---|
connect -
ID
|
|
create -
[PartyInput!]
|
|
update -
[UpdatePartyInput!]
|
|
delete -
[ID!]
|
Example
{
"connect": ID,
"create": [PartyInput],
"update": [UpdatePartyInput],
"delete": [ID]
}
Party
Field Name | Description |
---|---|
id -
ID
|
|
name -
String
|
|
details -
PartyDetails
|
|
email -
String
|
|
role -
Role
|
|
avatar -
String
|
|
fee -
Float
|
|
feeType -
FeeType
|
|
feeAllocation -
FeeAllocation
|
|
acceptance -
Acceptance
|
|
owner -
Boolean
|
|
calculation -
PartyCalculation
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
deletedAt -
DateTime
|
|
reference -
String
|
|
settings -
PartySettings
|
Example
{
"id": ID,
"name": "abc123",
"details": PartyDetails,
"email": "abc123",
"role": Role,
"avatar": "abc123",
"fee": 123.45,
"feeType": FeeType,
"feeAllocation": FeeAllocation,
"acceptance": Acceptance,
"owner": false,
"calculation": PartyCalculation,
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime,
"reference": "xyz789",
"settings": PartySettings
}
PartyCalculation
Field Name | Description |
---|---|
id -
ID
|
|
role -
String
|
|
deposit -
Float
|
|
payout -
Float
|
|
commission -
Float
|
|
processingFee -
Float
|
|
agentFee -
Float
|
|
beneficiaryFee -
Float
|
|
totalFee -
Float
|
|
partyId -
ID
|
No longer supported |
Example
{
"id": ID,
"role": "abc123",
"deposit": 987.65,
"payout": 987.65,
"commission": 123.45,
"processingFee": 123.45,
"agentFee": 987.65,
"beneficiaryFee": 123.45,
"totalFee": 123.45,
"partyId": ID
}
PartyInput
Input Field | Description |
---|---|
token -
String
|
Tokenized userdata |
email -
String
|
Email of party |
role -
Role
|
Role of party in transaction |
fee -
Float
|
Fee |
feeType -
FeeType
|
Fee Type |
feeAllocation -
FeeAllocation
|
Fee Allocation |
Example
{
"token": "abc123",
"email": "xyz789",
"role": Role,
"fee": 123.45,
"feeType": FeeType,
"feeAllocation": FeeAllocation
}
PayoutInterval
Enum Value | Description |
---|---|
|
Account |
|
Immediate |
|
Daily |
|
Weekly |
|
Bimonthly |
|
Monthly |
PayoutSettings
Field Name | Description |
---|---|
interval -
PayoutInterval
|
|
minmum -
Float
|
|
refund -
RefundMethod
|
Example
{
"interval": PayoutInterval,
"minmum": 123.45,
"refund": RefundMethod
}
PayoutSettingsInput
Input Field | Description |
---|---|
interval -
PayoutInterval
|
|
minmum -
Float
|
|
refund -
RefundMethod
|
Example
{
"interval": PayoutInterval,
"minmum": 123.45,
"refund": RefundMethod
}
Role
Enum Value | Description |
---|---|
|
Buyer |
|
Seller |
|
Agent |
|
Adviser |
|
Consultant |
|
Delivery Company |
|
Financial Institution |
|
Intermediary |
|
Legal counsel |
|
Sub-Agent |
|
Wholesaler |
|
3rd Party Merchant |
|
Other |
|
Read-Only User |
SortOrder
The available directions for ordering a list of records.
Enum Value | Description |
---|---|
|
Sort records in ascending order. |
|
Sort records in descending order. |
State
Enum Value | Description |
---|---|
|
Invitation to be sent |
|
Invitation Sent |
|
Transaction Negotiation |
|
Transaction Accepted |
|
Funds Deposited |
|
Funds Received & Cleared |
|
Goods Sent / Service Initiated |
|
Goods / Service Accepted (Deprecated) |
|
Goods / Service Accepted |
|
Funds Released |
|
Funds Released (Deprecated) |
|
Transaction Canceled |
|
Transaction Declined |
|
Transaction Disputed |
|
Legal |
|
Suspended by admin (Deprecated) |
|
Suspended by admin |
|
Canceled by admin |
|
Extension Requested |
|
Renegotiation Requested |
Stats
Field Name | Description |
---|---|
summary -
StatsSummary
|
|
gateways -
StatsGateways
|
|
transactions -
StatsTransactions
|
|
industries -
[StatsIndustries]
|
|
funds -
StatsFunds
|
Example
{
"summary": StatsSummary,
"gateways": StatsGateways,
"transactions": StatsTransactions,
"industries": [StatsIndustries],
"funds": StatsFunds
}
StatsSummary
Field Name | Description |
---|---|
transactions -
Int
|
|
value -
Float
|
|
users -
Int
|
|
industry -
Industry
|
|
deposit -
Float
|
|
fees -
Float
|
|
payout -
Float
|
|
totalPayout -
Float
|
Example
{
"transactions": 123,
"value": 123.45,
"users": 987,
"industry": Industry,
"deposit": 987.65,
"fees": 987.65,
"payout": 987.65,
"totalPayout": 987.65
}
StatsTransactions
Field Name | Description |
---|---|
thisMonth -
StatsTransactionsComplete
|
|
lastMonth -
StatsTransactionsComplete
|
|
monthly -
[StatsTransactionsMonthly]
|
Example
{
"thisMonth": StatsTransactionsComplete,
"lastMonth": StatsTransactionsComplete,
"monthly": [StatsTransactionsMonthly]
}
String
The String
scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Token
Field Name | Description |
---|---|
id -
ID
|
|
name -
String
|
|
legalName -
String
|
|
reference -
String
|
|
user -
TokenUser
|
|
organization -
TokenOrganization
|
|
bankAccount -
TokenBankAccount
|
|
settings -
TokenSettings
|
|
balance -
Float
|
Example
{
"id": ID,
"name": "xyz789",
"legalName": "xyz789",
"reference": "abc123",
"user": TokenUser,
"organization": TokenOrganization,
"bankAccount": TokenBankAccount,
"settings": TokenSettings,
"balance": 123.45
}
TokenBankAccount
Field Name | Description |
---|---|
accountNumber -
String
|
|
accountType -
BankAccountType
|
|
bank -
UniversalBranchCode
|
|
bankName -
String
|
|
branchCode -
String
|
Example
{
"accountNumber": "abc123",
"accountType": BankAccountType,
"bank": UniversalBranchCode,
"bankName": "abc123",
"branchCode": "abc123"
}
TokenBankAccountInput
Input Field | Description |
---|---|
accountNumber -
String
|
|
accountType -
BankAccountType
|
|
bank -
UniversalBranchCode
|
Example
{
"accountNumber": "xyz789",
"accountType": BankAccountType,
"bank": UniversalBranchCode
}
TokenInput
Input Field | Description |
---|---|
user -
TokenUserInput!
|
|
organization -
TokenOrganizationInput
|
|
bankAccount -
TokenBankAccountInput
|
|
settings -
TokenSettingsInput
|
Example
{
"user": TokenUserInput,
"organization": TokenOrganizationInput,
"bankAccount": TokenBankAccountInput,
"settings": TokenSettingsInput
}
TokenOrganization
Field Name | Description |
---|---|
name -
String
|
|
tradeName -
String
|
|
type -
OrganizationType
|
|
registration -
String
|
|
taxNumber -
String
|
Example
{
"name": "xyz789",
"tradeName": "xyz789",
"type": OrganizationType,
"registration": "xyz789",
"taxNumber": "xyz789"
}
TokenOrganizationInput
Input Field | Description |
---|---|
name -
String
|
|
tradeName -
String
|
|
type -
OrganizationType
|
|
registrationNumber -
String
|
|
taxNumber -
String
|
Example
{
"name": "xyz789",
"tradeName": "xyz789",
"type": OrganizationType,
"registrationNumber": "xyz789",
"taxNumber": "abc123"
}
TokenPaginator
A paginated list of Token items.
Field Name | Description |
---|---|
paginatorInfo -
PaginatorInfo!
|
Pagination information about the list of items. |
data -
[Token!]!
|
A list of Token items. |
Example
{
"paginatorInfo": PaginatorInfo,
"data": [Token]
}
TokenSettingsInput
Input Field | Description |
---|---|
creditAccount -
Boolean
|
|
payoutInterval -
PayoutInterval
|
|
payout -
PayoutSettingsInput
|
Example
{
"creditAccount": false,
"payoutInterval": PayoutInterval,
"payout": PayoutSettingsInput
}
TokenUser
Field Name | Description |
---|---|
givenName -
String
|
|
familyName -
String
|
|
email -
Email
|
|
mobile -
String
|
|
idNumber -
String
|
|
idType -
IdType
|
|
idCountry -
Country
|
Example
{
"givenName": "abc123",
"familyName": "xyz789",
"email": Email,
"mobile": "abc123",
"idNumber": "abc123",
"idType": IdType,
"idCountry": Country
}
TokenUserInput
Input Field | Description |
---|---|
givenName -
String
|
|
familyName -
String
|
|
email -
Email
|
|
mobile -
String
|
|
idNumber -
String
|
|
idType -
IdType
|
|
idCountry -
Country
|
Example
{
"givenName": "abc123",
"familyName": "abc123",
"email": Email,
"mobile": "xyz789",
"idNumber": "xyz789",
"idType": IdType,
"idCountry": Country
}
Transaction
Field Name | Description |
---|---|
id -
ID
|
The Unique ID of the transaction |
uuid -
ID
|
|
reference -
String
|
|
metadata -
TransactionMetadata
|
Metadata |
privacy -
TransactionPrivacy
|
|
title -
String
|
Title sumarising the transaction |
description -
String
|
Long description of the transaction and its terms |
auxiliaryData -
JSON
|
Additional data to describe the transaction |
state -
State
|
The current state which the contact is in |
industry -
Industry
|
The industry classificaton for the transaction |
currency -
Currency
|
The base curreny for the transaction |
feeAllocation -
FeeAllocation
|
How TradeSafe's fee is split between the parties |
workflow -
TransactionWorkflow!
|
How should the transaction be structured |
calculation -
Calculation
|
Fees & Costs |
acceptances -
[Acceptance]
|
|
deposits -
[Deposit]
|
|
Arguments |
|
payments -
[Payments]
|
|
Arguments |
|
address -
Address
|
Address to deliver goods to No longer supported |
deliveryInstructions -
String
|
Delivery Instructions No longer supported |
allocations -
[Allocation]
|
How should the funds be paid out |
Arguments |
|
drawdowns -
[Drawdown]
|
Requests for funds to be paid out |
Arguments |
|
parties -
[Party]
|
Parties involved in the transaction |
Arguments |
|
comments -
[Comment]
|
Comments made during the lifetime of the transaction |
Arguments |
|
files -
[File]
|
Files attached to the transaction No longer supported |
createdAt -
DateTime
|
Created date |
updatedAt -
DateTime
|
Last updated date |
deletedAt -
DateTime
|
Deleted date |
Example
{
"id": ID,
"uuid": ID,
"reference": "xyz789",
"metadata": TransactionMetadata,
"privacy": TransactionPrivacy,
"title": "xyz789",
"description": "abc123",
"auxiliaryData": {},
"state": State,
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"workflow": TransactionWorkflow,
"calculation": Calculation,
"acceptances": [Acceptance],
"deposits": [Deposit],
"payments": [Payments],
"address": Address,
"deliveryInstructions": "xyz789",
"allocations": [Allocation],
"drawdowns": [Drawdown],
"parties": [Party],
"comments": [Comment],
"files": [File],
"createdAt": DateTime,
"updatedAt": DateTime,
"deletedAt": DateTime
}
TransactionPaginator
A paginated list of Transaction items.
Field Name | Description |
---|---|
paginatorInfo -
PaginatorInfo!
|
Pagination information about the list of items. |
data -
[Transaction!]!
|
A list of Transaction items. |
Example
{
"paginatorInfo": PaginatorInfo,
"data": [Transaction]
}
TransactionPrivacy
Enum Value | Description |
---|---|
|
All details are visible |
|
All details are private |
|
Party details are private |
|
Fee's and costs are private |
TransactionStatus
Enum Value | Description |
---|---|
|
Created |
|
Received |
|
Pending |
|
Processed |
|
Partly Processed |
|
Rejected |
TransactionSummary
Field Name | Description |
---|---|
id -
ID
|
|
uuid -
ID
|
|
title -
String
|
|
state -
State
|
|
createdAt -
DateTime
|
|
updatedAt -
DateTime
|
|
calculation -
Calculation
|
|
allocations -
[AllocationSummary]
|
|
Arguments |
|
deposits -
[Deposit]
|
|
Arguments |
|
payments -
[Payments]
|
|
Arguments |
Example
{
"id": ID,
"uuid": ID,
"title": "xyz789",
"state": State,
"createdAt": DateTime,
"updatedAt": DateTime,
"calculation": Calculation,
"allocations": [AllocationSummary],
"deposits": [Deposit],
"payments": [Payments]
}
TransactionWorkflow
Enum Value | Description |
---|---|
|
Payment is made on completion of the transaction |
|
Multiple payments occur over a set period |
|
Payments are requested on a adhoc basis |
|
A simplified payment workflow |
|
A custom payment workflow |
TransactionsOrderByColumn
Allowed column names for the orderBy
argument on the query transactions
.
Enum Value | Description |
---|---|
|
|
|
TransactionsOrderByOrderByClause
Order by clause for the orderBy
argument on the query transactions
.
Input Field | Description |
---|---|
field -
TransactionsOrderByColumn!
|
The column that is used for ordering. |
order -
SortOrder!
|
The direction that is used for ordering. |
Example
{
"field": TransactionsOrderByColumn,
"order": SortOrder
}
Trashed
Specify if you want to include or exclude trashed results from a query.
Enum Value | Description |
---|---|
|
Only return trashed results. |
|
Return both trashed and non-trashed results. |
|
Only return non-trashed results. |
UniversalBranchCode
Enum Value | Description |
---|---|
|
Absa Bank |
|
African Bank |
|
Capitec Bank |
|
Discovery Bank |
|
First National Bank |
|
Investec Bank |
|
MTN Banking |
|
Nedbank |
|
Postbank |
|
Sasfin Bank |
|
Standard Bank South Africa |
|
TymeBank |
|
Other Bank |
UpdateAllocationInput
Input Field | Description |
---|---|
id -
ID!
|
|
title -
String
|
|
description -
String
|
|
auxiliaryData -
JSON
|
|
value -
Float
|
|
units -
Float
|
|
unitCost -
Float
|
|
daysToDeliver -
Float
|
|
daysToInspect -
Float
|
|
addressId -
ID
|
|
deliveryInstructions -
JSON
|
Example
{
"id": ID,
"title": "abc123",
"description": "abc123",
"auxiliaryData": {},
"value": 123.45,
"units": 123.45,
"unitCost": 987.65,
"daysToDeliver": 123.45,
"daysToInspect": 123.45,
"addressId": ID,
"deliveryInstructions": {}
}
UpdatePartyInput
Input Field | Description |
---|---|
id -
ID
|
|
token -
String
|
Tokenized userdata |
email -
String
|
Email of party |
role -
Role
|
Role of party in transaction |
fee -
Float
|
Fee |
feeType -
FeeType
|
Fee Type |
feeAllocation -
FeeAllocation
|
Fee Allocation |
Example
{
"id": ID,
"token": "abc123",
"email": "abc123",
"role": Role,
"fee": 987.65,
"feeType": FeeType,
"feeAllocation": FeeAllocation
}
UpdateTransactionInput
Update a Transaction
Input Field | Description |
---|---|
id -
ID!
|
Transaction ID |
title -
String
|
Title sumarising the transaction |
description -
String
|
Long description of the transaction and its terms |
auxiliaryData -
JSON
|
Additional data to describe the transaction |
industry -
Industry
|
The industry classificaton for the transaction |
currency -
Currency
|
The base curreny for the transaction |
feeAllocation -
FeeAllocation
|
How TradeSafe's fee is split between the parties |
allocations -
AllocationRelation
|
How should the funds be paid out |
parties -
PartiesRelation
|
Parties involved in the transaction |
addressId -
String
|
Delivery Address ID |
deliveryInstructions -
String
|
Delivery Instructions |
privacy -
TransactionPrivacy
|
|
reference -
String
|
Example
{
"id": ID,
"title": "xyz789",
"description": "xyz789",
"auxiliaryData": {},
"industry": Industry,
"currency": Currency,
"feeAllocation": FeeAllocation,
"allocations": AllocationRelation,
"parties": PartiesRelation,
"addressId": "xyz789",
"deliveryInstructions": "abc123",
"privacy": TransactionPrivacy,
"reference": "abc123"
}
Upload
Can be used as an argument to upload files using https://github.com/jaydenseric/graphql-multipart-request-spec
Example
object