How can I find the ID of a SIM based on its ICCID (API)?

Completada

Comentarios

2 comentarios

  • Comentario oficial
    Avatar
    Joseph Johnson

    For the new emnify IoT eSIMs, the format of the ICCID (text and barcode) has been updated to include the Luhn checksum digit.

    To find the SIM ID using the ICCID with the Luhn checksum digit, you can change the parameter being searched like this:

    GET https://cdn.emnify.net/api/v1/sim?q=iccid_with_luhn:898830300000xxxxxx7y

    Alternatively, the ICCID can be shortened (removing the Luhn checksum digit) and you may continue to use the API calls as above. 

    Some background: 

    Every ICCID can be described with / without the Luhn checksum digit;

    ICCID: 898830300000xxxxxx7
    ICCID with Luhn: 898830300000xxxxxx7y

    The ICCIDs without the Luhn checksum digit are sequential whereas the AT command (AT+CCID=?) will typically return the ICCID with the Luhn checksum digit. 

    The emnify REST API now returns both ICCID values: iccid and iccid_with_luhn when a call is made to query the SIM/endpoint. The eID value includes the Luhn checksum digits by default. 

    Further information: 

    https://docs.emnify.com/glossary#luhn-checksum-digit

    https://docs.emnify.com/glossary#iccid

    https://docs.emnify.com/glossary#eid

    Acciones de comentarios Permalink
  • Avatar
    Alastair Longmuir

    Searching with the ICCID, using the 'ICCID with Luhn' parameter also works.

    GET https://cdn.emnify.net/api/v1/sim?q=iccid_with_luhn:898830300000xxxxxx7
    0
    Acciones de comentarios Permalink

Iniciar sesión para dejar un comentario.