unholdOrder method

Future<bool> unholdOrder(
  1. String orderId
)

Unhold order

Implementation

Future<bool> unholdOrder(String orderId) async {
  try {
    final response = await _client.authenticatedRequest<Map<String, dynamic>>(
      '/rest/V1/orders/$orderId/unhold',
      options: Options(method: 'POST'),
    );

    return response.statusCode == 200;
  } on DioException catch (e) {
    throw Exception('Failed to unhold order: ${e.message}');
  } catch (e) {
    throw Exception('Failed to unhold order: $e');
  }
}