Previous Topic

Next Topic

Book Contents

Book Index

PlaceOrderAndAuthorize_API

 

Parameters

Description

Passed

Returned

Method functionality:

  • creates new account;
  • staff member for the account;
  • registers payment method;
  • places order for specified service plan;
  • places order for existing account;
  • creates payment for the order;
  • creates payment for the order with registered payment method.

The main purpose of this method is to provide a single-point functionality for PBA online store.

Note:

'CreateAccounAndPlaceOrder_API'; 'CreateAccountAndPlaceOrder_API'; 'PlaceOrderForAccount';

methods used in previous PBA versions can still be used. Their definitions coincide with currently used method.

 

Depends on order structure

12

Syntax

ItemResult BM::PlaceOrderAndAuthorize_API(
  Int VendorAccountID;
  Int ProvisioningItemsCounter;
    Str ProvisioningItem;
      Int ProvisioningDataSlotCounter;
        { 
                     Int ProvisioningItemID_1;
          Int ProvisioningParametersCounter;
             {
                                   Str ProvisioningParameter1;
		    ...
             Str ProvisioningParameterN;
             }
        ...
        Int ProvisioningItemID_N;
          Int ProvisioningParametersCounter;
             {
                          Str ProvisioningParameter1;
		    ...
             Str ProvisioningParameterN;
             }
        }
  Int ContactDataCounter;
      {
      Str ContactDataSlot_1;
      ...
      Str ContactDataSlot_N;
      }
  Int PayToolCounter;
      {
      Str PayToolSlot_1;
      ...
      Str PayToolSlot_N;
      }
  Int AdditionalContactsDataCounter;
      {
      Int AdditionalContactID_1.
          {
          Int NumberOfParametersInContact;
          Str ContactInfoSlot1;
          ...
          Str ContactInfoSlotN;
          }
      ...
      Int AdditionalContactID_N;
          {
          Int NumberOfParametersInContact;
          Str ContactInfoSlot1;
          ...
          Str ContactInfoSlotN.
          } 
      }
)
returns
  Int AccountID - ID of newly created customer's account;
  Int OrderID - ID of newly created sales order (do not mix with order number);
  Str(64) Login - login to Control Panel for the newly created customer;
  Str(40) CreationTimeStr - order creation time;
  Int DocID - ID of payment created to pay the order;
  Double Total - order total, without taxes and discount amounts;
  Double TaxTotal - total of taxes;
  Double DiscTotal - total of discount applied to the order;
  Double MerchTotal - order total, including taxes and discount amount;
  Str(4096) Descr - order description;
  Str(10) OrderNbr - order number;
  Str(1024) RedirectURL - URL to processing center where the order can be paid (empty for all but external redirect payments).

Special Notes:

Special notes are presented in the following subsections. Information is divided by type of method data slots: provisioning items, provisioning parameters, contact data, pay tool data and additional contacts data. Each section contains examples. Examples can be used to construct method calls for different purposes.

The whole method call examples are presented in the following subsections:

Example 1 - creating account with payment method and placing order on domain registration to existing hosting subscription;

Example 2 - creating account and placing order for hosting services and domain registration;

Example 3 - placing order for existing customer account on hosting services and additional resource. Customer has registered credit card.

The example of method response is presented in the Example 3 subsection as it the same for all requests.

In This Section

Provisioning Items

Provisioning Parameters

Contact Data

Pay Tool Data

Additional Contacts Data

Example 1

Example 2

Example 3

See Also

API Methods

AccountAdd_API

AccountBalanceAdjust_API

AccountBalanceUpdate_API

AccountBalanceUpdateTimeUpdate_API

AccountDetailsGet_API

AccountPutOnAdmHold_API

AccountTakeFromAdmHold_API

AccountUpdate_API

AccountWithIDAdd_API

AccountVerifyData_API

AddBulkRegisterDomainSubscrWithID_API

AddCentralNICDomainSubscrWithID_API

AddOpenSRSDomainSubscrWithID_API

AddPEMSubscription_API

AddPEMSubscriptionWithID_API

AddPEMDomainForSubscription_API

AttrTypeListGet_API

BannerRedirectURLGet_API

CountryListGet_API

CreditCard2AccountAdd_API

CreateAccountAndPlaceOrder_API

DomainExpirationDateGet_API

DomainInfoGet_API

DomainNamesAvailability_API

DomainPlanGet_API

DomainPlanListAvailableGet_API

DomainPlanPeriodListGet_API

DomainSubscrAdd_API

DomainSubscrWithIDAdd_API

DomainTransferKeyIsRequired_API

DomainValidate_API

EulaListForOrderGet_API

EnablingResourceByPlanListGet_API

GetAuthCodeByDomainName_API

GetBasketPrices_API

GetDependanceCategories_API

GetFullDomainZoneList_API

GetHostingSubscriptionList_API

GetLoginSettings_API

GetMaxSupportedTransferPlanPeriodDetails_API

GetSharedHostingSubscriptionList_API

GetSubscriptionsListByOrder_API

GetObjAttrList_API

GetOnlineStoresRewriteRules_API

GetOrder_API

LicenseInstallationCompleted_API

NameServersChanged_API

OrderByStatusListGet_API

OrderPaymentsReceived_API

PayToolListForAccountGet_API

PayToolTypeListForAccountGet_API

PlaceAccountCancellationOrder_API

PlaceOrderForAccount_API

PlacePlanPeriodSwitchOrder_API

PlaceResourceUpgradeOrder_API

PlaceSubscriptionCancellationOrder_API

PlanCategoryDetailsGet_API

PlanCategoryListGet_API

PlanDetailsGet_API

PlanListGet_API

PlanListAvailableGet_API

PlanListAvailableUpsaleGet_API

PlanListUpsaleGet_API

PlanListUpsaleGetForSubscription_API

PlanListAvailableUpsales4SalesCategoryGet_API

PlanListAvailable4SalesCategoryGet_API

PlanParamsGetAndValidate_API

PlanParentPlansAvailableListGet_API

PlanPeriodListGet_API

PlanPeriodDetailsGet_API

PlanRateListGet_API

PlanRateListGetForPeriod_API

PlanRateListFullGet_API

PlanResourceListGet_API

ResourceCategoryDetailsGet_API

ResourceCategoryByPlanListGet_API

ResourceDependenceSet_API

ResourceFromTemplateRemove_API

ResourceListByCategoryGet_API

ResourceRemove_API

ResourceSync_API

SalesCategoryListGet_API

SalesCategoryDetailsGet_API

ServiceTemplateRemove_API

SetDefaultPaymentMethod_API

SingleDomainNameAvailability_API

SimpleDomainNamesAvailability_API

StateBookByCountry_API

StoreApplicationToPlanIDMapListGet_API

StoreOperationToPathMapListGet_API

StoreCategoryParentPlansAvailableListGet_API

StoreLayoutsListGet_API

StorePackageListGet_API

SubscriptionAdd_API

SubscriptionDetailsGet_API

SubscriptionListByResourceRateGet_API

SubscriptionResourcesListGet_API

SubscriptionStart_API

SubscriptionStatusUpdate_API

SubscriptionStop_API

SubscriptionWithIDAdd_API

UniqueGroupDetailsGet_API

UpdateObjAttrList_API

UserAdd_API

UserForVendorValidate_API

UserPasswdUpdate_API

UserRemove_API

UserRoleAdd_API

UserStatusChange_API

UserUpdate_API

UserValidate_API

UserWithIDAdd_API

UserWithIDAddWithRole_API

Please send us your feedback on this help page