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:GET /search-gift-cards— browse the catalog and find thelaso_server_idfor the brand you want.GET /order-gift-card— pay for the card via x402 and receive the redemption details.
/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 equals the face value (with optional FX conversion for non-USD products).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 afacets object listing every valid value for category, currency, and country.
facets:
Response
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
Response
Redemption details vary by brand. Check
redemption_code, pin_code, and redemption_url — different brands return different combinations.Tell your agent
Order a \$50 Amazon gift card
Order a \$50 Amazon gift card
Browse categories before ordering
Browse categories before ordering
Order a non-USD gift card
Order a non-USD gift card