| Applies in | Available | Implementation |
|---|---|---|
| Colombia 🇨🇴 México 🇲🇽 Chile 🇨🇱 Perú 🇵🇪 | ☑Acquirer ☐ Aggregator | API |
NOTE: It is required to validate if this service is available for your merchant and activate it on demand before being able to use it.
{
"card": {
"name": "John Doe",
"number": "5451951574925480",
"expiryMonth": "05",
"expiryYear": "30"
},
"totalAmount": 50,
"currency": "PEN"
}externalSubscriptionID field with the ID of the subscription from your external engine, with a length equal to or less than 20 alphanumeric characters. This way, Kushki will identify that it corresponds to a subscription managed by an external engine. You can do this when executing one-time charge{
"token": "{{token}}",
"amount": {
"subtotalIva": 0,
"subtotalIva0": 50,
"ice": 0,
"iva": 0,
"currency": "PEN",
"extraTaxes": {
"iac": 0,
"tasaAeroportuaria": 0,
"agenciaDeViaje": 0
}
},
"metadata": {
"contractID": "157AB"
},
"contactDetails": {
"documentType": "PAS",
"documentNumber": "1234567890",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+513912345678"
},
"orderDetails": {
"siteDomain": "example.com",
"shippingDetails": {
"name": "John Doe",
"phone": "+513912345678",
"address": "Av. Simón Bolivar 1515",
"city": "Lima",
"region": "Pueblo Libre",
"country": "Perú",
"zipcode": "15084"
},
"billingDetails": {
"name": "John Doe",
"phone": "+593912345678",
"address": "Av. Simón Bolivar 1515",
"city": "Lima",
"region": "Pueblo Libre",
"country": "Perú",
"zipCode": "15084"
}
},
"productDetails": {
"product": [
{
"id": "198952AB",
"title": "eBook Digital Services",
"price": 30,
"sku": "10101042",
"quantity": 1
},
{
"id": "198953AB",
"title": "eBook Virtual Selling",
"price": 20,
"sku": "004834GQ",
"quantity": 1
}
]
},
"fullResponse": "v2",
"externalSubscriptionID": "SUB1228930920"
}externalSubscriptionIDparameter.| Applies in | Available | Implementation |
|---|---|---|
| Colombia 🇨🇴 México 🇲🇽 Chile 🇨🇱 Perú 🇵🇪 | ☑Acquirer ☐ Aggregator | API |
initialRecurrence), it is necessary to send all the transactional data of the card, including the cvv and the transactionMode field with the value of initialRecurrence to generate a token which can be used later to make a charge. "card": {
"name": "John Doe",
"number": "5451951574925480",
"expiryMonth": "05",
"expiryYear": "30",
"cvv": "123"
},
"totalAmount": 50,
"currency": "PEN",
"transactionMode": "initialRecurrence"
}transactionReferencein the case of an approved transaction, as it will be required for subsequent charges without cvv.{
"token": "{{token}}",
"amount": {
"subtotalIva": 0,
"subtotalIva0": 50,
"ice": 0,
"iva": 0,
"currency": "PEN",
"extraTaxes": {
"iac": 0,
"tasaAeroportuaria": 0,
"agenciaDeViaje": 0
}
},
"metadata": {
"contractID": "157AB"
},
"contactDetails": {
"documentType": "PAS",
"documentNumber": "1234567890",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+513912345678"
},
"orderDetails": {
"siteDomain": "example.com",
"shippingDetails": {
"name": "John Doe",
"phone": "+513912345678",
"address": "Av. Simón Bolivar 1515",
"city": "Lima",
"region": "Pueblo Libre",
"country": "Perú",
"zipcode": "15084"
},
"billingDetails": {
"name": "John Doe",
"phone": "+593912345678",
"address": "Av. Simón Bolivar 1515",
"city": "Lima",
"region": "Pueblo Libre",
"country": "Perú",
"zipCode": "15084"
}
},
"productDetails": {
"product": [
{
"id": "198952AB",
"title": "eBook Digital Services",
"price": 30,
"sku": "10101042",
"quantity": 1
},
{
"id": "198953AB",
"title": "eBook Virtual Selling",
"price": 20,
"sku": "004834GQ",
"quantity": 1
}
]
},
"fullResponse": "v2"
}transactionReference for an approved transaction, as it will be required to perform subsequent charges without a CVV. Additionally, you will know that the card network (Visa/Mastercard) recognized the transaction as COF because you will receive the network object in the response.{
"details": {
"amount": {
"subtotalIva": 0,
"subtotalIva0": 2000,
"iva": 0,
"ice": 0,
"currency": "CLP"
},
"approvalCode": "123456",
"approvedTransactionAmount": 25000,
"binInfo": {
"bank": "BANCO DEL PACIFICO, S.A.",
"binCard": "511054",
"cardCountry": "Ecuador",
"lastFourDigits": "6094",
"type": "credit"
},
"cardHolderName": "USER",
"created": 1768585326000,
"merchantId": "20000000107129060000",
"merchantName": "DESCENTRALIZADA TEST",
"messageFields": {
"f15": "1234",
"f38": "123456",
"f39": "00",
"f63": "123123456"
},
"paymentBrand": "Mastercard",
"processorBankName": "Kushki Operadora S.A.",
"recap": "601617108519",
"requestAmount": 25000,
"responseCode": "000",
"responseText": "Approved or completed successfully.",
"transactionId": "821768585326341640960",
"transactionReference": "89d1f9b2-360e-48b2-9355-87e19afb18be",
"transactionStatus": "APPROVAL",
"transactionType": "SALE",
"network": {
"scheme": "mastercard",
"transactionIdentifier": "1231234561234"
}
},
"ticketNumber": "821768589326410330",
"transactionReference": "89d1f9b2-360e-48b2-9355-87e19afb18be"
}transactionMode field with the value of subsequentRecurrence to generate a token which can be used later to make a charge.{
"card": {
"name": "John Doe",
"number": "5451951574925480",
"expiryMonth": "05",
"expiryYear": "30"
},
"totalAmount": 50,
"currency": "PEN",
"transactionMode": "subsequentRecurrence"
}initialRecurrenceReference with the value of the transactionReference obtained in the response of step 3 when performing the charge.{
"token": "{{token}}",
"amount": {
"subtotalIva": 0,
"subtotalIva0": 50,
"ice": 0,
"iva": 0,
"currency": "PEN",
"extraTaxes": {
"iac": 0,
"tasaAeroportuaria": 0,
"agenciaDeViaje": 0
}
},
"metadata": {
"contractID": "157AB"
},
"contactDetails": {
"documentType": "PAS",
"documentNumber": "1234567890",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+513912345678"
},
"orderDetails": {
"siteDomain": "example.com",
"shippingDetails": {
"name": "John Doe",
"phone": "+513912345678",
"address": "Av. Simón Bolivar 1515",
"city": "Lima",
"region": "Pueblo Libre",
"country": "Perú",
"zipcode": "15084"
},
"billingDetails": {
"name": "John Doe",
"phone": "+593912345678",
"address": "Av. Simón Bolivar 1515",
"city": "Lima",
"region": "Pueblo Libre",
"country": "Perú",
"zipCode": "15084"
}
},
"productDetails": {
"product": [
{
"id": "198952AB",
"title": "eBook Digital Services",
"price": 30,
"sku": "10101042",
"quantity": 1
},
{
"id": "198953AB",
"title": "eBook Virtual Selling",
"price": 20,
"sku": "004834GQ",
"quantity": 1
}
]
},
"fullResponse": "v2",
"initialRecurrenceReference": "6c21b4b4-d78d-4e50-8f89-b9f81b0ff509"
}/card/v1/tokensinitialRecurrence{
"card": {
"name": "John Doe",
"number": "5451951574925480",
"expiryMonth": "05",
"expiryYear": "30",
"cvv": "123"
},
"totalAmount": 50,
"currency": "PEN",
"transactionMode": "initialRecurrence"
}/card/v1/preAuthorization.transactionReference field. You must store this value in your database associated with the user/subscription. This will be the mandatory identifier for performing future charges. Additionally, you will know that the card network (Visa/Mastercard) recognized the transaction as COF because you will receive the network object in the response.{
"value": {
"details": {
"amount": {
"subtotalIva": 0,
"subtotalIva0": 2000,
"iva": 0,
"ice": 0,
"currency": "CLP"
},
"approvalCode": "123456",
"approvedTransactionAmount": 25000,
"binInfo": {
"bank": "BANCO DEL PACIFICO, S.A.",
"binCard": "511054",
"cardCountry": "Ecuador",
"lastFourDigits": "6094",
"type": "credit"
},
"cardHolderName": "USER",
"created": 1768585326000,
"merchantId": "20000000107129060000",
"merchantName": "DESCENTRALIZADA TEST",
"messageFields": {
"f15": "1234",
"f38": "123456",
"f39": "00",
"f63": "123123456"
},
"paymentBrand": "Mastercard",
"processorBankName": "Kushki Operadora S.A.",
"recap": "601617108519",
"requestAmount": 25000,
"responseCode": "000",
"responseText": "Approved or completed successfully.",
"transactionId": "821768585326341640960",
"transactionReference": "89d1f9b2-360e-48b2-9355-87e19afb18be",
"transactionStatus": "APPROVAL",
"transactionType": "SALE",
"network": {
"scheme": "mastercard",
"transactionIdentifier": "1231234561234"
}
},
"ticketNumber": "821768589326410330",
"transactionReference": "89d1f9b2-360e-48b2-9355-87e19afb18be"
}
}subsequentRecurrence{
"card": {
"name": "John Doe",
"number": "4444441181077714",
"expiryMonth": "08",
"expiryYear": "28"
},
"totalAmount": 10,
"currency": "USD",
"transactionMode": "subsequentRecurrence"
}transactionReference you saved in Step 2 within the initialRecurrenceReference field.// Subsequent Pre-authorization Request{
"token": "nuev_token_generado_subsecuente",
"amount": {
"subtotalIva": 0,
"subtotalIva0": 39,
"currency": "PEN"
},
"fullResponse": "v2",
"initialRecurrenceReference": "saved_transactionReference"
}/card/v2/preAuthorizationinitialRecurrence{
"card": {
"name": "John Doe",
"number": "4259078012341233",
"expiryMonth": "12",
"expiryYear": "30",
"cvv": "123"
},
"amount": {
"subtotalIva": 0,
"subtotalIva0": 4000,
"ice": 0,
"iva": 0,
"currency": "MXN"
},
"metadata": {
"Referencia": "99999"
},
"contactDetails": {
"documentType": "CC",
"documentNumber": "1234567890",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+593912345678"
},
"transactionMode": "initialRecurrence",
"fullResponse": "v2"
}network object. Remember to save the transactionReference from this response.{
"details": {
"amount": {
"subtotalIva": 0,
"subtotalIva0": 4000,
"ice": 0,
"iva": 0,
"currency": "MXN",
"isDeferred": false
},
"approvalCode": "123456",
"approvedTransactionAmount": 4000,
"binInfo": {
"bank": "WELLSFARGO",
"binCard": "425907",
"cardCountry": "United States of America",
"lastFourDigits": "1233",
"type": "credit"
},
"cardHolderName": "John Doe",
"created": 1712159361000,
"merchantId": "20000000101835540000",
"merchantName": "CENTRALIZADA NUEVA PRUEBA GOB",
"messageFields": {
"f38": "123456",
"f39": "00"
},
"paymentBrand": "Visa",
"processorBankName": "Kushki",
"recap": "409415159483",
"requestAmount": 4000,
"responseCode": "000",
"responseText": "Approval and completed successfully Accepted and processed.",
"transactionId": "821712159361453407367",
"transactionReference": "ba48f90b-43ef-4cff-b842-7bc34c41f78e",
"transactionStatus": "APPROVAL",
"transactionType": "PREAUTHORIZATION",
"network": {
"scheme": "mastercard",
"transactionIdentifier": "1231234561234"
}
},
"ticketNumber": "821712159361453410",
"transactionReference": "ba48f90b-43ef-4cff-b842-7bc34c41f78e"
}initialRecurrenceReference field.subsequentRecurrencetransactionReference{
"card": {
"name": "John Doe",
"number": "4259078012341233",
"expiryMonth": "12",
"expiryYear": "30",
"cvv": "123"
},
"amount": {
"subtotalIva": 0,
"subtotalIva0": 4000,
"ice": 0,
"iva": 0,
"currency": "MXN",
"isDeferred": false
},
"transactionMode": "subsequentRecurrence",
"initialRecurrenceReference": "c76e2057-fe15-4f90-990c-5d35d130f018",
"fullResponse": "v2"
}