Kushki Developer Portal
  1. CARD
Kushki Developer Portal
  • Back to home
  • México 🇲🇽
  • Bienvenidos
  • ONLINE PAYMENTS
    • CARD
      • CARD
      • 1. Request a card token
        POST
      • 2. Make a charge or deferred charge
        POST
      • 3. Void a transaction
        DELETE
      • 4. Refund a transaction
        DELETE
      • 5. Request deferred options
        GET
      • 6. Authorize payments
        POST
      • 7. Reauthorize payments
        POST
      • 8. Capture an authorized payment
        POST
      • 9. Bin Info
        GET
      • 10. Bin Info V2
        GET
      • 11. Validate OTP
        POST
      • 12. Verify Account
        POST
      • 12. Verify Account
        POST
      • 6. Authorize payments
        POST
      • 10. Bin Info V2
        GET
      • 8. Capture an authorized payment
        POST
      • 3. Void a transaction
        DELETE
      • 4. Refund a transaction
        DELETE
      • 7. Reauthorize payments
        POST
      • 1. Request a card token
        POST
      • 9. Bin Info
        GET
      • 5. Request deferred options
        GET
      • 2. Make a charge or deferred charge
        POST
      • 11. Validate OTP
        POST
    • CASH IN
      • 1. Request a cash in token
      • 2. Init Transaction
      • 3. Transaction Status
      • 1. Request a cash in token
      • 2. Init Transaction
      • 3. Transaction Status
    • TRANSFER IN
      • 1. Request a Transfer In token
      • 2. Init Transaction
      • 4. Get Status Copy
      • 1. Request a Transfer In token
      • 4. Get Status Copy
      • 2. Init Transaction
    • TRANSFER OUT
      • 1. Get Bank List
      • 2. Request a Transfer Out token
      • 3. Init Transaction
      • 4. Get Status
      • 5. Wallet Balance
      • 5. Wallet Balance
      • 1. Get Bank List
      • 4. Get Status
      • 2. Request a Transfer Out token
      • 3. Init Transaction
    • ONE-CLICK & SCHEDULED PAYMENTS
      • 1. Request a recurring charge token
      • 2. Create a recurring charge
      • 3. Update recurring charge card data
      • 4. Make an One-click payment
      • 5. Cancel a recurring charge
      • 6. Update a recurring charge
      • 7. Add a temporary charge or discount
      • 8. Authorize payments Copy
      • 9. Capture an authorized payment Copy
      • 10. Get recurring charge Info
      • 1. Request a recurring charge token
      • 8. Authorize payments Copy
      • 3. Update recurring charge card data
      • 6. Update a recurring charge
      • 10. Get recurring charge Info
      • 2. Create a recurring charge
      • 5. Cancel a recurring charge
      • 9. Capture an authorized payment Copy
      • 4. Make an One-click payment
      • 7. Add a temporary charge or discount
    • PAYMENT BUTTON
      • 1. Create a payment button
      • 1. Create a payment button
    • SMARTLINKS V2
      • 1. Create a Smartlink
      • 2. Get a Smartlink
      • 3. Delete a Smartlink
      • 4. Update a Smartlink
      • 1. Create a Smartlink
      • 4. Update a Smartlink
      • 2. Get a Smartlink
      • 3. Delete a Smartlink
    • PAYMENT CREDENTIALS
      • 1. Create a credential
      • 2. Search credentials
      • 3. Advanced search
      • 4. Activate or deactivate
      • 5. Delete credential
      • 6. Update credential
      • 7. Regenerate a credential
      • 3. Advanced search
      • 6. Update credential
      • 5. Delete credential
      • 2. Search credentials
      • 4. Activate or deactivate
      • 7. Regenerate a credential
      • 1. Create a credential
    • COMMISSIONS
      • 1. Get Commission Configuration
      • 1. Get Commission Configuration
    • GATEWAY STATUS
      • 1. Get gateway status
      • 1. Get gateway status
    • ANALYTICS
      • 1. Get transactions list
      • 1. Get transactions list
  • CARD PRESENT PAYMENTS (API RAW)
    • Single payment
    • Get BIN Info
    • BIN info V2
    • Request deferred options
    • Transaction Search
  • CARD PRESENT PAYMENTS (BILLPOCKET)
    • Get token
    • States
    • Validate token
    • Municipalities
    • Collect payments
    • Tax companies
    • Capture an authorized payment
    • Commercial activities
    • Refund
    • Create checkout
    • Get status
    • Get checkout details
    • Collect card payments
    • Print Ticket
    • Collect card payments v2
    • Cancel Push Notification
    • Get transaction status
    • Add or update CLABE account
    • Configure payment link
    • Get payment link configuration
    • Create payment link
    • Update payment link
    • List payment links
    • Delete payment link
    • Add CLABE account
    • Get token
    • Get transaction list
    • Get transaction list v2
    • Get transaction list v3
    • Get transaction list v4
    • Create user
  1. CARD

CARD

Follow a step-by-step guide on how an online card payment works.#

Credit cards have global coverage and are one of the most popular ways to pay online. There are different types of cards and several steps in the process. Learn how it works, the parties involved, and the stages of a payment process behind the scenes.

To keep in mind!#

Due to our risk policies, the available payment methods and the integration type may vary once you complete the affiliation. We will tell you how to proceed if this process applies to your merchant.

Steps of the Payment Process#

A payment process usually consists of 4 stages: Data verification, authentication, authorization, and capture
Etapas de pago con tarjeta EN

1. Data Verification#

At this stage, the card details are verified to be correct (for example, that the expiration date is not expired, or that the number obeys the luhn's algorithm). In this step, it can not be yet warranted that the card is valid.

2. Authentication (optional)#

In some instances, depending on the country's regulations, bank requirements, or by choice of the merchant, the customer may be required to authenticate a purchase by entering a password. This may be a one-time authentication (via SMS, email, or a physical device that generates passwords) or another mechanism agreed with the card-issuing entity.

3. Authorization#

At this stage, the bank (or the card issuer) checks whether there are sufficient funds for the account associated with the card. If so, retains that amount in the customer account to guarantee it to the merchant.

4. Capture#

This is when money is moved from the issuing bank (or financial entity) to the merchant's account
Read more on our documentation page.

Using the API#

To use the API you must ask for your Kushki Sandbox, composed of a Public-Merchant-Id and a Private-Merchant-Id.
The current version of the Kushki API rests at: https://api.kushkipagos.com/
The testing version rests at: https://api-uat.kushkipagos.com/

Endpoints#

We dispose various endpoints to start your payment flows, find our products available:
Request a card token
Make a charge or deferred charge
Void a transaction
Refund a transaction
Request deferred options
Authorize payments
Reauthorize payments
Capture an authorized payment
Bin Info
Bin Info V2
Validate OTP
Voucher
Verify Account

Idempotency#

Kushki’s API supports idempotent requests to safely retry operations without the risk of executing the same transaction twice. This feature is especially useful when network issues, timeouts, or client retries might otherwise create duplicate records.

How it works#

To perform an idempotent request, include the header Idempotency-Key with a unique value when calling one of the supported endpoints.
Kushki stores the resulting status code and response body only if the original request succeeds.
If the same key is sent again within the validity window, the same successful response is returned.
If the original request failed with a 4XX or 5XX error, no idempotency record is stored, and the client can safely retry the entire process with the same Idempotency-Key.

Header#

Rules#

Valid for: 24 hours. After this period, if the same Idempotency-Key is sent again, a new transaction will be generated.
Maximum length: 56 characters.
Uniqueness: must be unique per transaction type.
Scope: applies only to supported endpoints (see below).
Generation: clients are responsible for generating keys. We recommend UUIDv4 or another random string generator with sufficient entropy.

Supported endpoints#

The Idempotency-Key header is currently supported in:
Void a transaction (one-time charges, preauthorizations, and subscription charges).
Refund a transaction (one-time charges, preauthorizations, and subscription charges).
Subscription preauthorizations.

Error scenarios#

5XX errors (server-side issues)#

No idempotency record is stored.
The client may retry with the same Idempotency-Key.
Retrying is at the integrator’s discretion.

4XX errors (client-side issues)#

No idempotency record is stored.
The client may retry with the same Idempotency-Key after correcting the input.
Retrying is at the integrator’s discretion.

Best practices#

Always generate a new Idempotency-Key for each unique transaction attempt.
Use a UUID or another strong random string generator to ensure uniqueness.
Return Home
Got a suggestion on this documentation? Contact Us.
Modified at 2026-01-30 02:11:25
Previous
Bienvenidos
Next
1. Request a card token
Built with