Process Refund
Deletes eligible domains and security products during the Add Grace Period (AGP) and automatically issues refunds for the associated order items.
Eligibility Requirements
- Product Types: Only
registrationandwhois_privacyproduct types are eligible for refunds. - AGP Timing: Items must be within the Add Grace Period (typically 5 days from registration, varies by TLD).
- Order Ownership: All
orderItemIdsmust belong to the specifiedorderId.
Refund Processing
Refunds are processed in the following order:
- Domain deletion is attempted for each eligible order item
- Upon successful deletion, the refund is issued
- Refunds are sent to the original payment method on file
- If the original payment method is unavailable, the refund is credited to the account balance
Idempotency
This endpoint supports idempotent requests via the X-Idempotency-Key header. If you retry a request with the same idempotency key, you will receive the same response as the original request. This is useful for safely retrying requests without risk of processing duplicate refunds.
Documentation Index
Fetch the complete documentation index at: https://docs.name.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Authenticate via HTTP Basic with your account username and API token. Examples use an explicit 'Authorization: Basic <base64(username:token)>' header; 'curl -u username:token' is equivalent. For sandbox, append "-test" to your username and use your sandbox token on api.dev.name.com.
Headers
A unique string (e.g., a UUID v4) to make the request idempotent. This key ensures that if the request is retried, the operation will not be performed multiple times. Subsequent requests with the same key will return the original result. Idempotency keys are valid for 12 hours.
"083910ef-04e4-4bd1-a0bf-3737fe005ca8"
Body
RefundRequest contains the order ID and array of order item IDs to be refunded.
RefundRequest contains the order and order items to be refunded. Only domain registrations and security products purchased within the Add Grace Period (AGP) are eligible for refunds.
The unique identifier of the order containing the item(s) to be refunded. Use the List Orders endpoint to retrieve order IDs.
123456
An array of order item IDs to be refunded. All items must belong to the specified order. Use the List Orders endpoint to retrieve order item IDs.
1[987654, 987655]Response
Refund processed successfully. The response includes the detailed results for each refunded item.
RefundResponse contains the results of a refund operation, including the individual order item results. Refunds are issued to the original payment method on file. If the original payment method is unavailable, the refund will be credited to the account balance.