OMDC - Omise Dollar Coin
Initial api that will be used for the MVP
Register user
POST
https://api.omdc.com/register
This endpoint allows you to register new user
Request Body
Name | Type | Description |
---|---|---|
string | user email | |
password | string | user password |
Login user
POST
https://api.omdc.com/login
User login
Request Body
Name | Type | Description |
---|---|---|
string | user email | |
password | string | user password |
Get currency balance
GET
https://api.omdc.com/balance
Uses omise transfer api for usd balance and omise blockchain api for OMDC balance
Query Parameters
Name | Type | Description |
---|---|---|
userId | string | user's id |
currency | string | currency type or token |
Headers
Name | Type | Description |
---|---|---|
auth | string | auth token |
Add Omise address
POST
https://api.omdc.com/addAddress
Headers
Name | Type | Description |
---|---|---|
auth | string | auth token |
Request Body
Name | Type | Description |
---|---|---|
addressDescription | string | add some description for the new address |
omiseAddress | string | omise address |
user_id | string | user's id |
Buy OMDC token with usd
POST
https://api.omdc.com/buy
Uses omise transfer api for the usd payment + omise blockchain api for OMDC transfer
Headers
Name | Type | Description |
---|---|---|
auth | string | auth token |
Request Body
Name | Type | Description |
---|---|---|
bankDetails | object | object with bank details |
receiverAddress | string | omise address where funds will be received |
amount | string | amount that users wants to buy |
Redeem OMDC
POST
https://api.omdc.com/redeem
Uses omise transfer api for the payment + omise blockchain api to burn OMDC tokens
Headers
Name | Type | Description |
---|---|---|
auth | string | auth token |
Request Body
Name | Type | Description |
---|---|---|
bankDetails | string | user's bank details |
user_id | string | user's id |
amount | string | OMDC amount to be redeemed |
Send OMDC to external address
POST
https://api.omdc.com/sendOMDC
Uses only omise blockchain api
Headers
Name | Type | Description |
---|---|---|
auth | string | auth token |
Request Body
Name | Type | Description |
---|---|---|
amount | string | amount of OMDC tokens to be sent |
receiverAddress | string | address where you send the OMDC tokens |
Get user blockchain address
GET
https://api.omdc.com/getAddress
Query Parameters
Name | Type | Description |
---|---|---|
currency | string | currency type |
user_id | string | user's id |
Headers
Name | Type | Description |
---|---|---|
auth | string | auth token |
Get transaction history
GET
https://api.omdc.com/getHistory
Query Parameters
Name | Type | Description |
---|---|---|
user_id | string | user's id |
Headers
Name | Type | Description |
---|---|---|
auth | string | auth token |
Get total balance
GET
https://api.omdc.com/getTotalBalance
Query Parameters
Name | Type | Description |
---|---|---|
user_id | string | user's id |
Headers
Name | Type | Description |
---|---|---|
auth | string | auth token |
Last updated