SIM Cards

Validate SIM cards registration codes

Changed on

It validates whether SIM card registration codes are valid or not.

post/sim_cards/actions/validate_registration_codes

Request

  • Base URL: https://api.telnyx.com/v2
  • URL: https://api.telnyx.com/v2/sim_cards/actions/validate_registration_codes
  • Auth: HTTP bearer

Request body

registration_codesstring[]

Example request

{
  "registration_codes": [
    "123456780",
    "1231231230"
  ]
}

Response

Successful

Example response

{
  "data": [
    {
      "record_type": "sim_card_registration_code_validation",
      "invalid_detail": "This code has already been used."
    }
  ]
}

Changes

    • breaking

      the // response's property type changed from integer to string, and format from int32 to no format for status

    • info

      added the optional property // to the response with the status

    • breaking

      the // response's property type changed from string to integer, and format from no format to int32 for status