BRIDGE API
  • Introduction
  • Quick Guide
  • Webhook
  • Reference
    • API
      • Get Transaction
      • Get Transactions
      • On-Ramp
      • Off-Ramp
Powered by GitBook
On this page
  1. Reference
  2. API

Off-Ramp

This endpoint allows users to convert their token into Fiat. Off-ramp endpoint make direct fiat payment to the provided bank account provided that the token is successfully sent.

Off-ramp

POST https://surtii.com/api/v1/business/transaction/offramp

Headers

Name
Type
Description

Authorization*

String

Bearer {{api_key}}

Request Body

Name
Type
Description

hash*

String

Blockchain transaction hash

from*

String

Wallet address where the transaction is sent from. (usually business wallet address). Check business account

amount*

String

Token amount (200)

account_number*

String

Receipient bank account number

bank_code*

String

Account number bank code (214)

email*

String

Receipient email

username*

String

Receipient usernam

{
    "status": true,
    "code": 200,
    "message": "Cashout transaction initiated",
    "data": {
        "reference_number": "P-C-20220418-H627E0IDTJ",
        "original_amount": 19,
        "amount": 18,
        "scalex_fee": 1,
        "expected_amount_in_fiat": "10574",
        "recipient": {
            "email": "[email protected]",
            "username": "vanjoeman",
            "account_number": "6235067017",
            "bank_code": "214"
        }
    }
}
{
    "status": false,
    "code": 400,
    "message": "Bad request",
    "data": {}
}
{
    "status": false,
    "code": 401,
    "message": "Unauthorized",
    "data": {}
}

PreviousOn-Ramp

Last updated 3 years ago