esimsGetEsimWithHttpInfo method

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

Get an eSIM

Returns one of your eSIMs by its ICCID, with its installation details, plan and top-ups. Returns the eSIM as last recorded, without a live refresh: the SIM details (LPA code, QR code URL and quick-install links), the plan, its data, SMS and voice allowances, and any top-ups. An ICCID that is not one of your eSIMs gives 404 / 10004.

Note: This method returns the HTTP Response.

Parameters:

  • String iccid (required): The eSIM's ICCID, from the order item's fulfillment.result.details.iccid.

Implementation

Future<Response> esimsGetEsimWithHttpInfo(String iccid, { Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/esims/{iccid}/profile'
    .replaceAll('{iccid}', iccid);

  // 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,
  );
}