Dex3
Merchant DashboardHome
  • 👋Introduction
    • Dex3 API
    • Payment Gateway
    • Payout System
  • 🌟Getting Started
    • Create merchant
  • ⚙️Connect to API
    • Connect API
  • 🚩Merchant Status
    • Get Merchant Status
  • 🪙Payment Gateway
    • Create New Payment
      • Create Signature
    • Get Payment Status
    • Get Payment Data
    • Payment Success Webhook
      • Verify Webhook Signature
  • 🫴Payout System
    • Create New Payout
      • Create Signature
    • Get Payout Status
    • Get Payout Data
    • Payout Success Webhook
      • Verify Webhook Signature
    • Payout Contracts
Powered by GitBook
On this page

Was this helpful?

  1. Connect to API

Connect API

Connect to Dex3 API endpoints using the following Default URL

https://api.dex3.io/api/v1/

Make sure to include the below header or your API request will be rejected.

Headers
Value
Description

merchant_public

YOUR_MERCHANT_PUBLIC

Your Merchant Public key, get it from your Dex3 merchant dashboard.

Make sure to call the API only using the above URL. If you are intended to call using any other URL, there is a high risk to lose your merchant account or asset getting stolen.

Response Example

//All response (Success or error) will include "state" field.
{
  "state": true,
  "data": true
}
{
    "state": false,
    "error": {
        "message": "Please check form error",
        "code": 403,
        "errData": {
            "notes": {
                "type": "field",
                "value": {
                    "user_id": "3"
                },
                "msg": "Invalid JSON provided",
                "path": "notes",
                "location": "body"
            },
            "expiration": {
                "type": "field",
                "msg": "Expiration is required",
                "path": "expiration",
                "location": "body"
            },
            "amount": {
                "type": "field",
                "value": "100.012",
                "msg": "Amount must be a non-decimal positive value",
                "path": "amount",
                "location": "body"
            }
        }
    }
}
PreviousCreate merchantNextGet Merchant Status

Last updated 1 year ago

Was this helpful?

⚙️