Skip to main content
POST
/
v1
/
create-order
Create a new gateway order.
curl --request POST \
  --url https://gateway-api-staging.gobob.xyz/v1/create-order \
  --header 'Content-Type: application/json' \
  --data '
{
  "onramp": {
    "dstChain": "<string>",
    "dstToken": "<string>",
    "executionFees": {
      "address": "<string>",
      "amount": "<string>",
      "chain": "<string>"
    },
    "feeBreakdown": {
      "affiliateFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>"
      },
      "executionFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>"
      },
      "layerzeroFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>"
      },
      "protocolFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>"
      },
      "solverFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>"
      }
    },
    "fees": {
      "address": "<string>",
      "amount": "<string>",
      "chain": "<string>"
    },
    "inputAmount": {
      "address": "<string>",
      "amount": "<string>",
      "chain": "<string>"
    },
    "outputAmount": {
      "address": "<string>",
      "amount": "<string>",
      "chain": "<string>"
    },
    "recipient": "<string>",
    "sender": "<string>",
    "slippage": "<string>",
    "token": "<string>",
    "gasRefill": "<string>",
    "strategyAddress": "<string>",
    "strategyMessage": "<string>"
  }
}
'
{
  "onramp": {
    "address": "<string>",
    "order_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
    "psbt_hex": "<string>",
    "op_return_data": "<string>"
  }
}

Body

application/json

Gateway quote.

onramp
object
required

Response

201 - application/json

Created order

Created new Gateway order

onramp
object
required