Search Gifts

๐Ÿšง

Breaking Changes

Jul. 30, 2025 ๆ‹ฟๅ–ๅ•†ๅ“็›ธ้—œ่ณ‡่จŠ API ็•ฐๅ‹•ๅ…ฌๅ‘Š Products related API Breaking Change

Function

To search gifts with specific conditions.
ๅˆฉ็”จ็‰นๆฎŠๆขไปถๆœๅฐ‹่ดˆๅ“ๅˆ—่กจใ€‚

URL

GET <<api_domain>>/v1/gifts/search

Request Parameters

ParameterColumn TypeDescriptionExample
idStringGift's ID
่ดˆๅ“ ID
pageIntegerPage Number
้ ๆ•ธ๏ผˆ็ฌฌn้ ๏ผ‰
(Default: 1)
ruby page=2
per_pageIntegerNumbers of Add-on
Products Per Page
ๆฏ้ ้กฏ็คบ n ็ญ†่ณ‡ๆ–™
(Default: 24)
ruby per_page=10
statusStringStatus
่ดˆๅ“็‹€ๆ…‹

- Status๏ผš
activeไธŠๆžถ
draft ไธ‹ๆžถ
ruby status=active
sort_byString## Sort by created_atdesc ้™ๅ†ชascๅ‡ๅ†ชruby sort_by=desc sort_by=asc
skuStringSKU
่ฒจ็‰ฉ็ทจ่™Ÿ
ruby sku=fru001
quantityIntegerQuantity
ๆ•ธ้‡

- *Support equal or not equal or less than or less than or equal or greater than or greater than or equal
ๆ”ฏๆด ็ญ‰ๆ–ผ ๆˆ– ไธ็ญ‰ๆ–ผ ๆˆ– ๅฐๆ–ผ ๆˆ– ๅฐๆ–ผ็ญ‰ๆ–ผ ๆˆ– ๅคงๆ–ผ ๆˆ– ๅคงๆ–ผ็ญ‰ๆ–ผ
ruby quantity=100 quantity=not:100 quantity=lt:100 quantity=lte:100 quantity=gt:100 quantity=gte:100
updated_atStringUpdated Time
ๆ›ดๆ–ฐๆ™‚้–“

- *Support equal or not equal or less than or less than or equal or greater than or greater than or equal
ๆ”ฏๆด ็ญ‰ๆ–ผ ๆˆ– ไธ็ญ‰ๆ–ผ ๆˆ– ๅฐๆ–ผ ๆˆ– ๅฐๆ–ผ็ญ‰ๆ–ผ ๆˆ– ๅคงๆ–ผ ๆˆ– ๅคงๆ–ผ็ญ‰ๆ–ผ
ruby updated_at=2018-11-11 12:30:30 updated_at=not: 2018-11-11 12:30:30 updated_at=lt: 2018-11-11 12:30:30 updated_at=lte: 2018-11-11 12:30:30 updated_at=gt: 2018-11-11 12:30:30 updated_at=gte: 2018-11-11 12:30:30
created_atStringCreated Time
ๅ‰ตๅปบๆ™‚้–“

- *Support equal or not equal or less than or less than or equal or greater than or greater than or equal
ๆ”ฏๆด ็ญ‰ๆ–ผ ๆˆ– ไธ็ญ‰ๆ–ผ ๆˆ– ๅฐๆ–ผ ๆˆ– ๅฐๆ–ผ็ญ‰ๆ–ผ ๆˆ– ๅคงๆ–ผ ๆˆ– ๅคงๆ–ผ็ญ‰ๆ–ผ
ruby created_at=2018-11-11 12:30:30 created_at=not: 2018-11-11 12:30:30 created_at=lt: 2018-11-11 12:30:30 created_at=lte: 2018-11-11 12:30:30 created_at=gt: 2018-11-11 12:30:30 created_at=gte: 2018-11-11 12:30:30

๐Ÿšง

Note

Please note the following pagination limitations when using this API:

  • The request will fail if page * per_page exceeds 10,000.
  • Example: If per_page = 50, the maximum value for page should be 200. Exceeding this value will result in an error.

ไฝฟ็”จๆญค API ๆ™‚๏ผŒ่ซ‹ๆณจๆ„ไปฅไธ‹ๅˆ†้ ้™ๅˆถ๏ผš

  • ็•ถ page * per_page ๅคงๆ–ผ 10,000 ๆ™‚๏ผŒ่ซ‹ๆฑ‚ๅฐ‡ๆœƒๅคฑๆ•—ใ€‚
  • ็ฏ„ไพ‹๏ผšๅฆ‚ๆžœ per_page = 50๏ผŒpage ๆœ€ๅคงๅ€ผๆ‡‰็‚บ 200๏ผŒ่ถ…้Žๆญคๅ€ผ่ซ‹ๆฑ‚ๅฐ‡ๆœƒๅคฑๆ•—ใ€‚

Response Fields

FieldColumn TypeDescriptionExample
itemsGet GiftsArray of Gifts
่ดˆๅ“่ณ‡่จŠ
Please check the link on the left
paginationPaginationPagination Data
้ ้ข่ณ‡่จŠ
Please check the link on the left

Response Example

{
    "items": [
        {
            "id": "60d5b37b52fb76002665d821",
            "status": "active",
            "title_translations": {
                "en": "Sample Gift 0001"
            },
            "sku": "GIFT-SKU-0001",
            "quantity": 0,
            "cost": {
                "cents": 12,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$12",
                "dollars": 12.0
            },
            "weight": 12.1,
            "medias": [],
            "updated_at": "2021-06-25T10:44:11.072+00:00",
            "created_at": "2021-06-25T10:44:11.072+00:00",
            "unlimited_quantity": true,
        },
        {
            "id": "60d5b34923df7b002cd70f67",
            "status": "active",
            "title_translations": {
                "en": "Sample Gift 0001"
            },
            "sku": "GIFT-SKU-0001",
            "quantity": 0,
            "cost": {
                "cents": 12,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$12",
                "dollars": 12.0
            },
            "weight": 12.1,
            "medias": [],
            "updated_at": "2021-06-25T10:43:21.971+00:00",
            "created_at": "2021-06-25T10:43:21.971+00:00",
            "unlimited_quantity": false,
        },
        {
            "id": "60d5b3409e545a003e4b8c69",
            "status": "active",
            "title_translations": {
                "en": "Sample Gift 0001"
            },
            "sku": "GIFT-SKU-0001",
            "quantity": 0,
            "cost": {
                "cents": 12,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$12",
                "dollars": 12.0
            },
            "weight": 12.1,
            "medias": [],
            "updated_at": "2021-06-25T10:43:12.145+00:00",
            "created_at": "2021-06-25T10:43:12.145+00:00",
            "unlimited_quantity": false,
        },
        {
            "id": "60d5b2b0ca4c5b00176ba405",
            "status": "active",
            "title_translations": {
                "en": "create by open api"
            },
            "sku": "GIFT-SKU-0001",
            "quantity": 0,
            "cost": {
                "cents": 12,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$12",
                "dollars": 12.0
            },
            "weight": 12.1,
            "medias": [],
            "updated_at": "2021-06-25T10:40:48.970+00:00",
            "created_at": "2021-06-25T10:40:48.970+00:00",
            "unlimited_quantity": true,
        }
    ],
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_pages": 1,
        "total_count": 4
    }
}

Sample Request

Search Gift with specific SKU

curl --location --request GET '<<api_domain>>/v1/gifts/search?page=1&per_page=10&sku=GIFT-SKU-0001' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ${token}'

Search with status , SKU , updated_at

curl --location --request GET '<<api_domain>>/v1/gifts/search?page=1&per_page=10&status=active&sku=GIFT-SKU-0001&updated_at=gt:2018-12-05' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ${token}'