All Products
Search
Document Center

Short Message Service:QueryMessage

Last Updated:Jun 10, 2026

Mengkueri tanda terima pengiriman suatu Paket.

Deskripsi operasi

QPS limit

This operation supports up to 300 calls per second per account. Exceeding this limit triggers throttling, which may impact your business. Monitor your call rate to stay within limits.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

dysms:QueryMessage

get

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

MessageId

string

Yes

ID Paket.

1008030xxx3003

Elemen respons

Element

Type

Description

Example

object

The response parameters.

Status

string

The delivery status of the message.

  • 1: The message was sent.

  • 2: The message failed to be sent.

  • 3: The message is being sent.

1

ErrorDescription

string

The description of the status code.

success

ResponseCode

string

The status code of the delivery request.

OK

ReceiveDate

string

The time when the delivery receipt was received from the carrier.

Mon, 24 Dec 2018 16:58:22 +0800

NumberDetail

object

The details about the mobile phone number.

Carrier

string

The carrier that owns the mobile phone number.

CMI

Region

string

The region to which the mobile phone number belongs.

HongKong

Country

string

The country to which the mobile phone number belongs.

China

Message

string

The content of the message.

Hello!

ResponseDescription

string

The description of the delivery request status.

The SMS Send Request was accepted

ErrorCode

string

The status code of the message.

DELIVERED

SendDate

string

The time when the message was sent to the carrier.

Mon, 24 Dec 2018 16:58:22 +0800

To

string

The mobile phone number to which the message was sent.

6581xxx810

MessageId

string

The ID of the message.

1008030xxx3003

RequestId

string

The ID of the request.

F655A8D5-B967-440B-8683-DAD6FF8D28D0

Contoh

Respons sukses

JSONformat

{
  "Status": "1",
  "ErrorDescription": "success",
  "ResponseCode": "OK",
  "ReceiveDate": "Mon, 24 Dec 2018 16:58:22 +0800",
  "NumberDetail": {
    "Carrier": "CMI",
    "Region": "HongKong",
    "Country": "China"
  },
  "Message": "Hello!",
  "ResponseDescription": "The SMS Send Request was accepted",
  "ErrorCode": "DELIVERED",
  "SendDate": "Mon, 24 Dec 2018 16:58:22 +0800",
  "To": "6581xxx810",
  "MessageId": "1008030xxx3003",
  "RequestId": "F655A8D5-B967-440B-8683-DAD6FF8D28D0"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.