Skip to content

Fetch one collection

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

Returns full value detail, so you can work out whether a value is needed — and which values are allowed — before calling POST /send/collection.

id
required
integer format: int32
/^-?(?:0|[1-9]\d*)$/

The collection id.

The collection.

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

No active collection with that id is available to you.

object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string