Skip to main content
PUT
/
accounts
/
me
Update current account
curl --request PUT \
  --url https://api.truust.io/2.0/accounts/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Company",
  "allow_shipping": 0,
  "business_phone": "+34666999666",
  "business_description": "Description of the business"
}
'
{
  "self": "/2.0/accounts/me",
  "merchant_id": "<string>",
  "name": "My Company",
  "email": "jsmith@example.com",
  "currency": "EUR",
  "country_code": "ES",
  "business_url": "<string>",
  "business_phone": "<string>",
  "business_description": "<string>",
  "image_url": "<string>",
  "public_key": "<string>",
  "secret_key": "<string>",
  "allow_shipping": 0,
  "value_shipping": 123,
  "is_active": true,
  "psd2_enabled": 0,
  "allowed_gateways": [
    "<string>"
  ],
  "gateways": [
    {}
  ],
  "default_gateway": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Use your account's Secret Key as the Bearer token.

Body

application/json
allow_shipping
enum<integer>
required

Required. Set to 1 to allow shipping on orders.

Available options:
0,
1
name
string
Maximum string length: 255
value_shipping
number

Required when allow_shipping is 1. Shipping fee value.

fee_shipping
number

Shipping fee amount (alternative to value_shipping).

business_phone
string

Must be a valid phone number.

business_description
string

Description of the account/business.

image
string

Base64-encoded image or URL for the account logo.

custom_domain
string

Custom domain URL.

addon_account
string

Addon's account credential.

subaccounts
integer[]

Array of subaccount IDs associated with this account.

allowed_gateways
string[]

Array of allowed gateways for the account.

default_gateway
enum<string>

Default payment gateway.

Available options:
ADDON,
ADDON_V2,
ADDON_ICE,
ADDON_HPP,
ADDON_APPLE_PAY,
AZUPAY,
BANKWIRE,
WALLET,
DCP,
EPX,
REDSYS_V2,
REDSYS_APPLE_PAY,
REDSYS_AUTH,
STRIPE,
DOCOMO,
SIBS_MBWAY,
SIBS_MULTIBANCO,
SEQURA,
UNNAX,
PAYPAL,
BIZUM,
INESPAY
psd2_enabled
enum<integer>
Available options:
0,
1
metadata
object

Response

Updated account

self
string
Example:

"/2.0/accounts/me"

merchant_id
string

Unique merchant identifier (addon_key).

name
string
Example:

"My Company"

email
string<email>
currency
string
Example:

"EUR"

country_code
string
Example:

"ES"

business_url
string | null
business_phone
string | null
business_description
string | null
image_url
string | null
public_key
string
secret_key
string

Secret API key. Only visible to the account owner.

allow_shipping
enum<integer>
Available options:
0,
1
value_shipping
number
is_active
boolean
psd2_enabled
enum<integer>
Available options:
0,
1
allowed_gateways
string[]
gateways
object[] | null

List of configured payment gateway objects for the account.

default_gateway
string | null
created_at
string<date-time> | null