Click or drag to resize
Infosoft Logo

SubscriptionOrderServiceOrderSubscription Method

Orders a new subscription. Places orders into a temporary table for subsequent treatment by an import process. The input covers all parameters needed to create an ordinary customer with a subscription. What happens with the order depends on the import process. Orders that participate in an online payment flow will not be handled untill the flow has been complete. For orders not part of an online payment flow, an automatic import process will be executed as the final step. If this process is succesfull, the resulting order will have already been imported when the response is sent (and the response is updated accordingly).

Namespace: Infosoft.Webservices.Subscription
Assembly: Infosoft.Webservices (in Infosoft.Webservices.dll) Version: 4.00.0.0
Syntax
public OrderSubscriptionResponse OrderSubscription(
	OrderSubscriptionRequest request
)

Parameters

request  OrderSubscriptionRequest
The request containing the subscription and customer information

Return Value

OrderSubscriptionResponse
A response with the registered order as it appears in the callresult table

Implements

ISubscriptionOrderServiceOrderSubscription(OrderSubscriptionRequest)
Remarks
Using this method will allow the caller to register almost anything into the temporary table (callresult) for subsequent import. The input is not validated against business rules, but only for data constraints (length, type etc).
The automatic import process will in general attempt to create a customer if no customernumber is given. It will attempt to handle new subscriptions, restarting passive subscriptions and extending active subscriptions. Try to specify a proper start date. If the start date is invalid (relative to any existing subscription or the distribution date) the import will try to determine a valid start date. This is not always possible to do automatically, in which case the import fails.
For details of the import processes refer to the ordinary user documentation.
See Also