# NEShopBuyResponse

**negdkcc**

***

negdkcc / NEShopBuyResponse

## Type Alias: NEShopBuyResponse

> **NEShopBuyResponse** = `object`

Defined in: [data/NEShopBuyResponse.ts:6](https://github.com/EternalsGame/universal-sdk/blob/7b1076b6b36dd7c5b65f4a2f518d40773314a555/gdk/cocos-creator/assets/negdk/scripts/data/NEShopBuyResponse.ts#L6)

Represents the API response after purchasing a shop item.

### Properties

#### data?

> `optional` **data**: `NEUserBalance`

Defined in: [data/NEShopBuyResponse.ts:10](https://github.com/EternalsGame/universal-sdk/blob/7b1076b6b36dd7c5b65f4a2f518d40773314a555/gdk/cocos-creator/assets/negdk/scripts/data/NEShopBuyResponse.ts#L10)

Optional updated user balance after the purchase.

***

#### errorCode?

> `optional` **errorCode**: `number`

Defined in: [data/NEShopBuyResponse.ts:25](https://github.com/EternalsGame/universal-sdk/blob/7b1076b6b36dd7c5b65f4a2f518d40773314a555/gdk/cocos-creator/assets/negdk/scripts/data/NEShopBuyResponse.ts#L25)

Optional custom error code. A value of 0 or undefined indicates success.

***

#### message

> **message**: `string`

Defined in: [data/NEShopBuyResponse.ts:15](https://github.com/EternalsGame/universal-sdk/blob/7b1076b6b36dd7c5b65f4a2f518d40773314a555/gdk/cocos-creator/assets/negdk/scripts/data/NEShopBuyResponse.ts#L15)

A message describing the response status or any error.

***

#### status

> **status**: `number`

Defined in: [data/NEShopBuyResponse.ts:20](https://github.com/EternalsGame/universal-sdk/blob/7b1076b6b36dd7c5b65f4a2f518d40773314a555/gdk/cocos-creator/assets/negdk/scripts/data/NEShopBuyResponse.ts#L20)

The HTTP status code of the response.
