The <fee:command> element is used in the EPP <check> command to determine the fee that is applicable to the given command.
The "name" attribute of the <fee:command> is used to define which transform fees the client is requesting information about. The possible values for the "name" attribute are:
-
"create", indicating a <create> command as defined in [RFC 5730].
-
"delete", indicating a <delete> command as defined in [RFC 5730].
-
"renew", indicating a <renew> command as defined in [RFC 5730].
-
"update", indicating a <update> command as defined in [RFC 5730].
-
"transfer", indicating a <transfer> command as defined in [RFC 5730].
-
If the server supports registry grace period mapping [RFC 3915], then the server MUST also support the "restore" value as defined in [RFC 3915].
-
"custom", indicating a custom command that MUST set the "customName" attribute with a custom command name. The possible set of custom command name values is dictated by the server policy.
The <fee:command> element
MAY have an
OPTIONAL "phase" attribute specifying a launch phase as described in [
RFC 8334]. It may also contain an
OPTIONAL "subphase" attribute identifying the custom or subphase as described in [
RFC 8334].
The <fee:currency> element is used to indicate the currency in which fees are charged. The value of this element
MUST be a three-character currency code from [
ISO4217_2015].
Note that [
ISO4217_2015] provides the special "XXX" code, which
MAY be used if the server uses a non-currency-based system for assessing fees, such as a system of credits.
The use of <fee:currency> elements in client commands is
OPTIONAL: if a <fee:currency> element is not present in a command, the server
MUST determine the currency based on the server default currency or on the client's account settings, which are agreed to by the client and server via an out-of-band channel. However, the <fee:currency> element
MUST be present in the responses.
Servers
SHOULD NOT perform a currency conversion if a client uses an incorrect currency code. Servers
SHOULD return a 2004 "Parameter value range error" instead.
When querying for fee information using the <check> command, the <fee:period> element is used to indicate the validity period, which is to be added to extend the registration period of objects by the <create>, <renew>, and <transfer> commands. Validity periods are measured in years or months, with the appropriate units specified using the "unit" attribute. Valid values for the "unit" attribute are "y" for years and "m" for months. This element is derived from the <domain:period> element described in [
RFC 5731].
The <fee:period> element is
OPTIONAL in <check> commands; if omitted, the server
MUST determine the fee(s) using the server default period. The <fee:period> element
MUST be present in <check> responses.
Servers that implement this extension will include elements in responses that provide information about the fees and/or credits associated with a given billable transaction. A fee will result in subtracting from the Account Balance (described in
Section 3.5), and a credit will result in adding to the Account Balance (described in
Section 3.5).
The <fee:fee> and <fee:credit> elements are used to provide this information. The presence of a <fee:fee> element in a response indicates a debit against the client's account balance; a <fee:credit> element indicates a credit. A <fee:fee> element
MUST have a zero or greater (non-negative) value. A <fee:credit> element
MUST have a negative value.
A server
MAY respond with multiple <fee:fee> and <fee:credit> elements in the same response. In such cases, the net fee or credit applicable to the transaction is the arithmetic sum of the values of each of the <fee:fee> and/or <fee:credit> elements. This amount applies to the total additional validity period for the object (where applicable).
The following attributes are defined for the <fee:fee> element. These are described in detail below:
-
description:
-
an OPTIONAL attribute that provides a human-readable description of the fee. Servers should provide documentation on the possible values of this attribute and their meanings. An OPTIONAL "lang" attribute MAY be present, per the language structure in [RFC 5646], to identify the language of the returned text and has a default value of "en" (English). If the "description" attribute is not present, the "lang" attribute can be ignored.
-
refundable:
-
an OPTIONAL boolean attribute indicating whether the fee is refundable if the object is deleted.
-
grace-period:
-
an OPTIONAL attribute that provides the time period during which the fee is refundable.
-
applied:
-
an OPTIONAL attribute indicating when the fee will be deducted from the client's account.
The <fee:credit> element can take a "description" attribute as described above. An
OPTIONAL "lang" attribute
MAY be present to identify the language of the returned text and has a default value of "en" (English).
<fee:fee> elements
MAY have an
OPTIONAL "refundable" attribute that takes a boolean value. Fees may be refunded under certain circumstances, such as when a domain application is rejected (as described in [
RFC 8334]) or when an object is deleted during the relevant grace period (see
Section 3.4.2).
If the "refundable" attribute is omitted, then clients
SHOULD NOT make any assumptions about the refundability of the fee.
[
RFC 3915] describes a system of "grace periods", which are time periods following a billable transaction during which, if an object is deleted, the client receives a refund.
The "grace-period" attribute
MAY be used to indicate the relevant grace period for a fee. If a server implements the registry grace period extension [
RFC 3915], it
MUST specify the grace period for all relevant transactions.
If the "grace-period" attribute is omitted, then clients
SHOULD NOT make any assumptions about the grace period of the fee.
If a <fee:fee> element has a "grace-period" attribute, then it
MUST also be refundable, and the "refundable" attribute
MUST be true. If the "refundable" attribute of a <fee:fee> element is false, then it
MUST NOT have a "grace-period" attribute.
Fees may be applied immediately upon receipt of a command from a client or may only be applied once an out-of-band process (such as the processing of applications at the end of a launch phase) has taken place.
The "applied" attribute of the <fee:fee> element allows servers to indicate whether a fee will be applied immediately or whether it will be applied at some point in the future. This attribute takes two possible values: "immediate" or "delayed".
The <fee:balance> element is an
OPTIONAL element that
MAY be included in server responses to transform commands. If present, it can be used by the client to determine the remaining credit at the server.
Whether or not the <fee:balance> is included in responses is a matter of server policy. However, if a server chooses to offer support for this element, it
MUST be included in responses to all "transform" or billable commands (e.g., <create>, <renew>, <update>, <delete>, <transfer op="request">).
The value of the <fee:balance>
MAY be negative. A negative balance indicates that the server has extended a line of credit to the client (see
Section 3.6).
If a server includes a <fee:balance> element in response to transform commands, the value of the element
MUST reflect the client's account balance after any fees or credits associated with that command have been applied. If the "applied" attribute of the <fee:fee> element is "delayed", then the <fee:balance>
MUST reflect the client's account balance without any fees or credits associated with that command.
As described above, if a server returns a response containing a <fee:balance> with a negative value, then the server has extended a line of credit to the client. A server
MAY also include in responses a <fee:creditLimit> element that indicates the maximum credit available to a client. A server
MAY reject certain transactions if the absolute value of the <fee:balance> is equal to or exceeds the value of the <fee:creditLimit> element.
Whether or not the <fee:creditLimit> is included in responses is a matter of server policy. However, if a server chooses to offer support for this element, it
MUST be included in responses to all "transform" commands (e.g., <create>, <renew>, <update>, <delete>, <transfer op="request">).
Objects may be assigned to a particular class, category, or tier, each of which has a particular fee or set of fees associated with it. The <fee:class> element, which
MAY appear in <check> and transform responses, is used to indicate the classification of an object.
If a server makes use of this element, it should provide clients with a list of all the values that the element may take via an out-of-band channel. Servers
MUST NOT use values that do not appear on this list.
Servers that make use of this element
MUST use a <fee:class> element with the value "standard" for all objects that are subject to the standard or default fee.
The <fee:command> element has two attributes, "phase" and "subphase", that provide additional information related to a specific launch phase, as described in [
RFC 8334]. These attributes are used as filters that should refine the server processing.
If the client <fee:command> contains a server-supported combination of phase/subphase, the server
MUST return the fee data (including the phase/subphase attribute(s)) for the specific combination.
If the client <fee:command> contains no "phase"/"subphase" attributes and the server has only one active phase/subphase combination, the server
MUST return the data (including the "phase"/"subphase" attribute(s)) of the currently active phase/subphase.
If the client <fee:command> contains no phase/subphase attributes and the server has more than one active phase/subphase combination, the server
MUST respond with a 2003 "Required parameter missing" error.
If the client <fee:command> contains no phase/subphase attributes and the server is currently in a "quiet period" (e.g., not accepting registrations or applications), the server
MUST return data consistent with the default general availability phase (e.g., "open" or "claims"), including the appropriate phase/subphase attribute(s).
If the client <fee:command> contains a phase attribute with no subphase and the server has only one active subphase (or no subphase) of this phase, the server
MUST return the data (including the phase/subphase attribute(s)) of the provided phase and currently active subphase.
If the client <fee:command> contains a phase attribute with no subphase and the server has more than one active subphase combination of this phase, the server
MUST respond with a 2003 "Required parameter missing" error.
If the client <fee:command> contains a subphase with no phase attribute, the server
MUST respond with a 2003 "Required parameter missing" error.
If the client <fee:command> contains a phase attribute not defined in [
RFC 8334] or not supported by the server, the server
MUST respond with a 2004 "Parameter value range error".
If the client <fee:command> contains a subphase attribute (or phase/subphase combination) not supported by the server, the server
MUST respond with a 2004 "Parameter value range error".
The <fee:reason> element is used to provide server-specific text in an effort to better explain why a <check> command did not complete as the client expected. An
OPTIONAL "lang" attribute
MAY be present to identify the language, per the language structure in [
RFC 5646], of the returned text and has a default value of "en" (English).
The <fee:reason> element can be used within the server response <fee:command> element or within the <fee:cd> element. See
Section 5.1.1 for details on the <fee:cd> "check data" element.
If the server cannot calculate the relevant fees because the object, command, currency, period, class, or some combination is invalid per server policy, the server has two ways of handling the error processing of <fee:command> element(s):
-
Fast-fail: The server, upon error identification, MAY stop processing <fee:command> elements and return a <fee:cd> to the client containing the <fee:objID> and a <fee:reason> element detailing the reason for failure.
S: <fee:cd avail="0">
S: <fee:objID>example.xyz</fee:objID>
S: <fee:reason>Only 1 year registration periods are
S: valid.</fee:reason>
S: </fee:cd>
-
Partial-fail: The server, upon error identification, MAY continue processing <fee:command> elements and return a <fee:cd> to the client containing the successfully processed <fee:command> elements and failed <fee:command> elements. All returned failed <fee:command> elements MUST have a <fee:reason> element detailing the reason for failure, and the server MAY additionally include a <fee:reason> element at the <fee:cd> level.
S: <fee:cd avail="0">
S: <fee:objID>example.xyz</fee:objID>
S: <fee:command name="create">
S: <fee:period unit="y">2</fee:period>
S: <fee:reason>Only 1 year registration periods are
S: valid.</fee:reason>
S: </fee:command>
S: </fee:cd>
In either failure scenario, the server
MUST set the <fee:cd> "avail" attribute to false (0), and the server
MUST process all objects in the client request.