Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

AcceptOrder()

Dan Dumont edited this page Jul 13, 2019 · 4 revisions

Contents


Overview

Version 0.1.1+

Input Parameters:

  • int OrderId - The order id to be accepted.
  • int ServerId = -1 - The specific server to assign to products within the order.
  • string ServiceUsername = "" - The specific username to assign to products within the order.
  • string ServicePassword = "" - The specific password to assign to products within the order.
  • string Registrar = "" - The specific registrar to assign to domains within the order.
  • bool SendRegistrar = true - Send the request to the registrar to register the domain.
  • bool AutoSetup = true - Send the request to the product module to activate the service. This can override the product configuration.
  • bool SendEmail = true - Send any automatic emails. This can be Product Welcome, Domain Renewal, Domain Transfer etc.

Process:

  • Makes an api call with the provided information and accepts the pending order or the id provided.

Returns:

  • (Version 0.1.1 - Version 0.1.2) Returns a string result of the operation, success or error.
  • (Version 0.1.3+) Returns true if successful.

Possible Errors:

  • Order ID not found.
  • Status not Pending.

Example

// An example of AcceptOrder()