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