---
title: "HistoryOfStoreCredits"
description: "单个客户的购物金增减流水明细。"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/member-system/objects/history-of-store-credits'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/member-system/objects/history-of-store-credits.md'
---
# HistoryOfStoreCredits

单个客户的购物金增减流水明细。

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`HistoryOfStoreCredits`

## Fields

* `balanceAfterUpdate`

  [UnsignedInt64](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/unsigned-int-64.md)

  变更后购物金余额。
  精确到小数点后两位，比如$10.00会返回1000。

* `balanceBeforeUpdate`

  [UnsignedInt64](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/unsigned-int-64.md)

  变更前购物金余额。
  精确到小数点后两位，比如$10.00会返回1000。

* `remarksCustomers`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  备注。客户可在会员看板和会员的购物金历史记录查看备注。最多128个字符。

* `updateScene`

  [StoreCreditUpdateScene](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/member-system/enums/store-credit-update-scene.md)

  购物金变更场景类型

* `updateValue`

  [UnsignedInt64](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/unsigned-int-64.md)

  本次更新的购物金金额的绝对值。
  如果balance_before_update - balance_after_update > 0，那么购物金减少。
  如果balance_before_update - balance_after_update < 0，那么购物金增加。

* `updatedAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/date.md)

  更新这条流水记录的时间

## Schema Definition

```graphql
type HistoryOfStoreCredits { 
	balanceAfterUpdate: UnsignedInt64
	balanceBeforeUpdate: UnsignedInt64
	remarksCustomers: String
	updateScene: StoreCreditUpdateScene
	updateValue: UnsignedInt64
	updatedAt: Date 
}
```

## Field from

* [StoreCreditHistoryEdge](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/member-system/objects/store-credit-history-edge.md).node

  节点信息

* [StoreCreditHistoryConnection](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/member-system/objects/store-credit-history-connection.md).nodes

  节点列表

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

