API

Followup

A follow-up for a payment, created at its provider.

Operations

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

Method Route SDK operation Returns
POST /api/v1/ob/payments/{paymentId}/followups create The payment followup has been stored successfully

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:

created, err := client.Followup(nil).Create(map[string]any{"payment_id": "example", "provider": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local created, err = client:Followup():create({ payment_id = "example", provider = "example" })

PHP

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

$created = $client->Followup()->create(["payment_id" => "example", "provider" => "example"]);

Python

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

created = client.Followup().create({ "payment_id": "example", "provider": "example" })

Ruby

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

created = client.Followup.create({ "payment_id" => "example", "provider" => "example" })

TypeScript

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

const created = await client.Followup().create({ payment_id: "example", provider: "example" })

Fields

Field Type Required Description
provider any Yes The provider information for the followup
sender any No The sender information to be used with the payment

create

POST /api/v1/ob/payments/{paymentId}/followups

Operation ID: FollowupsController_create_v1.

Authentication: credential (bearer).

Parameters

Parameter In Type Required Description
paymentId path string Yes

Request body

application/json

Property Type Required Description
provider object Yes The provider information for the followup
sender object No The sender information to be used with the payment

Responses

201: The payment followup has been stored successfully

application/json

Property Type Required Description
createdAt string (date-time) Yes
paymentId string Yes The Kashimi ID of the initiated payment
providerPaymentId string No The provider ID of the initiated payment
redirectUrl string Yes The URL to redirect the user to complete the payment
status enum: PENDING, COMPLETED, FAILED, UNKNOWN Yes The status of the initiated payment
updatedAt string (date-time) Yes

Example response:

{
  "createdAt": "2023-04-05T17:02:11.954Z",
  "paymentId": "56caec01-85cc-4fc6-8080-cc0f7ed03a7e",
  "redirectUrl": "https://example.com/provider/specific/redirect/url",
  "status": "PENDING",
  "updatedAt": "2023-04-05T17:02:11.954Z"
}
400: The request is not formatted correctly

application/json

Example response:

{
  "message": "provider must be a non-empty object; provider.id must be a UUID; provider.id should not be empty",
  "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"
}