게임유저가 쿠폰을 사용하여 아이템이나 게임머니를 구매할 경우, 이에 관한 특별 알림 메시지를 보냅니다.
object 쿠폰 데이터 관련 값입니다. | |||||
id_operation | integer 엑솔라 시스템 내 작업 ID입니다. | ||||
items | Array of objects 구매 항목 내의 가상 아이템입니다. | ||||
items_operation_type | string 인게임 구매의 작업 유형입니다. | ||||
notification_type | string 알림 유형. | ||||
operation_type | string 작업 유형입니다. | ||||
object 사용자 정의 프로젝트 설정(개체)입니다. | |||||
| |||||
object 사용자 세부 사항(개체)입니다. | |||||
object 시스템 내 게임유저 잔액 데이터와 관련된 값입니다. | |||||
성공적인 처리 표시를 반환합니다.
제공된 정보에 오류가 있는 경우 반환합니다(예: 필수 매개변수 누락, 인증 실패 등).
서버에 일시적인 오류가 있음을 표시하려면 돌아가세요.
curl -v 'https://your.hostname/your/uri' \ -X POST \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'authorization: Signature 13342703ccaca5064ad33ba451d800c5e823db8f' \ -d '{ "settings": { "project_id": 18404, "merchant_id": 2340 }, "virtual_currency_balance": { "old_value": "0", "new_value": "0", "diff": "0" }, "user": { "name": "Xsolla User", "id": "1234567", "email": "email@example.com" }, "operation_type": "coupon", "notification_type": "user_balance_operation", "items_operation_type": "add", "items": [{ "sku": "com.xsolla.item_1468", "amount": "2" }], "id_operation": "66989", "coupon": { "coupon_code": "test123", "campaign_code": "Xsolla Campaign" } }'
{- "error": {
- "code": "INCORRECT_AMOUNT",
- "message": "Incorrect amount"
}
}