Method: externaltransactions.createexternaltransaction
คำขอ HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/{parent=applications/*}/externalTransactions
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ทรัพยากรหลักที่จะสร้างธุรกรรมภายนอกนี้ รูปแบบ: applications/{packageName}
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
externalTransactionId |
string
ต้องระบุ รหัสที่จะใช้สำหรับธุรกรรมภายนอก ต้องไม่ซ้ำกับธุรกรรมอื่นๆ ทั้งหมดของแอป ค่านี้ควรมีความยาว 1-63 อักขระ และอักขระที่ใช้ได้คือ /a-zA-Z0-9_-/ อย่าใช้ช่องนี้เพื่อจัดเก็บข้อมูลส่วนบุคคลที่ระบุตัวบุคคลนั้นได้ (PII) เช่น อีเมล การพยายามจัดเก็บ PII ในช่องนี้อาจส่งผลให้คำขอถูกบล็อก
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ ExternalTransaction
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ ExternalTransaction
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-17 UTC
[null,null,["อัปเดตล่าสุด 2024-12-17 UTC"],[[["Creates a new external transaction using an HTTP POST request to a specified URL."],["Requires providing path and query parameters, including `parent` to specify the app package and a unique `externalTransactionId`."],["The request body needs to contain an `ExternalTransaction` object, while a successful response returns a newly created `ExternalTransaction`."],["Authorization is needed using the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],["This describes how to create an external transaction using a POST request to the specified URL. The URL includes a required `parent` path parameter representing the application's package name. It also requires an `externalTransactionId` query parameter that must be unique and follow specific character constraints. The request and response bodies utilize the `ExternalTransaction` format. The process is authorized through the `androidpublisher` OAuth scope. It uses gRPC Transcoding syntax.\n"]]