Implementation
An overview of the API
Last updated
An overview of the API
Last updated
This page describes key API methods used to initiate transactions within the new API (Since the auto-generated documentation has several errors). You're welcomed to test everything out yourself.
GET
https://discoin.zws.im/transactions/:id
Retrieves transactions. All retrieved transactions will NOT be automatically marked as "Processed". A PATCH request (described later) will do so. API docs are mostly correct for this and are more detailed.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
POST
https://discoin.zws.im/transactions
Request a transaction.
PATCH
https://discoin.zws.im/transactions/:id
Update a transaction, usually this means marking a transaction as processed.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
id
string
Transaction ID.
filter
string
Filter results of your query. If you don't specify this, the API returns all transactions. If you only want relevant unprocessed transactions, you can putfilter=to.id||eq||ABC&filter=handled||eq||false
here (gotta be URL encoded, of course).
Authorization
string
"Bearer " + your token.
amount
number
Transaction amount in original currency.
toId
string
String, 3-letter currency code representing the destination currency. It's "toId"
not the past form of "told"
.
user
string
ID of user who requested the transaction.
id
string
Transaction ID.
Authorization
string
"Bearer " + your token.
handled
boolean
Should be true
to mark this transaction as processed.