Skip to main content
POST
/
organizations
/
{organization_id}
/
orders
Create Order
curl --request POST \
  --url https://api-sandbox.stablesea.com/v1/organizations/{organization_id}/orders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --data '
{
  "quote_id": "<string>"
}
'
{
  "data": {
    "id": "ord_01k4qn3cxdefkargtccm4ycxsf",
    "quote_id": "qt_01k4qpmvgxfsg9db9mjrtq9tk2",
    "offering_id": "off_01k4qph5ezfsga7fkvbygsqq93",
    "reference_number": "SS-ORD-20240115-001",
    "external_reference_id": null,
    "exchange_rate": "4250.00",
    "effective_exchange_rate": "4250.00",
    "payin": {
      "external_payment_instrument": {
        "id": "mnyacctcm_01k4r01nm4f41tcsws4sr9k8nn",
        "alias": "My Solana Wallet",
        "currency": "USDC",
        "method": "SOLANA_ADDRESS",
        "status": {
          "current_status": "ACTIVE",
          "status_history": [
            {
              "status": "ACTIVE",
              "created_at": "2024-01-15T10:00:00Z"
            }
          ]
        },
        "details": {
          "address": "A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6Q7R8S9T0U1V2W3X4Y5Z6"
        },
        "created_at": "2024-01-15T10:00:00Z",
        "updated_at": "2024-01-15T10:00:00Z"
      },
      "total": "1015.00",
      "fee": "15.00",
      "tax": "0.00"
    },
    "payout": {
      "external_payment_instrument": {
        "id": "mnyacctcop_01k4r01nkxf41vpxc3nekphrx8",
        "alias": "My COP Bank Account",
        "currency": "COP",
        "method": "COP_BANK_ACCOUNT",
        "status": {
          "current_status": "ACTIVE",
          "status_history": [
            {
              "status": "ACTIVE",
              "created_at": "2024-01-15T11:00:00Z"
            }
          ]
        },
        "details": {
          "bank_account_number": "1234567890",
          "bank_code": "001",
          "account_holder_first_name": "John",
          "account_holder_last_name": "Doe",
          "legal_entity_name": "Acme Corporation",
          "doc_type": "CC",
          "doc_id": "1234567890",
          "physical_address": "123 Main St, Bogota, Colombia",
          "account_type": "CHECKING"
        },
        "created_at": "2024-01-15T11:00:00Z",
        "updated_at": "2024-01-15T11:00:00Z"
      },
      "total": "4250000.00"
    },
    "status": {
      "current_status": "STEP_1_AWAITING_FUNDING",
      "status_history": [
        {
          "status": "STEP_1_AWAITING_FUNDING",
          "created_at": "2024-01-15T10:00:00Z"
        }
      ]
    },
    "funding_instructions": {
      "currency": "USDC",
      "method": "SOLANA_ADDRESS",
      "details": {
        "address": "B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6Q7R8S9T0U1V2W3X4Y5Z6A1"
      }
    },
    "retry_order_id": null,
    "created_at": "2024-01-15T10:00:00Z",
    "updated_at": "2024-01-15T10:00:00Z"
  }
}
Creates an order for an organization based on a quote.

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

quote_id
string
required
ID of the quote to create an order from

Response

{
  "data": {
    "id": "ord_01k4qn3cxdefkargtccm4ycxsf",
    "quote_id": "qt_01k4qpmvgxfsg9db9mjrtq9tk2",
    "offering_id": "off_01k4qph5ezfsga7fkvbygsqq93",
    "reference_number": "SS-ORD-20240115-001",
    "external_reference_id": null,
    "exchange_rate": "4250.00",
    "effective_exchange_rate": "4250.00",
    "payin": {
      "external_payment_instrument": {
        "id": "mnyacctcm_01k4r01nm4f41tcsws4sr9k8nn",
        "alias": "My Solana Wallet",
        "currency": "USDC",
        "method": "SOLANA_ADDRESS",
        "status": {
          "current_status": "ACTIVE",
          "status_history": [
            {
              "status": "ACTIVE",
              "created_at": "2024-01-15T10:00:00Z"
            }
          ]
        },
        "details": {
          "address": "A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6Q7R8S9T0U1V2W3X4Y5Z6"
        },
        "created_at": "2024-01-15T10:00:00Z",
        "updated_at": "2024-01-15T10:00:00Z"
      },
      "total": "1015.00",
      "fee": "15.00",
      "tax": "0.00"
    },
    "payout": {
      "external_payment_instrument": {
        "id": "mnyacctcop_01k4r01nkxf41vpxc3nekphrx8",
        "alias": "My COP Bank Account",
        "currency": "COP",
        "method": "COP_BANK_ACCOUNT",
        "status": {
          "current_status": "ACTIVE",
          "status_history": [
            {
              "status": "ACTIVE",
              "created_at": "2024-01-15T11:00:00Z"
            }
          ]
        },
        "details": {
          "bank_account_number": "1234567890",
          "bank_code": "001",
          "account_holder_first_name": "John",
          "account_holder_last_name": "Doe",
          "legal_entity_name": "Acme Corporation",
          "doc_type": "CC",
          "doc_id": "1234567890",
          "physical_address": "123 Main St, Bogota, Colombia",
          "account_type": "CHECKING"
        },
        "created_at": "2024-01-15T11:00:00Z",
        "updated_at": "2024-01-15T11:00:00Z"
      },
      "total": "4250000.00"
    },
    "status": {
      "current_status": "STEP_1_AWAITING_FUNDING",
      "status_history": [
        {
          "status": "STEP_1_AWAITING_FUNDING",
          "created_at": "2024-01-15T10:00:00Z"
        }
      ]
    },
    "funding_instructions": {
      "currency": "USDC",
      "method": "SOLANA_ADDRESS",
      "details": {
        "address": "B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6Q7R8S9T0U1V2W3X4Y5Z6A1"
      }
    },
    "retry_order_id": null,
    "created_at": "2024-01-15T10:00:00Z",
    "updated_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

Order request

quote_id
string
required

Response

201 - application/json

Order created successfully

data
object