PaymentInitiation
A payment initiation.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations |
create |
Payment initiation created successfully. You need to save payment initiation ID for tracking its status later. |
GET |
/profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations/{paymentInitiationId} |
load |
Payment initiation retrieved 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:
payment_initiation, err := client.PaymentInitiation(nil).Load(map[string]any{"batch_group_id": "example", "id": 1, "profile_id": 1}, nil)
if err != nil {
panic(err)
}
fmt.Println(payment_initiation)
created, err := client.PaymentInitiation(nil).Create(map[string]any{"batch_group_id": "example", "profile_id": 1}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local payment_initiation, err = client:PaymentInitiation():load({ batch_group_id = "example", id = 1, profile_id = 1 })
local created, err = client:PaymentInitiation():create({ batch_group_id = "example", profile_id = 1 })
PHP
Construct client as shown in the PHP setup, then call the operations:
$payment_initiation = $client->PaymentInitiation()->load(["batch_group_id" => "example", "id" => 1, "profile_id" => 1]);
$created = $client->PaymentInitiation()->create(["batch_group_id" => "example", "profile_id" => 1]);
Python
Construct client as shown in the Python setup, then call the operations:
payment_initiation = client.PaymentInitiation().load({"batch_group_id": "example", "id": 1, "profile_id": 1})
created = client.PaymentInitiation().create({ "batch_group_id": "example", "profile_id": 1 })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
payment_initiation = client.PaymentInitiation.load({ "batch_group_id" => "example", "id" => 1, "profile_id" => 1 })
created = client.PaymentInitiation.create({ "batch_group_id" => "example", "profile_id" => 1 })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const payment_initiation = await client.PaymentInitiation().load({ batch_group_id: "example", id: 1, profile_id: 1 })
const created = await client.PaymentInitiation().create({ batch_group_id: "example", profile_id: 1 })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
create
POST /profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations
Operation ID: batchGroupPaymentInitiationCreate.
Authentication: bearer token (UserToken).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
profileId |
path |
integer (int64) |
Yes | The ID of the profile that the batch group is associated with. |
batchGroupId |
path |
string (uuid) |
Yes | The batch group ID. |
X-External-Correlation-Id |
header |
string (uuid) |
No | Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more. |
Request body
application/json
The request body is object or object.
Responses
200: Payment initiation created successfully. You need to save payment initiation ID for tracking its status later.
application/json
The response is object or object.
429: Rate limit exceeded. Retry after the number of seconds specified in the Retry-After header
application/json
The response is object.
load
GET /profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations/{paymentInitiationId}
Operation ID: batchGroupPaymentInitiationGet.
Authentication: bearer token (UserToken) or bearer token (PersonalToken).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
profileId |
path |
integer (int64) |
Yes | The ID of the profile that the batch group is associated with. |
batchGroupId |
path |
string (uuid) |
Yes | The batch group ID. |
paymentInitiationId |
path |
integer (int64) |
Yes | The payment initiation ID. |
X-External-Correlation-Id |
header |
string (uuid) |
No | Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more. |
Responses
200: Payment initiation retrieved successfully
application/json
The response is object or object.
429: Rate limit exceeded. Retry after the number of seconds specified in the Retry-After header
application/json
The response is object.