Skip to main content
POST
/
organizations
/
{organization_id}
/
quotes
Create Quote
curl --request POST \
  --url https://api-sandbox.stablesea.com/v1/organizations/{organization_id}/quotes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --data '
{
  "payin_amount": "<string>",
  "offering_id": "<string>"
}
'
{
  "data": {
    "id": "qt_01k4qpmvgxfsg9db9mjrtq9tk2",
    "offering_id": "off_01k4qph5ezfsga7fkvbygsqq93",
    "exchange_rate": "4250.00",
    "payin": {
      "total": "1015.00",
      "fee": "15.00",
      "tax": "0.00"
    },
    "payout": {
      "total": "4250000.00"
    },
    "submission_expires_at": "2024-01-15T10:30:00Z",
    "funding_expires_at": "2024-01-15T12:00:00Z",
    "created_at": "2024-01-15T10:00:00Z"
  }
}
Creates a quote for an organization.

Common Headers

HeaderValueRequiredDescription
AuthorizationBearer <api-key>trueYour API key for authentication
Content-Typeapplication/jsontrueContent type of the request
Idempotency-Key<unique-uuid>trueUnique key to prevent duplicate operations

Path

organization_id
string
required
ID of organization

Body

offering_id
string
required
ID of the offering to quote
payin_amount
string
Amount to pay in (specify either payin_amount or payout_amount, not both)
payout_amount
string
Amount to receive as payout (specify either payin_amount or payout_amount, not both)
Either payin_amount or payout_amount may be specified but not both.

Response

{
  "data": {
    "id": "qt_01k4qpmvgxfsg9db9mjrtq9tk2",
    "offering_id": "off_01k4qph5ezfsga7fkvbygsqq93",
    "exchange_rate": "4250.00",
    "payin": {
      "total": "1015.00",
      "fee": "15.00",
      "tax": "0.00"
    },
    "payout": {
      "total": "4250000.00"
    },
    "submission_expires_at": "2024-01-15T10:30:00Z",
    "funding_expires_at": "2024-01-15T12:00:00Z",
    "created_at": "2024-01-15T10:00:00Z"
  }
}

Authorizations

Authorization
string
header
default:DEFAULT-TOKEN-HERE
required

Use your API key as the bearer token

Headers

Idempotency-Key
string
required

Unique key to prevent duplicate operations

Example:

"550e8400-e29b-41d4-a716-446655440000"

Path Parameters

organization_id
string
required

ID of organization

Example:

"org_01k2cm4r59e5z8k5ggrbbxjcwy"

Body

application/json

Quote request

payin_amount
string<decimal>
required

A string representation of a decimal number

offering_id
string
required

Response

201 - application/json

Quote created successfully

data
object