Skip to content

List the collections you can send

GET
/collections
curl --request GET \
--url https://api.1up.gift/collections \
--header 'Authorization: Bearer <token>'

A collection lets the recipient choose their own gift from a set. You get the global curated collections plus any custom ones built for your account. Collections are country- and currency-specific.

country
string

ISO 3166-1 alpha-2 country filter.

currencyId
integer format: int32

Only return collections priced in this currency.

budget
number format: double

Only return collections that can be sent for this amount or less.

The matching collections.

Array<object>

A set of gifts the recipient chooses from: enough to identify it, price it and present it in a picker.

object
id

The collection id. Pass it as collectionId when sending.

integer format: int32
name

The collection name.

null | string
kind

“curated” (a global, banded collection) or “custom” (this customer’s own, fixed-value collection).

null | string
country

The ISO 3166-1 alpha-2 country this collection sends for.

null | string
currency

The ISO code of the currency this collection is priced in.

null | string
currencyPrefix

The currency’s display prefix (e.g. “£”), so a caller can format values the same prefix-only way the Label does.

null | string
value

A custom collection’s fixed per-recipient value; null for curated collections (which send at one of their value points, or a custom amount).

null | number format: double
requiresValue

Whether the caller must supply a value to send this collection. True for curated collections (the sender chooses the band/amount); false for custom collections, which carry their own fixed value.

boolean
allowCustomValue

Whether a curated collection accepts any positive amount (rather than only its fixed value points).

boolean
valuePoints

A curated collection’s value points (the bands it can be sent at), ascending. Empty for custom.

Array<number> | null
valueChoices

The value points as ready-to-display picker choices: canonical numeric value mapped to its prefix- formatted label. Null when there’s nothing to pick from (custom, or a curated collection that takes any amount).

null | object
minValue

The bounds of a curated collection’s value points, for a range hint when any amount is allowed.

null | number format: double
maxValue
null | number format: double
label

A ready-to-display label combining the name with its value context, for a picker.

null | string