v2

Create a new gateway order.

Creates a new request, reserves the required liquidity.

post/v2/create-order

Request body

OR
OR

Response

Created order

OR
OR

Example response

{
  "onramp": {
    "order_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
  }
}

Changes

Changed in 3 of the 19 revisions of this API.6229

  • ca0ef15d5879323See the full diff
    • removed subschema #1 subschema #2 subschema #3 from the request body oneOf list

      request-body-one-of-removed

    • added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 subschema #6 subschema #7 subschema #8 subschema #9 subschema #10 subschema #11 to the details/oneOf[GatewayErrorDetailsV2]/ response property oneOf list for the response status 400

      response-property-one-of-added

    • removed the required property oneOf[subschema #3]/layerZero from the response with the 201 status

      response-required-property-removed

    • added the new AFFILIATE_FEES_NOT_SUPPORTED_FOR_ROUTE enum value to the code/oneOf[GatewayErrorCodeV2Variants]/ response property for the response status 400

      response-property-enum-value-added

    • added the new UNKNOWN enum value to the code/oneOf[GatewayErrorCodeV2Variants]/ response property for the response status 400

      response-property-enum-value-added

    • added subschema #1 subschema #2 subschema #3 to the request body oneOf list

      request-body-one-of-added

    • removed GatewayErrorDetails GatewayErrorDetailsV2Variants from the details/oneOf[GatewayErrorDetailsV2]/ response property oneOf list for the response status 400

      response-property-one-of-removed

    • added the required property oneOf[subschema #3]/tokenSwap to the response with the 201 status

      response-required-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • f38ecb0aac58325See the full diff
    • added GatewayErrorCode GatewayErrorCodeV2Variants to the code response property oneOf list for the response status 400

      response-property-one-of-added

    • added GatewayErrorDetailsV2 to the details response property oneOf list for the response status 400

      response-property-one-of-added

    • the code response's property type/format changed from string/ to / for status 400

      response-property-type-changed

    • removed the DISABLED_CHAIN enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the DUPLICATE_ORDER enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the EXCEEDED_LIMIT enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the GAS_ESTIMATE_FAILED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the GLOBAL_LIMIT_EXCEEDED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_AMOUNT enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_CONFIRMED_FUNDS enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_PAYMENT_AMOUNT enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_SOLVER_BALANCE enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_SWAP_AMOUNT enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INTERNAL_ERROR enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INVALID_AFFILIATE_FEE enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INVALID_DESTINATION_CHAIN_ID enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INVALID_ORDER_ARGS enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INVALID_REQUEST enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the NO_ROUTE enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the ORDER_EXPIRED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the ORDER_NOT_FOUND enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the PER_ACCOUNT_LIMIT_EXCEEDED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the QUOTE_AMOUNT_TOO_LOW enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the SIMULATION_FAILED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the SLIPPAGE_TOO_HIGH enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the SLIPPAGE_TOO_LOW enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the UNABLE_TO_COVER_FEES enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed GatewayErrorDetails from the details response property oneOf list for the response status 400

      response-property-one-of-removed

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog