---
title: "StoreCreditUpdateScene"
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/enums/store-credit-update-scene'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/member-system/enums/store-credit-update-scene.md'
---
# StoreCreditUpdateScene

购物金变更场景类型

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

## Type Signature

`StoreCreditUpdateScene`

## Values

* `ORDER_HISTORY`

  根据客户历史订单数发放购物金。

* `PURCHASE_PAYMENT`

  客户购物时使用购物金支付。

* `SUCCESSFUL_REGISTRATION`

  客户成功注册获得购物金。

* `FIRST_ALLOCATION`

  商家首次为客户下发购物金

* `MANUALLY_RESET`

  商家手动重置购物金，原卡号无法再使用。

* `RETURN_DECREASE`

  商家订单退款时扣减已发放的购物金。

* `RETURN_INCREASE_ADMIN`

  商家在订单内，通过下发购物金进行订单退款。

* `RETURN_INCREASE_APP`

  商家在会员系统内，通过下发购物金进行订单退款。

* `SPEND_HISTORY`

  根据客户历史消费金额发放购物金。

* `SYSTEM_EXPIRED`

  购物金到期。

* `FIRST_ORDER`

  客户首次下单获得购物金。

* `MANUALLY_INCREASE`

  商家手动发放购物金。

* `ORDER_PLACED`

  客户成功下单获得购物金。

* `MANUALLY_DECREASE`

  商家手动扣减购物金。

## Schema Definition

```graphql
enum StoreCreditUpdateScene { 
	ORDER_HISTORY 
	PURCHASE_PAYMENT 
	SUCCESSFUL_REGISTRATION 
	FIRST_ALLOCATION 
	MANUALLY_RESET 
	RETURN_DECREASE 
	RETURN_INCREASE_ADMIN 
	RETURN_INCREASE_APP 
	SPEND_HISTORY 
	SYSTEM_EXPIRED 
	FIRST_ORDER 
	MANUALLY_INCREASE 
	ORDER_PLACED 
	MANUALLY_DECREASE  
}
```

## Field from

* [HistoryOfStoreCredits](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/member-system/objects/history-of-store-credits.md).updateScene

  购物金变更场景类型

## Error Handling

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

