Skip to content
zodiacfireworks edited this page Mar 7, 2021 · 1 revision

IINs

Actualmente no hay documentación sobre los IINs en la web oficial de Culqi

Listar

iin_list = culqi.iin.list(
    data={
        "limit": 1,
    },
    headers={
        "Accept-Encoding": "identity",
    },
)

display(iin_list)
{
    "status": 200,
    "data": {
        "paging": {
            "previous": "https://api.culqi.com/v2/iins?limit=1&before=533958",
            "next": "https://api.culqi.com/v2/iins?limit=1&after=533958",
            "cursors": {
                "before": "533958",
                "after": "533958"
            },
            "remaining_items": null
        },
        "items": [
            {
                "object": "iin",
                "bin": "533958",
                "card_brand": "MasterCard",
                "card_type": "credito",
                "card_category": null,
                "issuer": {
                    "name": "FINANCIERA OH, S.A.",
                    "country": "PERU",
                    "country_code": "PE",
                    "website": null,
                    "phone_number": null
                },
                "installments_allowed": []
            }
        ]
    }
}

Leer

iin_id = "sample_event_id"
iin = culqi.iin.read(id_=iin_id)

display(iin)
{
    "status": 401,
    "data": {
        "object": "error",
        "type": "authentication_error",
        "merchant_message": "Has utilizado la llave equivocada para realizar la operación. Dirígete al Panel de Integracion para usar las llaves correctas."
    }
}
Clone this wiki locally