Skip to main content

Replace a theme asset

post/merchants/{merchantId}/terminalThemes/{id}/assets/replace

Replaces an existing image or video (an 'asset') of a terminal theme owned by the merchant account specified in the path. This endpoint is rate limited.\n\n" An asset is used for a specific screen type or screen element, and a specific Android terminal model. You must specify this using the query parameters type and model. The asset binary itself is uploaded as multipart/form-data with a single file part called file, which must declare one of the following supported Content-Type values:

  • image/svg+xml: only for the combination type logo with model All.
  • video/mp4 or video/quicktime: only for model SFO1 or M450.
  • image/jpeg (or image/jpg): for all model values except All.
  • image/png: for all model values except All.
  • image/gif: for all model values except SFO1 and M450. The maximum size of the asset depends on the terminal model: 100 MB for model SFO1 and M450, or 10 MB for all other model values.

You can upload an asset using this endpoint if the theme already has an asset with the specified combination of type and model. If that is not the case, the request fails and you need to use the endpoint /merchants/{merchantId}/terminalThemes/{id}/assets instead.

To make this request, your API credential must have the following role:

  • Management API - Terminal themes read and write
Endpoint destination URL
https://management-test.adyen.com/v3/merchants/{merchantId}/terminalThemes/{id}/assets/replace
Click to copy
modelstringRequired

The Android terminal model that the asset is for. Use All only if the type is logo. For every other screen type specify a single Android terminal model such as AMS1.

typestringRequired

The screen type or screen element that the asset is for:

  • logo: your logo. Only supported if model is All.
  • homeScreen: the default background screen.
  • idleScreen: a screensaver shown when the terminal is inactive. Only supported if model is SFO1 or M450.
  • afterPaymentScreen: a screen shown after the payment is completed.
  • shopperEngagementScreen: a screen shown during shopper engagement requests. Only supported if model is SFO1 or M450.
idstringRequired

The unique identifier of the terminal theme.

merchantIdstringRequired

The unique identifier of the merchant account.

filestringRequired

The asset file. The part must declare a specific supported Content-Type; which Content-Type is accepted depends on the asset type and terminal model (see the endpoint description for the full mapping). The file extension is derived from it. A request with a generic or missing Content-Type such as application/octet-stream is rejected with response code 422. The maximum asset size depends on the terminal model: up to 100 MB for SFO1 and M450, or 10 MB for all other models.

After submitting a call, you receive a response message to inform you that your request was received and processed.

Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.

HTTP Responses

  • 200

    OK

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

  • 422

    Unprocessable Entity

  • 429

    Too Many Requests

  • 500

    Internal Server Error