ordersGetFulfillmentStatusWithHttpInfo method

Future<Response> ordersGetFulfillmentStatusWithHttpInfo(
  1. String orderId, {
  2. Future<void>? abortTrigger,
})

Get fulfillment status

Gets the current fulfillment state of every item in an order. Returns the order id, its items (the same item shape as the order, with each item's fulfillment status, typed result and failure) and fulfillmentVersion. The version increases with every meaningful fulfillment change, including a later revision of an already delivered result, and matches fulfillmentVersion in the order.fulfillment.updated webhook: keep the highest version you have seen and use this endpoint to recover after a missed delivery. Refunds and amendments do not change the version. An order of another partner, or an unknown id, returns 404 with code 10004.

Note: This method returns the HTTP Response.

Parameters:

  • String orderId (required): Order id.

Implementation

Future<Response> ordersGetFulfillmentStatusWithHttpInfo(String orderId, { Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/orders/{orderId}/fulfillment/status'
    .replaceAll('{orderId}', orderId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    abortTrigger: abortTrigger,
  );
}