Skip to main content

Overview

Your agent can order gift cards from a multi-brand catalog (Amazon, Uber, streaming services, gaming, travel, and more) using the Laso Finance API. Ordering a gift card is a two-call flow:
  1. GET /search-gift-cards — browse the catalog and find the laso_server_id for the brand you want.
  2. GET /order-gift-card — pay for the card via x402 and receive the redemption details.
Unlike prepaid cards, gift cards are issued instantly: the response to /order-gift-card already contains the redemption_code, pin_code, or redemption_url your agent needs. No polling step.

How it works

1

Discover the catalog

Your agent calls GET /search-gift-cards (free, Bearer token) and reads the facets object in the response to learn every valid category, currency, and country value.
2

Search for a brand

Filter the catalog with q, country, currency, and category to find the gift card. Each result includes a laso_server_id, allowed min/max amount, and the currency for the product.
3

Order the card

Your agent calls GET /order-gift-card?amount=X&laso_server_id=Y as an x402 request. The USDC price is the face value converted to USD, plus the product fee.
4

Use the redemption details

The response contains a redemption_code, pin_code, and/or redemption_url depending on the brand. Check all three fields — different brands return different combinations.

Step 1: Browse the catalog

The catalog is large, so the workflow is “discover the filters, then filter.” A single unfiltered request returns a facets object listing every valid value for category, currency, and country.
Then issue a filtered search using values from facets:

Response

The min, max, increment, and denominations fields tell your agent what amounts the brand accepts. Honor them before calling /order-gift-card.

Step 2: Order the gift card

amount is denominated in the product’s own currency, not USD. Laso converts it to USD at the current exchange rate and adds the product fee to compute the USDC price, so a 100 SAR card costs roughly $28 USDC rather than $100. Read the product’s currency from the catalog, and take the price your agent pays from the 402 challenge rather than assuming it equals amount.

Response

Redemption details vary by brand. Check redemption_code, pin_code, and redemption_url — different brands return different combinations.

Tell your agent

Limits and pricing

Each brand has its own allowed range and increment. Calling /order-gift-card with an amount outside the brand’s min/max or that doesn’t match its increment will fail. Always read the catalog entry first.