Method: availabilityOrders.complete

Marks an existing availability order as complete.

  • Returns the updated availability order if successful.
  • Returns error code NOT_FOUND if the availability order does not exist.
  • Returns error code FAILED_PRECONDITION if state is not STATE_PENDING.
  • Returns error code FAILED_PRECONDITION if any of the lines are in the STATE_PENDING state.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



The name of the availability order to be marked as complete, for example: "availabilityOrders/123"

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of AvailabilityOrder.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the OAuth 2.0 Overview.