Promo Credit Decrement
Decrease user promo credit amount, the amount after decreased should greater than 0
Endpoint Overview
POSThttps://api.unibee.dev/merchant/credit/promo_credit_decrement
Decrease user promo credit amount, the amount after decreased should greater than 0
Authorization
All UniBee Merchant API requests require authentication via API key.Parameters
Parameters for this endpoint are listed below. The schema is also shown in the Try it panel.Request body
Request examples
cURL
Sandbox
Response
Success responses return a JSON envelope withcode, data, message, redirect, and requestId. code 0 indicates success.
Error handling
code in the response body is non-zero, check message for details. Use requestId when contacting support.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Decrease user promo credit amount, the amount after decreased should greater than 0
The Amount to decrease, should greater than 0
currency of recharge
filter id of user
description of increase action
Optional. Client-supplied idempotency key, max 256 chars (UUID recommended). Retrying the same key returns the original credit transaction and does NOT decrease the balance a second time. Reusing the same key with a different amount or currency is rejected. Increment and decrement use separate namespaces and are isolated per merchant and user, so reusing the same key on the increment endpoint, under another merchant, or for another user does not collide. If two requests with the same key are still in-flight, the later one returns an error and should be retried by the caller.
name of increase action

