구매 내역 API
Purchase History API
View the purchase list of the user
GET
/v1/customer-purchases
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
Query ParampageSizeThe number of sticker elements to be received in one request. The default number is 40, and the maximum number is 100.X
Query ParampagePage number Page number starts from 0.X
[Request example]
GET
`https://oapi.ogq.me/v1/customer-purchases`
[ Response Body (data)]
요청이 성공하면 응답 바디에 JSON 객체로 아래 값을 포함합니다.
파라미터명타입설명
hasNextbooleanA field to check if there is more content to be searched. If there is more data with the search condition, hasNext returns a value of "true".
elementsobject구매한 콘텐츠 목록
elements
파라미터명타입설명
contentIdStringUnique ID value of the sticker content
contentTypeStringType of contents purchased (IMAGE, STICKER)
contentNameStringThe name of the purchased content
contentUrlStringThe thumbnail URL of the purchased content
orderNoStringPartner ID of the transaction
[Response example]
{
	"code": 20000,
	"data": {
		"hasNext": true,
		"elements": [
			{
				"contentType": "IMAGE",
				"contentId": "122283f2cff2",
				"contentName": "바다위의 정원",
				"contentUrl": "https://preview.files.api.ogq.me/thumbail/test/with/some_image.png?format=c240_240",
				"orderNo": "user123"
			}
		]
	}
}