---
title: "상품별 구매내역"
method: GET
path: "/api/v1/wallet/history/buy/{id}"
tags: ["Wallet"]
---

# 상품별 구매내역

`GET /api/v1/wallet/history/buy/{id}`

## Path parameters

- `id` string, required

## Query parameters

- `sortType` 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'ASC' | 'DESC' | 'NONE' | 'PRICE_ASC' | 'PRICE_DESC' | 'UNIT_PRICE_ASC' | 'UNIT_PRICE_DESC'
- `pageSize` integer, required
- `pageNum` integer, required

## Response `200`

OK

- WinclAggregationResponseBuyHistoryPurchaseHistoryAggregation
  - `aggregation` PurchaseHistoryAggregation
    - `amt` number — 집합한 구매수량
    - `price_tot_krw` number — 집합한 구매가격 (원화)
    - `price_tot_usd` number — 집합한 구매가격 (달러)
  - `code` string
  - `currentPageNum` integer — 현재 페이지 번호
  - `items` BuyHistory[]
    - `amt` number — 구매 구매수량
    - `blockchainTransactionHash` string — 블록체인 트랜잭션 해쉬
    - `cd_nation` string — 프로덕트 생성국가
    - `certificateAgency` string — 프로젝트 인증기관
    - `currency` string — 통화
    - `dttm_buy` integer — 구매 날짜
    - `id_usr_prod_buy` string — 구매 아이디
    - `img_thumbnail_prod` string — 프로덕트 썸네일
    - `nm_prod` string — 프로덕트 이름
    - `nm_proj` string — 프로젝트 이름
    - `nm_proj_dev` string
    - `orderId` string — 윈클 내부 주문 ID
    - `paymentMethod` string — 결제수단
    - `pgOrderId` string — orderId와 맵핑되는 PG 주문 ID
    - `price_tot_krw` number — 총 구매가격
    - `price_tot_usd` number — 총 구매가격 usd
    - `projectId` integer — 프로젝트 아이디
    - `project_type` 'AFFORESTATION_REFORESTATION_AND_REVEGETATION' | 'AGRICULTURAL_LAND_MANAGEMENT' | 'AGRICULTURE_FORESTRY_AND_OTHER_LAND_USE' | 'AVOIDED_CONVERSION_OF_GRASSLANDS_AND_SHRUBLANDS' | 'CHEMICAL_INDUSTRY' | 'CLIMATE_CHANGE_ADAPTION' | 'CONSTRUCTION' | 'ENERGY' | 'ENERGY_DEMAND' | 'ENERGY_DISTRIBUTION' | 'ENERGY_INDUSTRIES' | 'FUGITIVE_EMISSIONS_FROM_FUELS__SOLID_OIL_AND_GAS' | 'IMPROVED_FOREST_MANAGEMENT' | 'LIVELIHOODS' | 'LIVESTOCK_ENTERIC_FERMENTATION_AND_MANURE_MANAGEMENT' | 'MANUFACTURING_INDUSTRIES' | 'METAL_PRODUCTION' | 'MINING_MINERAL_ODUCTION' | 'PLASTIC_WASTE_COLLECTION' | 'PLASTIC_WASTE_RECYCLING' | 'REDUCED_EMISSONS_FROM_FORESTATION_AND_DEGRADATION' | 'TRANSPORT' | 'UNSPECIFIED' | 'WASTE_HANDLING_AND_DISPOSAL' | 'WATER_ACCESS_AND_SANITATIO' | 'WETLAND_REWETTING_AND_CONSVATION' — 프로덕트 타입
    - `status_act` 'CANCELED' | 'FAIL' | 'PENDING' | 'SUCCESS' — 구매 상태
  - `message` string
  - `pageSize` integer — 페이지당 아이템 개수
  - `sortType` 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'ASC' | 'DESC' | 'NONE' | 'PRICE_ASC' | 'PRICE_DESC' | 'UNIT_PRICE_ASC' | 'UNIT_PRICE_DESC' — 정렬 기준
  - `totalCount` integer — 전체 아이템 개수
  - `totalPages` integer — 전체 페이지 수

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/wincl/apis/wincl-api.md) · [All operations](https://skmtc.net/wincl/apis/wincl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wincl/wincl-api/versions/662edcbbf2b3/schema)
