Tarjetas

Crear una Transaction con medio de pago Card

Este endpoint puede ser llamado de tres formas. La primera, mandando el body sin encriptación de ningún parámetro. La segunda, mandando el body con 'card_information' encriptado. La tercera, mandando todo el body encriptado. Para los últimos dos casos, mandar el parámetro 'encryption_key' es necesario.

post/cards/onetime/entry-point

Request

  • Base URL
    https://secure.api.trytoku.com
  • URL
    https://secure.api.trytoku.com/cards/onetime/entry-point
  • Auth
    API key in header x-api-key

Headers

x-org-idstring required

El id público de tu organización. Toku lo exige en toda llamada a la PCI Compliant API.

Request body

OR

Response

Operación exitosa.

item_typestring
operation_idstring
statusstring
toku_response_codestring

Example response

{
  "item_type": "PAYMENT",
  "operation_id": "trs_DcZiucIBENAQJ33XRNqomGQZcZ0HZGB6",
  "status": "SUCCESS",
  "toku_response_code": "SUEVO0000",
  "transaction_details": {
    "customer": {
      "email": "example@trytoku.com",
      "external_id": "MOZN960827HGRSGC02",
      "government_id": "MOZN960827HGRSGC02",
      "id": "cus_LDrzHO79tg5hvJSGgax6TkWfxYPL5AEh",
      "name": "Example",
      "phone_number": "+521234567890"
    },
    "payment_instrument": {
      "card": {
        "bin": "512345",
        "card_brand": "MASTERCARD",
        "card_holder": "Example Man",
        "card_type": "credit",
        "country": "Ecuador",
        "installments_number": 1,
        "issuer": "ec_banco_pichincha_c_a",
        "last_digits": "0008"
      },
      "type": "card"
    },
    "payment_intents": [
      {
        "amount": 210,
        "currency": "MXN",
        "gateway": "po_evo_payments",
        "id": "pi_lKJ2kHgh9BtSJMmonHD900GIqNw5Qxba",
        "id_account": "acc_jwONBafuYIcaaQuHrRPeHJI8Gve-r-M4",
        "id_invoice": "in_jnxXeRgPQBxm9AtuxMX9gG8vg2FBXkJi",
        "id_subscription": "sub_XUdItB7ghG3XMQVUo81qy-PLeVYuIAQ4",
        "invoice_external_id": "example-product-2025-02-04",
        "price_change_amount": 10,
        "product_id": "example-product",
        "status": "AUTHORIZED",
        "type": "one_time"
      }
    ],
    "transaction": {
      "amount": 210,
      "currency": "MXN",
      "id": "trs_jwZpTbVb0RwcnaB2xTf19nBYH-s1z_NT",
      "response_code": "SUEVO0000",
      "status": "SUCCESS",
      "transaction_date": "2025-01-14T15:20:36.071334",
      "type": "PAYMENT"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.