Xsolla-logoXsolla Developers
or
To Publisher Account

Set Validity PeriodsServer-sideAdmin

put/merchants/{merchant_id}/promotions/{promotion_id}/periods

Sets date/time ranges when a promotion is valid. If the promotion is read-only (read_only = true), you cannot edit existing periods, but you can add new ones.

Notice

This API call does not contain the project_id path-parameter, so you need to use the API key that is valid in all the company’s projects to set up authorization.

SecuritybasicAuth
Request
path Parameters
merchant_id
required
integer

Merchant ID.

promotion_id
required
integer

Promotion ID.

Request Body schema: application/json
Array of objects

Date/time ranges.

Array
from
string <datetime>

Period start.

offset
string

Number of the element from which the list is generated (the count starts from 0).

to
string <datetime>

Period end.

Responses
204

No content.

Request samples
application/json
{
  • "periods": [
    ]
}