Create Quote

Create Offramp Transfer Quote

post
Path parameters
customer_idstring · uuidRequired

The unique identifier of the customer

Header parameters
AuthorizationstringRequired

Token for authentication

Body
one ofOptional

Either source_amount OR destination_amount must be provided to calculate the quote in the desired direction

or
Responses
201

Quote created successfully

application/json
post
POST /v0/customers/{customer_id}/offramp-transfer/quote HTTP/1.1
Host: api.alignlabs.dev
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 166

{
  "source_amount": "text",
  "source_token": "usdc",
  "source_network": "polygon",
  "destination_currency": "usd",
  "destination_payment_rails": "ach",
  "developer_fee_percent": "0.5"
}
201

Quote created successfully

{
  "quote_id": "123e4567-e89b-12d3-a456-426614174000",
  "source_amount": "100.50",
  "source_token": "usdc",
  "source_network": "ethereum",
  "destination_currency": "usd",
  "destination_payment_rails": "text",
  "destination_amount": "100.50",
  "fee_amount": "10.50",
  "exchange_rate": "text",
  "expire_at": "2025-09-13T17:16:29.745Z"
}

Last updated