Download OpenAPI specification:Download
The KartaPay REST API provides resource-oriented endpoints to create and capture payments using HTTP standards (status code, authentication, etc.)
Accept-Language | string |
The payment request.
object (Context) Contextual data. | |
object (Payer) The payer's billing data. | |
required | object (Purchase) The purchase data. |
clientId | string A unique string to reference the payment. This can be an order ID, or similar, and can be used to reconcile the payment with your internal systems. |
clientNote | string A note to attach to the payment. This can be additional information. |
object (Plan) The payment plan. | |
cancelUrl | string The URL to redirect your customers to after the payment is canceled. Required if redirectMode is embedded |
successUrl | string The URL to redirect your customers to after the payment is captured. Required if redirectMode is embedded |
{- "context": {
- "locale": "string",
- "channels": [
- "string"
], - "redirectMode": "embedded",
- "terminalId": "string"
}, - "payer": {
- "fullName": "string",
- "email": "string",
- "phone": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string"
}
}, - "purchase": {
- "total": {
- "value": "string",
- "currency": "string"
}, - "items": [
- {
- "name": "string",
- "quantity": "string",
- "amount": {
- "value": "string",
- "currency": "string"
}
}
]
}, - "clientId": "string",
- "clientNote": "string",
- "plan": {
- "source": "HOL"
}, - "cancelUrl": "string",
- "successUrl": "string"
}
{- "next": "string",
- "data": {
- "status": "init",
- "captured": true,
- "context": {
- "locale": "string",
- "channels": [
- "string"
], - "redirectMode": "embedded",
- "terminalId": "string"
}, - "payee": {
- "fullName": "string"
}, - "payer": {
- "fullName": "string",
- "email": "string",
- "phone": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string"
}
}, - "purchase": {
- "total": {
- "value": "string",
- "currency": "string"
}, - "items": [
- {
- "name": "string",
- "quantity": "string",
- "amount": {
- "value": "string",
- "currency": "string"
}
}
]
}, - "clientId": "string",
- "clientNote": "string",
- "plan": {
- "options": [
- {
- "code": "string",
- "name": "string",
- "image": "string"
}
], - "source": "HOL"
}, - "cancelUrl": "string",
- "successUrl": "string",
- "billing": {
- "submitUrl": "string",
- "approveUrl": "string",
- "declineUrl": "string",
- "captureUrl": "string",
- "providerId": "string",
- "traces": [ ],
- "intent": { },
- "proof": "string",
- "signature": "string"
}, - "createdAt": "string",
- "canceledAt": "string",
- "submittedAt": "string",
- "approvedAt": "string",
- "capturedAt": "string",
- "failedAt": "string",
- "completedAt": "string"
}
}
desc | Array of strings The names of attributes for a descending sort |
sort | Array of strings The names of attributes to perform the sorting. |
limit | string The pagination limit. |
offset | string The pagination offset. |
Accept-Language | string |
{- "data": [
- {
- "status": "init",
- "captured": true,
- "context": {
- "locale": "string",
- "channels": [
- "string"
], - "redirectMode": "embedded",
- "terminalId": "string"
}, - "payee": {
- "fullName": "string"
}, - "payer": {
- "fullName": "string",
- "email": "string",
- "phone": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string"
}
}, - "purchase": {
- "total": {
- "value": "string",
- "currency": "string"
}, - "items": [
- {
- "name": "string",
- "quantity": "string",
- "amount": {
- "value": "string",
- "currency": "string"
}
}
]
}, - "clientId": "string",
- "clientNote": "string",
- "plan": {
- "options": [
- {
- "code": "string",
- "name": "string",
- "image": "string"
}
], - "source": "HOL"
}, - "cancelUrl": "string",
- "successUrl": "string",
- "billing": {
- "submitUrl": "string",
- "approveUrl": "string",
- "declineUrl": "string",
- "captureUrl": "string",
- "providerId": "string",
- "traces": [ ],
- "intent": { },
- "proof": "string",
- "signature": "string"
}, - "createdAt": "string",
- "canceledAt": "string",
- "submittedAt": "string",
- "approvedAt": "string",
- "capturedAt": "string",
- "failedAt": "string",
- "completedAt": "string"
}
], - "total": 0,
- "offset": 0,
- "limit": 0,
- "prev": "string",
- "next": "string"
}
id required | string The ID of the payment. |
Accept-Language | string |
{- "status": "init",
- "captured": true,
- "context": {
- "locale": "string",
- "channels": [
- "string"
], - "redirectMode": "embedded",
- "terminalId": "string"
}, - "payee": {
- "fullName": "string"
}, - "payer": {
- "fullName": "string",
- "email": "string",
- "phone": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string"
}
}, - "purchase": {
- "total": {
- "value": "string",
- "currency": "string"
}, - "items": [
- {
- "name": "string",
- "quantity": "string",
- "amount": {
- "value": "string",
- "currency": "string"
}
}
]
}, - "clientId": "string",
- "clientNote": "string",
- "plan": {
- "options": [
- {
- "code": "string",
- "name": "string",
- "image": "string"
}
], - "source": "HOL"
}, - "cancelUrl": "string",
- "successUrl": "string",
- "billing": {
- "submitUrl": "string",
- "approveUrl": "string",
- "declineUrl": "string",
- "captureUrl": "string",
- "providerId": "string",
- "traces": [ ],
- "intent": { },
- "proof": "string",
- "signature": "string"
}, - "createdAt": "string",
- "canceledAt": "string",
- "submittedAt": "string",
- "approvedAt": "string",
- "capturedAt": "string",
- "failedAt": "string",
- "completedAt": "string"
}
id required | string The ID of the payment. |
Accept-Language | string |
{- "next": "string",
- "data": {
- "status": "init",
- "captured": true,
- "context": {
- "locale": "string",
- "channels": [
- "string"
], - "redirectMode": "embedded",
- "terminalId": "string"
}, - "payee": {
- "fullName": "string"
}, - "payer": {
- "fullName": "string",
- "email": "string",
- "phone": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string"
}
}, - "purchase": {
- "total": {
- "value": "string",
- "currency": "string"
}, - "items": [
- {
- "name": "string",
- "quantity": "string",
- "amount": {
- "value": "string",
- "currency": "string"
}
}
]
}, - "clientId": "string",
- "clientNote": "string",
- "plan": {
- "options": [
- {
- "code": "string",
- "name": "string",
- "image": "string"
}
], - "source": "HOL"
}, - "cancelUrl": "string",
- "successUrl": "string",
- "billing": {
- "submitUrl": "string",
- "approveUrl": "string",
- "declineUrl": "string",
- "captureUrl": "string",
- "providerId": "string",
- "traces": [ ],
- "intent": { },
- "proof": "string",
- "signature": "string"
}, - "createdAt": "string",
- "canceledAt": "string",
- "submittedAt": "string",
- "approvedAt": "string",
- "capturedAt": "string",
- "failedAt": "string",
- "completedAt": "string"
}
}
id required | string The ID of the payment. |
Accept-Language | string |
The payment plan.
source | string Enum: "HOL" "HRM" "MVK" "MVM" "PYP" "STR" The payer's suited gateway for the payment. |
{- "source": "HOL"
}
{- "next": "string",
- "data": {
- "status": "init",
- "captured": true,
- "context": {
- "locale": "string",
- "channels": [
- "string"
], - "redirectMode": "embedded",
- "terminalId": "string"
}, - "payee": {
- "fullName": "string"
}, - "payer": {
- "fullName": "string",
- "email": "string",
- "phone": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string"
}
}, - "purchase": {
- "total": {
- "value": "string",
- "currency": "string"
}, - "items": [
- {
- "name": "string",
- "quantity": "string",
- "amount": {
- "value": "string",
- "currency": "string"
}
}
]
}, - "clientId": "string",
- "clientNote": "string",
- "plan": {
- "options": [
- {
- "code": "string",
- "name": "string",
- "image": "string"
}
], - "source": "HOL"
}, - "cancelUrl": "string",
- "successUrl": "string",
- "billing": {
- "submitUrl": "string",
- "approveUrl": "string",
- "declineUrl": "string",
- "captureUrl": "string",
- "providerId": "string",
- "traces": [ ],
- "intent": { },
- "proof": "string",
- "signature": "string"
}, - "createdAt": "string",
- "canceledAt": "string",
- "submittedAt": "string",
- "approvedAt": "string",
- "capturedAt": "string",
- "failedAt": "string",
- "completedAt": "string"
}
}