curl --request POST \
--url https://v2.prod.halliday.xyz/payments/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_id": "<string>",
"state_token": "aSDinaTvuI8gbWludGxpZnk=",
"owner_address": "<string>",
"destination_address": "<string>",
"client_redirect_url": "<string>"
}
'{
"payment_id": "<string>",
"status": "PENDING",
"funded": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"initiate_fund_by": "2023-11-07T05:31:56Z",
"quoted": {
"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
}
],
"onramp": "<string>",
"onramp_method": "credit_card"
},
"fulfilled": {
"route": [
{
"status": "PENDING",
"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,
"transaction_hash": "<string>"
}
],
"output_amount": {
"asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1"
},
"fees": {
"total_fees": "<string>",
"conversion_fees": "<string>",
"network_fees": "<string>",
"business_fees": "<string>",
"currency_symbol": "USD"
},
"onramp": "<string>",
"onramp_method": "credit_card"
},
"current_prices": {
"USD": "1.00",
"ethereum:0x": "4200",
"ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": "1.00"
},
"price_currency": "USD",
"processing_addresses": [
{
"chain": "ethereum",
"address": "<string>"
}
],
"owner_address": "<string>",
"destination_address": "<string>",
"completed_at": "2023-11-07T05:31:56Z",
"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>"
},
"customer_id": "<string>",
"next_instruction": {
"type": "ONRAMP",
"payment_id": "<string>",
"funding_page_url": "https://app.halliday.xyz/funding/${payment_id}",
"deposit_info": [
{
"deposit_token": "base:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"deposit_amount": "4.8",
"deposit_address": "0xaddress",
"deposit_chain": "base"
}
]
}
}Confirm a previously quoted payment and receive deposit instructions. Returns information on how to fund the payment (widget URL, contract address, etc.).
curl --request POST \
--url https://v2.prod.halliday.xyz/payments/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_id": "<string>",
"state_token": "aSDinaTvuI8gbWludGxpZnk=",
"owner_address": "<string>",
"destination_address": "<string>",
"client_redirect_url": "<string>"
}
'{
"payment_id": "<string>",
"status": "PENDING",
"funded": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"initiate_fund_by": "2023-11-07T05:31:56Z",
"quoted": {
"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
}
],
"onramp": "<string>",
"onramp_method": "credit_card"
},
"fulfilled": {
"route": [
{
"status": "PENDING",
"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,
"transaction_hash": "<string>"
}
],
"output_amount": {
"asset": "ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1"
},
"fees": {
"total_fees": "<string>",
"conversion_fees": "<string>",
"network_fees": "<string>",
"business_fees": "<string>",
"currency_symbol": "USD"
},
"onramp": "<string>",
"onramp_method": "credit_card"
},
"current_prices": {
"USD": "1.00",
"ethereum:0x": "4200",
"ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": "1.00"
},
"price_currency": "USD",
"processing_addresses": [
{
"chain": "ethereum",
"address": "<string>"
}
],
"owner_address": "<string>",
"destination_address": "<string>",
"completed_at": "2023-11-07T05:31:56Z",
"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>"
},
"customer_id": "<string>",
"next_instruction": {
"type": "ONRAMP",
"payment_id": "<string>",
"funding_page_url": "https://app.halliday.xyz/funding/${payment_id}",
"deposit_info": [
{
"deposit_token": "base:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"deposit_amount": "4.8",
"deposit_address": "0xaddress",
"deposit_chain": "base"
}
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the payment from the quote to confirm
State token from the quote response
Owner address for the payment. This is the address that the payment will be sent from.
Destination address for the payment. This is the address that the payment will be sent to.
Optional URL to redirect users to after an onramp flow completes.
Payment confirmed successfully
PENDING, COMPLETE, FAILED, EXPIRED, WITHDRAWN, TAINTED Whether the payment has been funded
Deadline for funding the 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 Onramp provider name
Payment method
"credit_card"
Show child attributes
In-progress workflow steps, statuses, and their effects
Show child attributes
PENDING, COMPLETE, UNREACHABLE, FAILED 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 Blockchain transaction hash for the step
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"
Onramp provider name
Payment method
"credit_card"
Currency that all prices are denominated in
"USD"
Address of the owner of the payment
Address of the destination of the payment
Optional reference to the original quote request.
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.
ID of the customer who created the payment
Instruction payload that returns the funding pages if the payment requires funding.
Show child attributes
Discriminator for this instruction type.
ONRAMP, TRANSFER_IN The payment this instruction is associated with.
URL where the user can complete funding for this payment.
One or more deposit routes to fund the payment.
Show child attributes
Identifier in the token format ("chain:address") or fiat currency code ("USD")
"ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Amount to deposit, as a decimal string.
"4.8"
Address to which funds will be deposited.
Network on which the deposit will be made (e.g., base, ethereum).
"base"
{
"type": "ONRAMP",
"payment_id": "<string>",
"funding_page_url": "https://app.halliday.xyz/funding/${payment_id}",
"deposit_info": [
{
"deposit_token": "base:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"deposit_amount": "4.8",
"deposit_address": "0xaddress",
"deposit_chain": "base"
}
]
}