1. Kushki One
  • API Docs Peru 🇵🇪
  • Online Payments
    • Release Notes
    • Card Payments
      • Request a card token
      • Make a charge or deferred charge
      • Preauthorization (tokenless)
      • Create payment (tokenless)
      • Void a transaction
      • Refund a transaction
      • Verify Account
      • Request deferred options
      • Authorize payments
      • Reauthorize payments
      • Capture an authorized payment
      • Validate OTP
      • Bin Info V2
      • Bin Info
    • One-Click & Scheduled Payments
      • Request a recurring charge token
      • Create a recurring charge
      • Update recurring charge card data
      • Make an One-click payment
      • Cancel a recurring charge
      • Update a recurring charge
      • Add a temporary charge or discount
      • Authorize payments
      • Capture an authorized payment
      • Get recurring charge Info
    • Card Out
      • Get Card Payout Token
      • Get Subscription Token
      • Push funds
      • Push Funds in subscriptions
      • Get transaction status
      • Delete Subscription
    • Transfer In
      • Get Bank List
      • Request a Transfer In token
      • Init Transaction
      • Get Status
    • Transfer Out
      • Get Bank List
      • Get Bank List V2
      • Request a Transfer Out token
      • Init Transaction
      • Get Status
      • Balance for Payouts
    • Cash In
      • Request a cash in token
      • Init Transaction
      • Transaction Status
    • Smartlinks V2
      • Create a Smartlink
      • Update a Smartlink
      • Get a Smartlink
      • Delete a smartlink
    • Analytics
      • Get transactions list v1
      • Get transactions list v2
    • Chargebacks
      • Query Chargebacks
      • Request Chargeback Export
    • Gateway Status
      • Get gateway status
    • Payment Credentials
      • Create a credential
      • Search credentials
      • Advanced search
      • Activate or deactivate
      • Delete credential
      • Update credential
      • Regenerate a credential
    • Payment Button
      • Create a payment button
    • Platform Status
      • Get platform status
    • Subscription Transactions
      • Get subscription transactions
    • Settlement
      • Query settlement
  • Card Present Payments (API Raw)
    • Release notes
    • Key Exchange Process
    • Test data
    • Kushki Error Catalog for POS transactions
    • The Amount Object
    • One-time Payments
      • Balance inquiries
    • Two-step Payments
      • Authorization and capture
    • Voids & Refunds
      • Refund a transaction
      • Void & Reverse
    • Card information
      • Get BIN Info
      • Bin Info V2
      • Request deferred options
      • Balance inquiries
    • Query Transactions
      • Transaction Search
    • Webhooks
      • Introduction
      • Good practices
      • Refunds
      • Card Payments
      • Check your webhooks
    • Chargebacks
      • Query Chargebacks
      • Request Chargeback Export
  • Kushki One
    • Error Catalog
    • Release notes
    • Transaction Examples
    • Webhooks
    • Cloud Services
      • Payment Cloud
        • Sync
          • Charge
          • Authorization (Pre-auth)
          • Capture
          • Re-authorization
          • Post-tip
          • Refund
          • Abort
          • Void
        • Async
          • Charge (Async)
          • Authorization — Pre-auth (Async)
          • Capture (Async)
          • Re-authorization (Async)
          • Post-tip (Async)
          • Void (Async)
        • Search
          • Transaction Search
      • Print Cloud
        • Create Print Job
        • Get Print Job Status
    • Local Services
      • Payment Local
        • Sync
          • Charge
          • Authorization (Pre-auth)
          • Capture
          • Re-authorization
          • Post-tip
          • Void
          • Refund
          • Abort
        • Async
          • Charge (Async)
          • Authorization — Pre-auth (Async)
          • Capture (Async)
          • Re-authorization (Async)
          • Post-tip (Async)
          • Void (Async)
          • Abort (Async)
        • Search
          • Transaction Search — Online
          • Transaction Search — Local
      • Print Local
        • Create Print Job
        • Get Print Job Status
        • Print Job Webhook (inbound — implemented by your POS)
  • Appian - Submerchant Register
    • Submerchant Validation in Batch
    • Query submerchant status by requestId/submerchantId
    • Get submerchantIds
    • Get credentials for submerchants
  • Schemas
    • Shared
      • ErrorResponse
      • BadRequestResponse
      • InvalidBinResponse
      • payment_method
      • payment_submethod
      • messageFields
      • Channel
    • Amount & Taxes
      • Amount-cash-in
      • GetConfigurationRequest
    • Identity & Contact
      • Shipping Address
    • Card & Payments
      • ChargesVoidCardResponse
      • Promotions
      • Submerchant
    • Subscriptions
      • SubscriptionUpdate
      • SubscriptionAdjustmentRequest
      • SubscriptionTransactionsResponse
    • Webhooks
    • Analytics
      • AnalyticsTransactionItem
      • AnalyticsListResponse
    • Settlement
      • SettlementDateRangeRequest
      • SettlementTicketRequest
      • SettlementResponse
    • Chargebacks
      • ChargebackListResponse
      • ChargebackSearchRequest
    • Cash
      • CashChargeInitRequest
      • CashStatusResponse
    • Transfer
      • TransferTokenRequest
      • TransferInitRequest
      • TransferStatusResponse
    • Payouts
      • PayoutsWebhooksItem
    • Smart Link
      • SmartLinkAmount
    • Terminal
      • TerminalContactDetails
      • TerminalCardDetails
      • TerminalPosDetails
      • TransactionSearchRequest
      • TerminalCardData
    • RequestBodies
      • one-and-two-step-payment
    • SettlementDateRangeRequest
    • SubscriptionTransactionsResponse
    • card-old
    • AmountWithTaxes-old
    • Card
    • TransactionResponse
    • PrintJobRequest
    • metadata
    • one-and-two-step-payment
    • Shipping Address
    • transactionType
    • ChargebackItem-old
    • SubscriptionTransaction
    • amount
    • AmountCore-old
    • CommandText-old
    • networkToken
    • Language
    • extra_taxes
    • card_details
    • CommandText
    • RawResponse
    • currency
    • ErrorResponse400-old
    • webhooksItem
    • ErrorResponse
    • SettlementResponse
    • extra_taxes-old
    • ExtraTaxes-old
    • CommandColumns-old
    • currency
    • card
    • CommandColumns
    • CardData
    • orderDetails-old
    • Country
    • ErrorResponse401-old
    • SettlementRecord
    • pos_details-old
    • ColumnItem-old
    • Amount
    • LinkFailure
    • amount
    • ColumnItem
    • documentType
    • extraTaxes-old
    • ErrorResponse403-old
    • card_details-old
    • TransactionResponse-old
    • CommandDivider-old
    • extraTaxes
    • enc_tlv
    • CommandDivider
    • TransactionEvent
    • payment_method
    • ErrorResponse500-old
    • threeDomainSecure
    • enc_tlv
    • RawResponse-old
    • CommandFeed-old
    • Deferred
    • pos_details
    • deferred
    • CommandFeed
    • TransactionStatus
    • binInfo
    • contact_details-old
    • CardData-old
    • CommandSpace-old
    • contact_details
    • CommandSpace
    • ReadingType
    • Billing-Address-old
    • Deferred-old
    • deferred-old
    • sub_merchant
    • AmountWithTip-old
    • CommandCut-old
    • sub_merchant
    • CommandCut
    • FailureReason
    • headers
    • Amount-old
    • metadata
    • LinkFailure-old
    • CommandImage-old
    • CommandImage
    • EventTerminal
    • ContactDetails-old
    • SubscriptionUpdate
    • TransactionSearchRequest-old
    • CommandQR-old
    • orderDetails
    • Subscription
    • CommandQR
    • EventOperation
    • payment_submethod
    • citMit
    • SubscriptionAdjustmentRequest
    • CommandBarcode-old
    • Shipping Address
    • CommandBarcode
    • EventAmount
    • messageFields
    • PrinterError-old
    • Billing Address
    • EventExtraTaxes
    • PrintJobAccepted
    • webhooksChargeback
    • Language
    • PrintJobStatus-old
    • PrinterError
    • EventMetadata
    • webhooks
    • networkToken-old
    • PrintWebhookPayload-old
    • threeDomainSecure
    • AmountWithTaxes
    • PrintJobStatus
    • PrintJobStatusRequest
    • webhooks
    • AmountCore
    • product-old
    • headers
    • PrintWebhookPayload
    • ExtraTaxes
    • Metadata
    • webhooksChargeback
    • UnexpectedErrorResponse-old
    • citMit
    • AmountWithTip
    • network
    • TransactionSearchBody
    • TransactionSearchOnlineBody
    • Card-old-old
    • binInfo
    • AmountWithOptionalTip
    • TransactionSearchLocalBody
    • messageFields
    • TransactionEvent_2
    • Promotions-old
    • UnexpectedErrorResponse
    • FailureReason_2
    • transactionType
    • EventTerminal_2
    • EventOperation_2
    • InvalidBinResponse-old
    • EventAmount_2
    • EventExtraTaxes_2
    • EventMetadata_2
    • currency
    • Amount-CL-old
    • SettlementTicketRequest
    • metadata
    • payment_method
    • currency
    • currency
    • Submerchant
    • Shipping Address
    • GetConfigurationRequest-old
    • BadRequestResponse
    • ContactDetails
    • product
    • TransactionEvent_21
    • TransactionStatus2
    • ReadingType3
    • FailureReason_24
    • EventTerminal_25
    • EventOperation_26
    • EventAmount_27
    • EventMetadata_28
    • EventExtraTaxes_29
    • PrintWebhookPayload10
    • TransactionEvent11
    • FailureReason12
    • EventTerminal13
    • EventOperation14
    • EventAmount15
    • EventMetadata16
    • EventExtraTaxes17
BienvenidaPerú 🇵🇪
México 🇲🇽Ecuador 🇪🇨Colombia 🇨🇴Chile 🇨🇱
BienvenidaPerú 🇵🇪
México 🇲🇽Ecuador 🇪🇨Colombia 🇨🇴Chile 🇨🇱
  1. Kushki One

Transaction Examples

Beta — Early Access
Kushki ONE is currently in Beta for Peru 🇵🇪. Endpoints, parameters and response structures may change without prior notice. Do not deploy to production without coordinating with the Kushki integration team.
Practical, copy-ready request examples for every payment operation, in both topologies. If you are integrating for the first time, read Building the amount before anything else — it is where most integrations go wrong.

Base URL#

TopologyBase URL
Local Networkhttp://{terminalIp}:{port}/terminal/v1
Cloud — Productionhttps://cloudt.kushkipagos.com/terminal/v1/{terminalSerial}
Cloud — UAThttps://uat-cloudt.kushkipagos.com/terminal/v1/{terminalSerial}
Every path below is shown relative to that base. The only structural difference between topologies is the {terminalSerial} segment in Cloud:
POST /terminal/v1/sync/charge                          ← Local
POST /terminal/v1/{terminalSerial}/sync/charge         ← Cloud
In Local Network mode the terminal exposes an HTTP server on its own IP. The defaults are 192.168.1.50 for terminalIp and 6868 for port, both configured in the Device Management System (DMS).

Required headers#

HeaderValue
Content-Typeapplication/json
AuthorizationBase64( HMAC-SHA256( rawBody, businessCode ) )
timestampUnix timestamp in milliseconds
WARNING
Sign the exact bytes you send. Serialize once, sign that string, and send that same string — re-serializing between signing and sending changes key order or whitespace and invalidates the signature.
DANGER
The signing key is the Business-Code, not the private_credential_id. The latter is a terminal configuration field inside the DMS and is never used to sign requests — signing with it returns UNAUTHORIZED on every call.

Idempotency#

Every request carries a client_transaction_id (UUID v4). On network failure, retry with the same UUID — the terminal deduplicates and will not charge twice.

Building the amount#

All amount fields are integers in the smallest unit of PEN. No separators, no decimal point.

PEN has 2 decimals#

The currency in Peru is PEN (Sol), which has two decimal places. The last two digits of the integer you send are always the fractional part. Amounts with no fraction still carry the trailing zeros:
To chargeSend
120.00 PEN12000
100.00 PEN10000
200.00 PEN20000
256.00 PEN25600
DANGER
Forgetting the trailing zeros charges a hundredth of the intended amount. To charge 120.00 PEN you send 12000, not 120.
INFO
The payload carries no currency field. The currency comes from the terminal's DMS configuration, not from the request. If your POS serves more than one market, read currency_code from the terminal configuration and resolve the decimal handling per terminal — the same integer means different money in different markets.

Converting safely#

DANGER
Never use floating-point arithmetic. In most languages 12.44 * 100 == 1243.9999999999998, which truncates to 1243 — you undercharge by one cent and your reconciliation breaks. Use integers or a decimal type.
Two rules for the input:
Pass the value as a string, not a float — Decimal(12.44) inherits the binary rounding error you were trying to avoid.
Use a plain decimal string: . as the decimal point and no thousands separator. 100.00 PEN is written 100.00 here. Strip your UI's separators before calling — Decimal("100.00 PEN") raises.

Amount field roles#

FieldMeaning
subtotal_ivaPortion of the sale subject to IGV
ivaIGV amount on that portion. The general rate in Peru is 18%
subtotal_iva0Portion exempt from IGV. Use this alone when the sale has no tax breakdown
extra_taxes.*Industry-specific taxes: airport_tax, iac, ice, travel_agency. Send 0 when not applicable
tipTip. Accepted on pos_tip and on /async/charge. Requires tipping enabled in DMS
The amount charged is the sum of all of them.
INFO
The field is named iva in the payload, but in Peru the tax it carries is the IGV (Impuesto General a las Ventas). The field name is fixed across all Kushki ONE markets; only the label and the rate change.

Charge#

Single-step payment: authorization and capture in one operation. The standard flow for retail.

Sync — blocks until the acquirer answers#

POST /sync/charge
{
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 12000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "c5a3f3be-9d6f-4d39-8af5-58dbb589af79",
  "metadata": {
    "reference": "ORD-20240317-001",
    "customer_email": "user@example.com",
    "device": "SUNMI-P3"
  }
}
Returns the full result. Save rawResponse.transaction_reference — you need it for void, capture, re_authorization, pos_tip and refund.
{
  "approved": true,
  "responseCode": "00",
  "authCode": "123456",
  "rawResponse": {
    "transaction_reference": "983a7480-6d97-41b2-9c3e-7f1a2b3c4d5e",
    "authorized_amount": 12000,
    "franchise": "VISA"
  }
}
Full reference: Charge — Local · Charge — Cloud.

Async — returns immediately#

Use this when your architecture cannot hold a connection open for the duration of a card-present flow.
POST /async/charge
{
  "events_webhook_url": "https://api.negocio.pe/webhook/terminal-events",
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 12000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "c5a3f3be-9d6f-4d39-8af5-58dbb589af79"
}
The response is an acknowledgement, not a result:
{
  "event_id": "c08211a1-344c-4f1c-850b-41e33fb08cca",
  "previous_status": "",
  "occurred_at": "2026-08-03T20:53:34.859Z",
  "status": "TERMINAL_ACKNOWLEDGED",
  "client_transaction_id": "c5a3f3be-9d6f-4d39-8af5-58dbb589af79"
}
The outcome arrives at your events_webhook_url. See Webhooks for the event sequence and retry policy.
WARNING
Omitting events_webhook_url on an async call is valid, but then you have no way to learn the result — the transaction runs blind. Only do this if you plan to reconcile via Transaction Search.

Charge with tip, cashback or installments#

All three are optional fields on the async charge. The terminal handles the cardholder prompts; it ignores any field whose capability is disabled in DMS.
POST /async/charge
{
  "events_webhook_url": "https://api.negocio.pe/webhook/terminal-events",
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 12000,
    "tip": 2000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "cashback_amount": 0,
  "query_deferred": true,
  "client_transaction_id": "c5a3f3be-9d6f-4d39-8af5-58dbb589af79"
}
FieldEffect
amount.tipAdds a tip to the total. 2000 = 20.00 PEN
cashback_amountCash withdrawal on top of the purchase. 0 for none
query_deferredtrue prompts the cardholder to choose installments
WARNING
These three fields are accepted by /async/charge and by pos_tip — not by /sync/charge or authorization. If the matching capability is disabled in DMS the terminal returns a CONFIGURATION error: -4001 for tip, -4002 for cashback. See the Error Catalog.

Pre-authorization flow#

Use this when the final amount is unknown at card-present time — hotels, fuel, open tabs.

Step 1 — Authorize#

Reserves funds without capturing.
POST /sync/authorization
{
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 50000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "a1b2c3d4-0000-4000-8000-000000000001"
}
Save rawResponse.transaction_reference. Authorization validity:
Card typeValidity
Debit (Visa / Mastercard)7 days
Credit (Visa / Mastercard)28 days
Full reference: Pre-authorization — Local · Cloud.

Step 2 (optional) — Re-authorize#

Extends the amount or the capture deadline. Send 0 to extend the date only. Set omit_card: true to skip card presentation.
POST /async/re_authorization
{
  "events_webhook_url": "https://api.negocio.pe/webhook/terminal-events",
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 15000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "a1b2c3d4-0000-4000-8000-000000000002",
  "transaction_reference": "983a7480-6d97-41b2-9c3e-7f1a2b3c4d5e",
  "omit_card": false
}
WARNING
A re-authorization can be canceled — but once canceled, no further re-authorizations are accepted on that transaction.

Step 3 — Capture#

POST /sync/capture
{
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 65000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "a1b2c3d4-0000-4000-8000-000000000003",
  "transaction_reference": "983a7480-6d97-41b2-9c3e-7f1a2b3c4d5e"
}
Rules:
Maximum capture is 110% of the authorization plus all non-canceled re-authorizations.
One capture only per authorization cycle.

Post-tip#

Adds a tip to an already-approved transaction — the classic restaurant flow where the tip is decided after the card is charged.
POST /sync/pos_tip
{
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 12000,
    "tip": 2000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "b2c3d4e5-0000-4000-8000-000000000001",
  "transaction_reference": "983a7480-6d97-41b2-9c3e-7f1a2b3c4d5e"
}
Full reference: Post-tip — Local · Cloud.

Void#

Reverses an approved transaction on the same business day, before the processor cutoff.
POST /sync/void
{
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 12000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "c3d4e5f6-0000-4000-8000-000000000001",
  "transaction_reference": "983a7480-6d97-41b2-9c3e-7f1a2b3c4d5e"
}
INFO
Approximate cutoff in Peru: 20:59 local time (Lima). Confirm the exact cutoff with your Kushki integration team — after it passes the transaction has settled and must be reversed with refund instead. Wait at least 1 minute after the original transaction before calling void.

Abort#

Cancels an in-flight operation while the terminal is still waiting for the cardholder.
TopologyRequest
Local NetworkGET /sync/abort — also available as GET /async/abort
CloudPOST /{terminalSerial}/sync/abort — sync only
No request body in either topology. The signature is computed over an empty string.
DANGER
Abort only works before the transaction reaches the acquirer. Once the state machine hits APPROVAL_REQUESTED the operation can no longer be aborted and the call returns 409 — wait for APPROVAL or DECLINED, then reverse with void or refund.

Complete worked examples#

Restaurant in Peru — tax breakdown and tip#

Bill: food 200.00 PEN + IGV 18% (36.00 PEN) + tip 20.00 PEN = 256.00 PEN
ComponentValueMinor units
subtotal_iva200.00 PEN20000
iva36.00 PEN3600
tip20.00 PEN2000
Total charged256.00 PEN25600
{
  "events_webhook_url": "https://api.negocio.pe/webhook/terminal-events",
  "amount": {
    "iva": 3600,
    "subtotal_iva": 20000,
    "subtotal_iva0": 0,
    "tip": 2000,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "7f8e9d0c-1111-4000-8000-aabbccddeeff",
  "metadata": { "reference": "MESA-14-T0042", "device": "SUNMI-P3" }
}

Retail in Peru — no tip#

Sale: 100.00 PEN plus IGV 18% (18.00 PEN) = 118.00 PEN
ComponentValueMinor units
subtotal_iva100.00 PEN10000
iva18.00 PEN1800
Total charged118.00 PEN11800
{
  "amount": {
    "iva": 1800,
    "subtotal_iva": 10000,
    "subtotal_iva0": 0,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "9a8b7c6d-2222-4000-8000-ffeeddccbbaa",
  "metadata": { "reference": "BOL-000198472", "device": "SUNMI-P2SE" }
}

Simple sale with no tax breakdown#

When you do not itemize taxes, put the whole amount in subtotal_iva0:
{
  "amount": {
    "iva": 0,
    "subtotal_iva": 0,
    "subtotal_iva0": 11800,
    "extra_taxes": { "airport_tax": 0, "iac": 0, "ice": 0, "travel_agency": 0 }
  },
  "client_transaction_id": "1a2b3c4d-3333-4000-8000-112233445566"
}
That charges 118.00 PEN — the same total as the retail example above, without the breakdown.

Common mistakes#

MistakeSymptomFix
Sending a decimal number instead of minor unitsCharge is wrong or request rejectedConvert to minor units first: 100.00 PEN is 10000
Forgetting trailing zeros on whole amountsCharging a hundredth of the amount120.00 PEN is 12000, not 120
Sending the amount as a string with separatorsValidation errorStrip all separators; send an integer, not a string
Using float for the conversionOff-by-one-unit on some amountsUse integer or decimal arithmetic
Reusing an amount echoed from a webhookWrong magnitudeEchoes are decimals (12000.0); requests are integers
Reusing a client_transaction_id across different salesSecond sale silently deduplicatedOne fresh UUID v4 per sale; reuse only when retrying the same one
Re-serializing the body after signing401 UNAUTHORIZEDSign and send the identical byte string
Signing with private_credential_idUNAUTHORIZED on every callThe signing key is the Business-Code
Treating the async response as the resultSale marked approved when it was declinedThe ack only means TERMINAL_ACKNOWLEDGED; wait for the webhook
Expecting card data in the webhookNull fields in your recordsThe webhook carries no PAN or cardholder name — read it from the sync response or Transaction Search
Calling void after the 20:59 cutoffVoid rejectedUse refund instead

Related#

Webhooks
Event sequence, retry policy and how to build an idempotent consumer.
Error Catalog
Response codes and failure reasons, with the recommended action for each.

Got a suggestion on this documentation? Contact us.
Modified at 2026-08-24 16:23:59
Previous
Release notes
Next
Webhooks
Built with