Skip to main content

HTTP API reference › GalaSwap DEX › onramper

GalaSwap DEX — onramper

Source commit: unknown. Generated: 2026-10-26T22:08:07.607Z.

1 operation in this group.

POST /api/v1/onramper/generate-widget-url​

OnramperController_generateWidgetUrl

Generate an Onramper widget URL

Creates a widget URL for the requested wallet and payment configuration.

Security: []

Request body​

Required: yes

application/json​

Schema: GenerateWidgetUrlDto

FieldTypeRequiredDescription
walletAddressstringyesWallet receiving the purchased or swapped crypto.
modestring enum: buy, sell, swapnoWidget transaction mode.
defaultFiatstringnoFiat currency code.
defaultAmountnumbernoDefault fiat amount.
sellDefaultAmountnumbernoDefault crypto amount for sell mode.
onlyCryptoNetworksstringnoAllowed crypto network identifiers.
defaultPaymentMethodstringnoDefault payment method.
defaultCryptostringnoDefault crypto ticker.
onlyPaymentMethodsstringnoAllowlisted payment methods.
excludePaymentMethodsstringnoPayment methods excluded from the widget.
onlyFiatstringnoAllowlisted fiat currencies.
excludeFiatstringnoFiat currencies excluded from the widget.
isAddressEditablestringnoWhether the user can edit the wallet address, encoded as a string.
networkPrefixstringnoOnramper network prefix.

Responses​

200 — Widget URL generated.​

Content type: application/json

Schema: GenerateWidgetUrlResponseDto

FieldTypeRequiredDescription
statusnumberyes
errorbooleanyes
messagestringyes
dataGenerateWidgetUrlDataDtoyes

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example request​

[]

Example response​

[]

Previous group: pairs · Next group: incentive