Complete Offramp Transfer

Finalize Offramp Transfer: Confirm Customer Deposit and Initiate Transfer Process

post
Path parameters
transfer_idstring · uuidRequired

The unique identifier of the cross-chain transfer

customer_idstring · uuidRequired

The unique identifier of the customer

Header parameters
AuthorizationstringRequired

Token for authentication

Body
deposit_transaction_hashstringRequired

The transaction hash of the deposit transaction

Responses
200
Successful offramp transfer complete response
application/json
post
POST /v0/customers/{customer_id}/offramp-transfer/{transfer_id}/complete HTTP/1.1
Host: api.alignlabs.dev
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "deposit_transaction_hash": "text"
}
200

Successful offramp transfer complete response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "amount": "text",
  "source_token": "usdc",
  "source_network": "polygon",
  "destination_currency": "usd",
  "destination_bank_account": {
    "bank_name": "text",
    "account_holder_type": "individual",
    "account_holder_first_name": "text",
    "account_holder_last_name": "text",
    "account_holder_business_name": "text",
    "account_type": "iban",
    "iban": {
      "bic": "text",
      "iban_number": "text"
    }
  },
  "quote": {
    "deposit_network": "polygon",
    "deposit_token": "usdc",
    "deposit_blockchain_address": "text",
    "deposit_amount": "text",
    "fee_amount": "text"
  }
}

Complete Offramp Transfer

POST /v0/customers/{customer_id}/offramp-transfer/{transfer_id}/complete

Finalize Offramp Transfer: Confirm Customer Deposit and Initiate Transfer Process

Headers

Name
Value

Content-Type

application/json

Authorization

<token>

Body

Name
Type
Description

deposit_transaction_hash

string

The transaction hash of the deposit transaction

Response

type Response = {
  id: string;
  status: 'pending' | 'processing' | 'completed';
  amount: string;
  source_token: 'usdc' | 'usdt';
  source_network: 'polygon' | 'ethereum' | 'tron' | 'solana';
  destination_currency: 'usd' | 'eur' | 'mxn' | 'ars' | 'brl' | 'cny' | 'hkd' | 'sgd';
  destination_bank_account: {
    bank_name: string;
    account_holder_type: 'individual' | 'business';
    account_holder_first_name?: string;
    account_holder_last_name?: string;
    account_holder_business_name?: string;
    account_type: 'us' | 'iban';
    iban?: {
      bic: string;
      iban_number: string;
    };
    us?: {
      account_number: string;
      routing_number: string;
    };
  };
  quote: {
    deposit_network: 'polygon' | 'ethereum' | 'tron' | 'solana';
    deposit_token: 'usdc' | 'usdt' | 'eurc';
    deposit_blockchain_address: string;
    deposit_amount: string;
    fee_amount: string;
  };
};

Last updated