Implementation
An overview of the API
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 Transactions
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.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | Transaction ID. |
Query Parameters
Name | Type | Description |
---|---|---|
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 put |
Create New Transaction
POST
https://discoin.zws.im/transactions
Request a transaction.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | "Bearer " + your token. |
Request Body
Name | Type | Description |
---|---|---|
amount | number | Transaction amount in original currency. |
toId | string | String, 3-letter currency code representing the destination currency. It's |
user | string | ID of user who requested the transaction. |
Process transactions
PATCH
https://discoin.zws.im/transactions/:id
Update a transaction, usually this means marking a transaction as processed.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | Transaction ID. |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | "Bearer " + your token. |
Request Body
Name | Type | Description |
---|---|---|
handled | boolean | Should be |
Last updated