SenderAccount
The sender accounts offered in the hosted payment flow, and the one chosen.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/ob/payments/sender-accounts |
load |
Returns the sender accounts |
PATCH |
/api/v1/ob/payments/sender-accounts |
update |
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:
sender_account, err := client.SenderAccount(nil).Load(map[string]any{"provider_id": "example", "state": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(sender_account)
updated, err := client.SenderAccount(nil).Update(map[string]any{}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
Lua
Construct client as shown in the Lua setup, then call the operations:
local sender_account, err = client:SenderAccount():load({ provider_id = "example", state = "example" })
local updated, err = client:SenderAccount():update({ })
PHP
Construct client as shown in the PHP setup, then call the operations:
$sender_account = $client->SenderAccount()->load(["provider_id" => "example", "state" => "example"]);
$updated = $client->SenderAccount()->update([]);
Python
Construct client as shown in the Python setup, then call the operations:
sender_account = client.SenderAccount().load({"provider_id": "example", "state": "example"})
updated = client.SenderAccount().update({ })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
sender_account = client.SenderAccount.load({ "provider_id" => "example", "state" => "example" })
updated = client.SenderAccount.update({ })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const sender_account = await client.SenderAccount().load({ provider_id: "example", state: "example" })
const updated = await client.SenderAccount().update({ })
Fields
| Field | Type | Required | Description |
|---|
load
GET /api/v1/ob/payments/sender-accounts
Operation ID: PaymentsController_getSenderAccounts_v1.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
state |
query |
string |
Yes | |
providerId |
query |
string |
Yes |
Responses
200: Returns the sender accounts
update
PATCH /api/v1/ob/payments/sender-accounts
Operation ID: PaymentsController_updateSenderAccount_v1.
Request body
application/json
The request body is object.