Create Offramp Transfer

Create new Offramp Transfer

post

Creates offramp transfer and returns deposit information

Path parameters
customer_idstringRequired

The unique identifier of the customer

Header parameters
AuthorizationstringRequired

Token for authentication

Body
amountstring · decimalRequired

The amount of the offramp transfer as a numeric string

Pattern: ^[0-9]+(\.[0-9]+)?$
source_tokenstring · enumRequired

The currency to be deposited

Possible values:
source_networkstring · enumRequired

The blockchain network for the source token

Possible values:
destination_currencystring · enumRequired

The currency for the destination

Possible values:
destination_payment_railsstring · enumRequired

The rails type to be used for the bank transfer

Possible values:
destination_bank_accountone ofRequired
or
Responses
201
Successful offramp transfer initiation response
application/json
post
POST /v0/customers/{customer_id}/offramp-transfer HTTP/1.1
Host: api.alignlabs.dev
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 486

{
  "amount": "text",
  "source_token": "usdc",
  "source_network": "polygon",
  "destination_currency": "usd",
  "destination_payment_rails": "ach",
  "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_holder_address": {
      "country": "text",
      "city": "text",
      "street_line_1": "text",
      "postal_code": "text"
    },
    "account_type": "iban",
    "iban": {
      "bic": "text",
      "iban_number": "text"
    }
  }
}
201

Successful offramp transfer initiation 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"
  }
}

Last updated