StoreHippo allows you to update the loyalty wallet and store credit transactions in the Users > Wallet Transactions section.
Along with that, you can also update the wallet transactions through API. To update the wallet transactions through API, follow the steps given below:
Fields
Value | Description |
action Type: string | Brief action about wallet transaction Ex - “Points redeemed” |
amount Type: number | Amount to credit/ debit loyalty points Ex- 66.5 |
description Type: string | Brief description about the transaction Ex- “test description” |
posting_type Type: string | Type of transaction - Credit/ Debit |
Type Type: string | Type of Wallet to be used against transaction - Ex- loyalty |
User Type: string | User to be used for the transaction Ex -"5f8547a19cfc913194f45bc4" |
Crediting loyalty points
{
action: "test points credit"amount: "66.5"
description: "test description"
posting_type: "credit"
type: "loyalty"
user: "5f8547a19cfc913194f45bc4"
}
When the request is successful, the wallet transaction ID is received in response data. You can use this ID to find transaction details in wallet transactions ex -
data: {
_id: "5f85a5b9c3a3c1073086236e"
}
Debiting loyalty points
{
action: "test points debit"amount: "66.5"
description: "test description"
posting_type: "debit"
type: "loyalty"
user: "5f8547a19cfc913194f45bc4"
}
When the request is successful, the wallet transaction ID is received in response data. You can use this ID to find transaction details in wallet transactions Ex -
data: {
_id: "5f85aba2c3a3c107308623f8"
}
Similar to the loyalty wallets, you can update the StoreCredit transactions through API.
Fields
Value | Description |
action Type: string | Brief action about wallet transaction Ex - “Points redeemed” |
amount Type: number | Amount to credit/ debit StoreCredits Ex- 66.5 |
description Type: string | Brief description about the transaction Ex- “test description” |
posting_type Type: string | Type of transaction - Credit/ Debit |
Type Type: string | Type of Wallet to be used against transaction - Ex- StoreCredits |
User Type: string | User to be used for the transaction Ex -"5f8547a19cfc913194f45bc4" |
Crediting StoreCredit points
{
action: "test points credit"amount: "66.5"
description: "test description"
posting_type: "credit"
type: "StoreCredit"
user: "5f8547a19cfc913194f45bc4"
}
When the request is successful, the wallet transaction ID is received in response data. You can use this ID to find transaction details in wallet transactions Ex -
data: {
_id: "5f85aba2c3a3c107366fgt6"
}
Debiting StoreCredit points
{
action: "test points debit"amount: "66.5"
description: "test description"
posting_type: "debit"
type: "StoreCredit"
user: "5f8547a19cfc913194f45bc4"
}
When the request is successful, the wallet transaction ID is received in the response data. You can use this ID to find transaction details in wallet transactions Ex -
data: {
_id: "5f85aba2c3a3c10730865jp5"
}