curl --request POST \
--url https://v2.prod.halliday.xyz/payments/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"request": {
"kind": "FIXED_INPUT",
"fixed_input_amount": {
"asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1"
},
"output_asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"price_currency": "USD",
"onramps": [
"moonpay",
"coinbase"
],
"onramp_methods": [
"credit_card",
"ach",
"apple_pay"
],
"customer_ip_address": "<string>",
"customer_id": "<string>",
"customer_geolocation": {
"alpha3_country_code": "<string>",
"state_code": "<string>"
},
"parent_payment_id": "<string>"
}
'{
"quote_request": {
"request": {
"kind": "FIXED_INPUT",
"fixed_input_amount": {
"asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1"
},
"output_asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"price_currency": "USD",
"onramps": [
"moonpay",
"coinbase"
],
"onramp_methods": [
"credit_card",
"ach",
"apple_pay"
],
"customer_ip_address": "<string>",
"customer_id": "<string>",
"customer_geolocation": {
"alpha3_country_code": "<string>",
"state_code": "<string>"
},
"parent_payment_id": "<string>"
},
"quotes": [
{
"output_amount": {
"asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1"
},
"fees": {
"total_fees": "<string>",
"conversion_fees": "<string>",
"network_fees": "<string>",
"business_fees": "<string>",
"currency_symbol": "USD"
},
"route": [
{
"type": "ONRAMP",
"net_effect": {
"consume": [
{
"account": "USER",
"resource": {
"asset": "<string>",
"property": "APPROVAL"
},
"amount": {
"amount": "<string>"
}
}
],
"produce": [
{
"account": "USER",
"resource": {
"asset": "<string>",
"property": "APPROVAL"
},
"amount": {
"amount": "<string>"
}
}
]
},
"pieces_info": [
{
"type": "onramp"
}
],
"step_index": 123
}
],
"payment_id": "<string>",
"onramp": "<string>",
"onramp_method": "credit_card"
}
],
"current_prices": {
"USD": "1.00",
"ethereum:0x": "4200",
"ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": "1.00"
},
"price_currency": "USD",
"state_token": "<string>",
"quoted_at": "2023-11-07T05:31:56Z",
"accept_by": "2023-11-07T05:31:56Z",
"failures": [
{
"service_ids": [
"<string>"
],
"latency_seconds": 123,
"issues": [
{
"kind": "amount",
"given": {
"amount": "<string>"
},
"limits": {
"min": {
"amount": "<string>"
},
"max": {
"amount": "<string>"
}
},
"source": "<string>",
"message": "<string>"
}
]
}
]
}Request quotes for payments, supporting both fixed input and fixed output scenarios. Returns multiple quote options with pricing, fees, and routing information.
This endpoint can also be used to requote from an existing payment by providing a payment_id. When requoting, input amounts are automatically derived from the payment’s current state, but you can optionally override the output asset.
curl --request POST \
--url https://v2.prod.halliday.xyz/payments/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"request": {
"kind": "FIXED_INPUT",
"fixed_input_amount": {
"asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1"
},
"output_asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"price_currency": "USD",
"onramps": [
"moonpay",
"coinbase"
],
"onramp_methods": [
"credit_card",
"ach",
"apple_pay"
],
"customer_ip_address": "<string>",
"customer_id": "<string>",
"customer_geolocation": {
"alpha3_country_code": "<string>",
"state_code": "<string>"
},
"parent_payment_id": "<string>"
}
'{
"quote_request": {
"request": {
"kind": "FIXED_INPUT",
"fixed_input_amount": {
"asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1"
},
"output_asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"price_currency": "USD",
"onramps": [
"moonpay",
"coinbase"
],
"onramp_methods": [
"credit_card",
"ach",
"apple_pay"
],
"customer_ip_address": "<string>",
"customer_id": "<string>",
"customer_geolocation": {
"alpha3_country_code": "<string>",
"state_code": "<string>"
},
"parent_payment_id": "<string>"
},
"quotes": [
{
"output_amount": {
"asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1"
},
"fees": {
"total_fees": "<string>",
"conversion_fees": "<string>",
"network_fees": "<string>",
"business_fees": "<string>",
"currency_symbol": "USD"
},
"route": [
{
"type": "ONRAMP",
"net_effect": {
"consume": [
{
"account": "USER",
"resource": {
"asset": "<string>",
"property": "APPROVAL"
},
"amount": {
"amount": "<string>"
}
}
],
"produce": [
{
"account": "USER",
"resource": {
"asset": "<string>",
"property": "APPROVAL"
},
"amount": {
"amount": "<string>"
}
}
]
},
"pieces_info": [
{
"type": "onramp"
}
],
"step_index": 123
}
],
"payment_id": "<string>",
"onramp": "<string>",
"onramp_method": "credit_card"
}
],
"current_prices": {
"USD": "1.00",
"ethereum:0x": "4200",
"ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": "1.00"
},
"price_currency": "USD",
"state_token": "<string>",
"quoted_at": "2023-11-07T05:31:56Z",
"accept_by": "2023-11-07T05:31:56Z",
"failures": [
{
"service_ids": [
"<string>"
],
"latency_seconds": 123,
"issues": [
{
"kind": "amount",
"given": {
"amount": "<string>"
},
"limits": {
"min": {
"amount": "<string>"
},
"max": {
"amount": "<string>"
}
},
"source": "<string>",
"message": "<string>"
}
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
FIXED_INPUT Show child attributes
Identifier in the token format ("chain:address") or fiat currency code ("USD")
"ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Currency that all prices are denominated in
"USD"
Filter by specific onramp providers
["moonpay", "coinbase"]Filter by onramp payment methods
["credit_card", "ach", "apple_pay"]IP address of the customer
Customer ID for tracking
Optional parent payment identifier used when creating a quote from an existing payment.
Successful quote response
Show child attributes
Show child attributes
FIXED_INPUT Show child attributes
Identifier in the token format ("chain:address") or fiat currency code ("USD")
"ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Amount as a string to preserve precision
"1"
Identifier in the token format ("chain:address") or fiat currency code ("USD")
"ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Currency that all prices are denominated in
"USD"
Filter by specific onramp providers
["moonpay", "coinbase"]Filter by onramp payment methods
["credit_card", "ach", "apple_pay"]IP address of the customer
Customer ID for tracking
Optional parent payment identifier used when creating a quote from an existing payment.
Show child attributes
Show child attributes
Total fees amount
Ramps + bridge + DEX fees
Blockchain gas fees
Developer integration fees
Currency symbol that the fees are denominated in (e.g., "USD", "USDC")
"USD"
Quoted workflow steps and their effects
Show child attributes
ONRAMP, ONCHAIN_STEP, USER_FUND Show child attributes
Show child attributes
USER, DEST, HALLIDAY, PROCESSING_ADDRESS, REV_SHARE, BRIDGE Show child attributes
USER, DEST, HALLIDAY, PROCESSING_ADDRESS, REV_SHARE, BRIDGE Unique payment identifier
Onramp provider name
Payment method
"credit_card"
Currency that all prices are denominated in
"USD"
Signed state token containing routing and payment flow information. This value must be passed unmodified in subsequent API calls. Do not attempt to parse or modify this data as it is cryptographically signed.
Timestamp of when the quote was created, in UTC ISO 8601 format
Timestamp of when the quote will expire, in UTC ISO 8601 format
Providers that failed to return a quote.
Show child attributes
Providers that failed to return quotes.
Time taken for the failed quote attempt.
Optional list of structured issues describing the failure.
Show child attributes
amount