Skip to main content
If you are a payment facilitator, card schemes require you to provide certain data about your user with each transaction. That is because your user is considered the Merchant of Record when a transaction is facilitated by your platform . Adyen automatically adds certain user data to transactions that you facilitate. The remaining data must be supplied by you. This page explains the ways you can do that.

Requirements

In addition to the general requirements for in-person payments with an Adyen for Platforms integration, take into account the following requirements and limitations.

Methods to add user data

Adyen automatically adds certain user data to transactions facilitated by your platform. The remaining user data must be supplied by you. There are two methods to add user data: If your user has standalone terminals, you must use the store configuration method. For integrated terminals you can use either method or both. When using both methods, the Terminal API request overrides the store configuration. When you add fields to requests, you only need to do this for Terminal API payment requests and Terminal API referenced and unreferenced refund requests. Adding fields is not necessary for payment modifications that are not Terminal API requests, such as manual captures and authorization adjustments. For those non-Terminal API requests, Adyen adds the sub-merchant data from the initial payment.

Add to the store configuration

If your user uses standalone terminals, you must add user data to the user’s store through the Management API. Adyen then adds this data before sending requests for authorization. If your user uses a POS system with integrated terminals or a Mobile solution, you can also add user data to the user’s store. When necessary, you can override the data specified for the store by adding user data to individual Terminal API requests. To add user data to an existing store:
  1. Make sure you have the idof the user’s store.
    To find that value, you can make a GET /stores request (or a GET /merchants/{merchantId}/stores request).
  2. Make a PATCH /stores/{storeId} request with:
    • A subMerchantData object with the following parameters.
    Add user data to an existing store

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

    You can also make a PATCH request to the /merchants/{merchantId}/stores/{storeId} endpoint using the same subMerchantData object.
  3. In the response note that this contains the full details of the store, including the subMerchantData you submitted.
You can also include a subMerchantData object when you create a new store using a POST /stores request (or a POST /merchants/{merchantId}/stores request).

Add to the Terminal API request

To add data about your user in your Terminal API request:
  1. Create an additionalData JSON object with the following parameters: additionalData JSON object
  2. Encode the additionalData JSON object to Base64. You will pass the resulting string in SaleData.SaleToAcquirerData. Converted to a Base64-encoded string
  3. Make a Terminal API payment request with the Base64-encoded string as the SaleToAcquirerData value. Add user data to a Terminal API request
Note that the response does not echo the specified user data.

Combining user data and split instructions

It is possible to provide both user data and split instructions in the same Terminal API request. However, you must provide all the data in the same way: as a JSON object converted to a Base64-encoded string. The reason is that the Terminal API cannot pass on user data that is formatted as concatenated key-value pairs. Here is an example:
  1. Create an additionalData JSON object with the user data and the split instructions. JSON object combining data types
  2. Encode the JSON object to Base64. Converted to a Base64-encoded string
  3. Pass the Base64-encoded string in the SaleData.SaleToAcquirerData parameter of your Terminal API payment request.

See also