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 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 afacets object listing every valid value for category, currency, and country. ($LASO_ID_TOKEN is your session token, exported from your saved credentials.)
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.Unknown product id
Alaso_server_id that is not in the catalog returns HTTP 404 with code: "unknown_laso_server_id". The check runs before a payment is quoted, so the response arrives in place of the 402 challenge and nothing is charged. The error is terminal, so retrying the same id will not help. Call GET /search-gift-cards and copy the laso_server_id from a result. Ids are never country-suffixed: Amazon is amazon everywhere, and the regional variant is chosen with country.
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