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
string
user email
password
string
user password
Login user
POST
https://api.omdc.com/login
User login
Request Body
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
userId
string
user's id
currency
string
currency type or token
Headers
auth
string
auth token
Add Omise address
POST
https://api.omdc.com/addAddress
Headers
auth
string
auth token
Request Body
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
auth
string
auth token
Request Body
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
auth
string
auth token
Request Body
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
auth
string
auth token
Request Body
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
currency
string
currency type
user_id
string
user's id
Headers
auth
string
auth token
Get transaction history
GET
https://api.omdc.com/getHistory
Query Parameters
user_id
string
user's id
Headers
auth
string
auth token
Get total balance
GET
https://api.omdc.com/getTotalBalance
Query Parameters
user_id
string
user's id
Headers
auth
string
auth token
Last updated
Was this helpful?