API

PaymentStatus

The status of a payment: its full history, or the latest.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/archive/payment-statuses list Returns all payment statuses for the given payment ID
GET /api/v1/archive/payment-statuses/latest load Returns the latest payment status for the given payment ID

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

payment_statuss, err := client.PaymentStatus(nil).List(map[string]any{"payment_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(payment_statuss)
payment_status, err := client.PaymentStatus(nil).Load(map[string]any{"payment_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(payment_status)

Lua

Construct client as shown in the Lua setup, then call the operations:

local payment_statuss, err = client:PaymentStatus():list({ payment_id = "example" })
local payment_status, err = client:PaymentStatus():load({ payment_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$payment_statuss = $client->PaymentStatus()->list(["payment_id" => "example"]);
$payment_status = $client->PaymentStatus()->load(["payment_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

payment_statuss = client.PaymentStatus().list({"payment_id": "example"})
payment_status = client.PaymentStatus().load({"payment_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

payment_statuss = client.PaymentStatus.list({ "payment_id" => "example" })
payment_status = client.PaymentStatus.load({ "payment_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const payment_statuss = await client.PaymentStatus().list({ payment_id: "example" })
const payment_status = await client.PaymentStatus().load({ payment_id: "example" })

Fields

Field Type Required Description
createdAt string Yes Timestamp of status creation
detailedStatus string Yes Detailed payment status
failureReasons array Yes Failure reasons (for status: FAILED only)
id string Yes Unique payment status identifier
paymentId string Yes Unique payment identifier
status string Yes Payment status.

list

GET /api/v1/archive/payment-statuses

Operation ID: PaymentStatusesController_getStatusesByPaymentId_v1.

Authentication: credential (bearer).

Parameters

Parameter In Type Required Description
paymentId query string Yes Kashimi payment ID

Responses

200: Returns all payment statuses for the given payment ID

application/json

Property Type Required Description
[].createdAt string (date-time) Yes Timestamp of status creation
[].detailedStatus enum: PROVIDER_SELECTION_REDIRECT_PENDING, PROVIDER_SELECTION_CALLBACK_PROCESSING_PENDING, FOLLOWUP_DATA_COLLECTION_REQUIRED_CHECK_PENDING, FOLLOWUP_DATA_COLLECTION_REDIRECT_PENDING, FOLLOWUP_DATA_COLLECTION_CALLBACK_PROCESSING_PENDING, FOLLOWUP_DATA_COLLECTION_CALLBACK_PROCESSING_FAILED, ... Yes Detailed payment status
[].failureReasons array of enum: UNKNOWN_ERROR, INTERNAL_TECHNICAL_ERROR, PAYMENT_EXPIRED, SENDER_CREDENTIALS_INVALID, REMITTANCE_INFORMATION_INVALID, SENDER_ACCOUNT_INVALID, ... Yes Failure reasons (for status: FAILED only)
[].id string Yes Unique payment status identifier
[].paymentId string Yes Unique payment identifier
[].status enum: PENDING, COMPLETED, FAILED, UNKNOWN Yes Payment status. There are 3 main values: PENDING, COMPLETED, FAILED. In very rare cases, caused by internal system issues, the status might resolve to UNKNOWN

Example response:

[
  {
    "createdAt": "2023-10-01T12:00:00Z",
    "detailedStatus": "PAYMENT_CONSENT_CALLBACK_PROCESSING_PENDING",
    "failureReasons": [],
    "id": "e68eee70-bfe9-4885-8650-46ec7d017458",
    "paymentId": "123e4567-e89b-12d3-a456-426614174000",
    "status": "PENDING"
  },
  {
    "createdAt": "2023-10-01T12:05:00Z",
    "detailedStatus": "PAYMENT_EXECUTION_COMPLETED",
    "failureReasons": [],
    "id": "f79fff81-cff0-5996-9761-57fd8e128569",
    "paymentId": "123e4567-e89b-12d3-a456-426614174000",
    "status": "COMPLETED"
  }
]
400: The request is not formatted correctly

application/json

Property Type Required Description
message string Yes Error message
statusCode number Yes HTTP status code
title string Yes Name of the error

Example response:

{
  "message": "Invalid UUID format",
  "statusCode": 400,
  "title": "Bad Request"
}
401: Your access token was either not passed with the request, or it is invalid (for example expired or malformed). Make sure to pass the token in the Authorization header, and obtain a new one if it has expired

application/json

Property Type Required Description
message string Yes Error message
statusCode number Yes HTTP status code
title string Yes Name of the error

Example response:

{
  "message": "Unauthorized",
  "statusCode": 401,
  "title": "Unauthorized"
}
403: You do not have the necessary permissions to perform this action

application/json

Property Type Required Description
message string Yes Error message
statusCode number Yes HTTP status code
title string Yes Name of the error

Example response:

{
  "message": "Access denied",
  "statusCode": 403,
  "title": "Forbidden"
}

load

GET /api/v1/archive/payment-statuses/latest

Operation ID: PaymentStatusesController_getLatestByPaymentId_v1.

Authentication: credential (bearer).

Parameters

Parameter In Type Required Description
paymentId query string Yes Kashimi payment ID

Responses

200: Returns the latest payment status for the given payment ID

application/json

Property Type Required Description
createdAt string (date-time) Yes Timestamp of status creation
detailedStatus enum: PROVIDER_SELECTION_REDIRECT_PENDING, PROVIDER_SELECTION_CALLBACK_PROCESSING_PENDING, FOLLOWUP_DATA_COLLECTION_REQUIRED_CHECK_PENDING, FOLLOWUP_DATA_COLLECTION_REDIRECT_PENDING, FOLLOWUP_DATA_COLLECTION_CALLBACK_PROCESSING_PENDING, FOLLOWUP_DATA_COLLECTION_CALLBACK_PROCESSING_FAILED, ... Yes Detailed payment status
failureReasons array of enum: UNKNOWN_ERROR, INTERNAL_TECHNICAL_ERROR, PAYMENT_EXPIRED, SENDER_CREDENTIALS_INVALID, REMITTANCE_INFORMATION_INVALID, SENDER_ACCOUNT_INVALID, ... Yes Failure reasons (for status: FAILED only)
id string Yes Unique payment status identifier
paymentId string Yes Unique payment identifier
status enum: PENDING, COMPLETED, FAILED, UNKNOWN Yes Payment status. There are 3 main values: PENDING, COMPLETED, FAILED. In very rare cases, caused by internal system issues, the status might resolve to UNKNOWN
400: The request is not formatted correctly

application/json

Property Type Required Description
message string Yes Error message
statusCode number Yes HTTP status code
title string Yes Name of the error

Example response:

{
  "message": "Invalid UUID format",
  "statusCode": 400,
  "title": "Bad Request"
}
401: Your access token was either not passed with the request, or it is invalid (for example expired or malformed). Make sure to pass the token in the Authorization header, and obtain a new one if it has expired

application/json

Property Type Required Description
message string Yes Error message
statusCode number Yes HTTP status code
title string Yes Name of the error

Example response:

{
  "message": "Unauthorized",
  "statusCode": 401,
  "title": "Unauthorized"
}
403: You do not have the necessary permissions to perform this action

application/json

Property Type Required Description
message string Yes Error message
statusCode number Yes HTTP status code
title string Yes Name of the error

Example response:

{
  "message": "Access denied",
  "statusCode": 403,
  "title": "Forbidden"
}
404: The payment status with the specified payment ID was not found

application/json

Example response:

{
  "message": "Payment status not found",
  "statusCode": 404,
  "title": "Not Found"
}