Initiate an authorization

Create a new transaction and generate the URL for the Trustly Lightbox. This is the starting point for any payment or data retrieval flow.

Note: If your application is configured for Money Transfer, additional properties in the customer and beneficiary objects are required.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
boolean

If true, Trustly will return a transactionId that can be used with other API's. Either createTransaction or notify is required.

boolean

If true, Trustly will notify the User via SMS or Email with a URL that can be used to complete the transaction. Either createTransaction or notify is required.

string

Comma separated list of notification channels. Currently only sms and email are supported. Example: sms,email will send a notification via SMS and email to the User. Required if notify is true.

Body Params
string
required
length ≥ 1

Your Trustly-provided Merchant ID.

string
required
length ≥ 1

Your Trustly-provided client application access ID.

string
length ≥ 1

The amount of the transaction. This represents the maximum amount of the transactions that can be processed with the Authorization. If the amount is 0.00, there will be no upper bound on the transaction. (10 characters with support for 2 decimal places)

string
enum
required
length ≥ 1

3-letter ISO Currency Code.

Allowed:
string
length ≥ 1

A summary description of the order. Do not pass Consumer PII (name, email address, etc) in this field.

string
required
length ≥ 1

The URL where the user should be redirected to when the user successfully authorizes the transaction (must be a valid URL or function).

string
required
length ≥ 1

The URL where the user should be redirected to if the user exits or the transaction is canceled (must be a valid URL or function).

string

Notification URL to use for notifications associated with this transaction. This overrides the notification URL configured by Trustly during onboarding.

string
enum
length ≥ 1

Specifies the type of transaction to create. Possible values are Instant, Deferred, Disbursement, Recurring, Verification, and Retrieval. Default is Retrieval.

Note: If your application is configured for "Money Transfer" and utilizes the "Instant" paymentType several properties under customer, beneficiary and beneficiaryAccount will be required.

See the Money Transfers guide for more details.

Allowed:
string
required
length ≥ 1

Request Signature used to secure the request.

float

Optionally displays the provided transaction amount to the user throughout the Lightbox experience.

string
required
length ≥ 1

A unique identifier that you create to represent the Transaction in the Trustly system.

string
account
object

Account information. Required if paymentType is Verification and a transactionId is not included.

beneficiary
object

The ultimate beneficiary of this payment. Required when using paymentType: Instant for Money Transfer

beneficiaryAccount
object

Financial institution account associated with the ultimate beneficiary of a transaction. Required when using paymentType: Instant for Money Transfer

string

Specifies the KYC (Know Your Customer) type. This field is optional and can only be used by merchants configured for Trustly ID.

metadata
object

Provide additional use case-specific properties in this object.

Headers
string
Defaults to application/json

application/json

Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json