Class ByProjectKeyRecurringOrdersPostString

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyRecurringOrdersPostString>, Deprecatable201Trait<ByProjectKeyRecurringOrdersPostString>, ErrorableTrait<ByProjectKeyRecurringOrdersPostString>, ExpandableTrait<ByProjectKeyRecurringOrdersPostString>, ClientRequestCommand<RecurringOrder>, CreateHttpRequestCommand, HttpRequestCommand<RecurringOrder>, RequestCommand<RecurringOrder>

Creates a Recurring Order in the Project. Produces the RecurringOrderCreated message.

The Cart is validated to ensure that it is convertible to an Order. If the validation fails, an error is returned. If the expiration date has been reached when the Recurring Order is processed, its RecurringOrderState will be updated to Expired, and no Order will be created.

If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Recurring Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Recurring Order by querying a unique identifier supplied during the creation request, such as the key.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.recurring_order.RecurringOrder>> result = apiRoot
            .withProjectKey("{projectKey}")
            .recurringOrders()
            .post("")
            .execute()