Fee Extension dan kelas domain
Respons domain:check dapat menyertakan informasi fee seperti mata uang IDR dan kelas Premium ketika fitur fee diaktifkan. Elemen fee:class menunjukkan klasifikasi, bukan nominal harga.
domain:check responses can include fee information such as IDR currency and Premium classification when fee support is enabled. The fee:class element describes a classification, not a numeric price.
Cara kerja
Respons domain:check dapat menyertakan informasi fee seperti mata uang IDR dan kelas Premium ketika fitur fee diaktifkan. Elemen fee:class menunjukkan klasifikasi, bukan nominal harga.
- Pisahkan domain:name avail dari fee:cd avail.
- Jangan menganggap klasifikasi Premium sebagai harga transaksi.
- Periksa versi dan struktur Fee Extension yang dinegosiasikan.
Interpretasi contoh Fee
Kelas Premium merupakan label klasifikasi, bukan nominal harga. Elemen jumlah biaya hanya boleh digunakan sesuai struktur Fee Extension yang didukung Registry.
How it works
domain:check responses can include fee information such as IDR currency and Premium classification when fee support is enabled. The fee:class element describes a classification, not a numeric price.
- Treat domain:name avail separately from fee:cd avail.
- Do not treat a Premium classification as a transaction price.
- Check the negotiated Fee Extension version and structure.
Interpreting Fee data
Premium is a classification label, not a price amount. Fee amounts must follow the Fee Extension structure supported by the Registry.
Permintaan dan respons XML
Contoh XML bersifat ilustratif, menggunakan identitas dan domain contoh. Jangan kirim nilainya ke server produksi.
XML permintaan
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xmlns:host="urn:ietf:params:xml:ns:host-1.0" xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1" xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0">
<command>
<check><domain:check><domain:name>example.id</domain:name></domain:check></check>
<clTRID>REG-EXAMPLE-0001</clTRID>
</command>
</epp>XML respons
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xmlns:host="urn:ietf:params:xml:ns:host-1.0" xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1" xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0">
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<resData>
<domain:chkData><domain:cd><domain:name avail="1">example.id</domain:name></domain:cd></domain:chkData>
</resData>
<extension>
<fee:chkData xmlns:fee="urn:ietf:params:xml:ns:epp:fee-1.0"><fee:currency>IDR</fee:currency><fee:cd avail="1"><fee:objID>example.id</fee:objID><fee:class>Premium</fee:class></fee:cd></fee:chkData>
</extension>
<trID><clTRID>REG-EXAMPLE-0001</clTRID><svTRID>SERVER-EXAMPLE-0001</svTRID></trID>
</response>
</epp>