---
title: การให้ของขวัญ
slug: world-sdk-guide-th/s9FaQISv0En2oza7TkaOu
docTags: 
createdAt: 2024-09-03T12:42:22.081Z
---

คุณสามารถหัก ZEPETO ZEM หรือ ZEPETO Coins ของคุณเพื่อมอบเป็นของขวัญ ZEPETO ให้กับผู้ใช้ ZEPETO คนอื่นได้

อย่างไรก็ตาม ฟีเจอร์นี้จะสามารถใช้งานได้เมื่อผู้ส่งได้สร้างบัญชี ZEPETO อย่างน้อย 30 วันก่อนที่จะส่งของขวัญ

:::ApiMethodV2
```json
{
  "name": "การให้ของขวัญแก่ผู้เล่น",
  "method": "POST",
  "url": "https://openapi.zepeto.zone/operation/v1/gift/send",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "oCyJWlO6S5X9_NcroNs8R",
        "language": "shell",
        "code": "curl --request POST \\\n     --url https://openapi.zepeto.zone/operation/v1/gift/send \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json'",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "oCyJWlO6S5X9_NcroNs8R"
  },
  "results": {
    "languages": [
      {
        "id": "UGC4ZIkJ7akjNH_3kMLDu",
        "language": "200",
        "customLabel": "",
        "code": "{\n  \"coin\": 0,\n  \"zem\": 0,\n  \"totalBuyCoin\": 0,\n  \"totalBuyZem\": 0\n}"
      },
      {
        "id": "vjhmTOKhwJ4g7neNszYqF",
        "language": "500",
        "customLabel": "",
        "code": "{\n      \"message\": \"ข้อความผิดพลาด\"\n}"
      }
    ],
    "selectedLanguageId": "vjhmTOKhwJ4g7neNszYqF"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "itemId",
        "kind": "optional",
        "type": "string",
        "description": "รหัสสินค้า"
      },
      {
        "name": "message",
        "kind": "optional",
        "type": "string",
        "description": "ข้อความ\n- สูงสุด 80 ตัวอักษร",
        "children": []
      },
      {
        "name": "receiver",
        "kind": "optional",
        "type": "string",
        "description": "ผู้รับ\n- userId หรือ zepetoId",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "พารามิเตอร์ในเนื้อหา",
    "value": "bodyDataParameters"
  },
  "response": [
    {
      "name": "coin",
      "kind": "optional",
      "type": "Number",
      "description": "ยอดเหรียญ",
      "children": []
    },
    {
      "name": "zem",
      "kind": "optional",
      "type": "Number",
      "description": "ยอด Zem",
      "children": []
    },
    {
      "name": "totalBuyCoin",
      "kind": "optional",
      "type": "Number",
      "description": "เหรียญที่ใช้ไป",
      "children": []
    },
    {
      "name": "totalBuyZem",
      "kind": "optional",
      "type": "Number",
      "description": "Zem ที่ใช้ไป",
      "children": []
    }
  ],
  "autoGeneratedAnchorSlug": "pEY8cjj8iBkmq8ZtatSmQ",
  "legacyHash": "pEY8cjj8iBkmq8ZtatSmQ"
}
```
:::

