HostedUiCustomization
The customizations of the hosted payment UI for a client.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/capabilities/clients/{clientId}/hosted-ui-customizations |
load |
The UI customizations have been 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:
hosted_ui_customization, err := client.HostedUiCustomization(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(hosted_ui_customization)
Lua
Construct client as shown in the Lua setup, then call the operations:
local hosted_ui_customization, err = client:HostedUiCustomization():load({ id = "example_id" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$hosted_ui_customization = $client->HostedUiCustomization()->load(["id" => "example_id"]);
Python
Construct client as shown in the Python setup, then call the operations:
hosted_ui_customization = client.HostedUiCustomization().load({"id": "example_id"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
hosted_ui_customization = client.HostedUiCustomization.load({ "id" => "example_id" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const hosted_ui_customization = await client.HostedUiCustomization().load({ id: "example_id" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
clientId |
string |
Yes | Client Id |
faviconUrl |
string |
Yes | Favicon Url |
footerText |
string |
Yes | Footer Text |
id |
string |
No | Id |
logoUrl |
string |
Yes | Logo Url |
primaryColor |
string |
Yes | Primary Color |
privacyPolicyUrl |
string |
Yes | Privacy Policy Url |
psuPortalBaseUrl |
string |
Yes | Psu Portal Base Url |
termsUrl |
string |
Yes | Terms Url |
load
GET /api/v1/capabilities/clients/{clientId}/hosted-ui-customizations
Operation ID: ClientsController_get_v1.
Authentication: credential (bearer).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
clientId |
path |
string |
Yes |
Responses
200: The UI customizations have been retrieved successfully
application/json
| Property | Type | Required | Description |
|---|---|---|---|
clientId |
string |
Yes | |
faviconUrl |
string |
Yes | |
footerText |
string |
Yes | |
logoUrl |
string |
Yes | |
primaryColor |
string |
Yes | |
privacyPolicyUrl |
string |
Yes | |
psuPortalBaseUrl |
string |
Yes | |
termsUrl |
string |
Yes |
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 ID value",
"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: Customizations for the specified client ID were not found
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": "Customizations for the specified client ID were not found",
"statusCode": 404,
"title": "Not Found"
}