---
title: "HistoryOfStoreCredits"
description: "The history details of a single customer's store credits."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/member-system/objects/history-of-store-credits'
  md: 'https://developer.shopline.com/docs/storefront-api/member-system/objects/history-of-store-credits.md'
---
# HistoryOfStoreCredits

The history details of a single customer's store credits.

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

## Type Signature

`HistoryOfStoreCredits`

## Fields

* `balanceAfterUpdate`

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

  The balance of store credits after the change.
  Accurate to two decimal places, for example, $10.00 will return 1000.

* `balanceBeforeUpdate`

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

  The balance of store credits before the change.
  Accurate to two decimal places, for example, $10.00 will return 1000.

* `remarksCustomers`

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

  Leave a message for the customer. Customers can view the message in the store credits history of the member panels and member user center. Maximum 128 characters.

* `updateScene`

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

  Store credit change scenario type

* `updateValue`

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

  The absolute value of the store credit amount for this update.
  If balance_before_update - balance_after_update > 0, the store credits will decrease.
  If balance_before_update - balance_after_update < 0, the store credits will increase.

* `updatedAt`

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

  The time this record was updated

## Schema Definition

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

## Field from

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

  node list

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

  node information

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

