# Set prices for up to 100 offers

Changes the price of up to 100 offers in one call. Each item is processed independently: the response is `200` with one
result per item, in request order, even if some items fail. Offers that are not yours report `not_found`, and an offer
that is still in its cooldown window reports `cooldown` with `retryAfterSeconds`. An offer may appear only once per batch.
More than 100 items returns `413 BATCH_TOO_LARGE`.

Endpoint: POST /offers/prices:batch
Version: 1.0.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header x-api-key

## Request fields (application/json):

  - `items` (array, required)

  - `items.offerId` (integer, required)

  - `items.price` (number, required)
    USD per 1 `unit` of the offer's game currency. A JSON number with at most 5 decimal places; more decimals are rejected, never rounded.

## Response 200:

  - `200` (unknown)
    One result per item, in request order.

## Response 200 fields (application/json):

  - `summary` (object, required)

  - `summary.updated` (integer)

  - `summary.unchanged` (integer)

  - `summary.cooldown` (integer)

  - `summary.notFound` (integer)

  - `summary.invalid` (integer)

  - `results` (array, required)
    One result per request item, in request order.

  - `results.offerId` (integer, required)

  - `results.status` (string, required)
    Enum: "updated", "unchanged", "cooldown", "not_found", "invalid"

  - `results.price` (number | null)
    The price sent for this item.

  - `results.retryAfterSeconds` (integer | null)
    Seconds until the price can change again. Present when `status` is `cooldown`.

  - `results.priceUpdatableAt` (string | null)
    Present when `status` is `cooldown`.

  - `results.error` (string | null)
    Why the item is `invalid`.

## Response 200 headers (application/json):

  - `X-Request-Id` (string)
    Unique id of this request. Include it when you contact support.

## Response 400:

  - `400` (unknown)
    The request is malformed, has unknown fields or has invalid values. `details.errors` lists each problem.

## Response 400 fields (application/json):

  - `error` (object, required)

  - `error.code` (string, required)
    Stable machine-readable code. See the table in **Errors**.
    Enum: "VALIDATION_FAILED", "BAD_REQUEST", "INVALID_API_KEY", "API_KEY_NOT_REGISTERED", "API_KEY_DISABLED", "SELLER_API_DISABLED", "SELLER_RESTRICTED", "FORBIDDEN", "NOT_FOUND", "OFFER_NOT_FOUND", "OFFER_OUT_OF_STOCK", "OFFER_NOT_ACTIVATABLE", "BATCH_TOO_LARGE", "PAYLOAD_TOO_LARGE", "RATE_LIMITED", "QUOTA_EXCEEDED", "PRICE_UPDATE_COOLDOWN", "INTERNAL_ERROR", "UPSTREAM_ERROR"

  - `error.message` (string, required)
    A human-readable explanation. Do not parse it.

  - `error.requestId` (string)
    Identifies the request. Include it when you contact support.

  - `error.details` (object)
    Extra information that depends on the code.

## Response 400 headers (application/json):

  - `X-Request-Id` (string)
    Unique id of this request. Include it when you contact support.

## Response 401:

  - `401` (unknown)
    The `x-api-key` header is missing or the key is invalid.

## Response 401 fields (application/json):

  - `error` (object, required)

  - `error.code` (string, required)
    Stable machine-readable code. See the table in **Errors**.
    Enum: "VALIDATION_FAILED", "BAD_REQUEST", "INVALID_API_KEY", "API_KEY_NOT_REGISTERED", "API_KEY_DISABLED", "SELLER_API_DISABLED", "SELLER_RESTRICTED", "FORBIDDEN", "NOT_FOUND", "OFFER_NOT_FOUND", "OFFER_OUT_OF_STOCK", "OFFER_NOT_ACTIVATABLE", "BATCH_TOO_LARGE", "PAYLOAD_TOO_LARGE", "RATE_LIMITED", "QUOTA_EXCEEDED", "PRICE_UPDATE_COOLDOWN", "INTERNAL_ERROR", "UPSTREAM_ERROR"

  - `error.message` (string, required)
    A human-readable explanation. Do not parse it.

  - `error.requestId` (string)
    Identifies the request. Include it when you contact support.

  - `error.details` (object)
    Extra information that depends on the code.

## Response 401 headers (application/json):

  - `X-Request-Id` (string)
    Unique id of this request. Include it when you contact support.

## Response 403:

  - `403` (unknown)
    The request is understood but not allowed. `code` tells you why: `API_KEY_NOT_REGISTERED`, `API_KEY_DISABLED`,
`SELLER_API_DISABLED` or `FORBIDDEN`.

## Response 403 fields (application/json):

  - `error` (object, required)

  - `error.code` (string, required)
    Stable machine-readable code. See the table in **Errors**.
    Enum: "VALIDATION_FAILED", "BAD_REQUEST", "INVALID_API_KEY", "API_KEY_NOT_REGISTERED", "API_KEY_DISABLED", "SELLER_API_DISABLED", "SELLER_RESTRICTED", "FORBIDDEN", "NOT_FOUND", "OFFER_NOT_FOUND", "OFFER_OUT_OF_STOCK", "OFFER_NOT_ACTIVATABLE", "BATCH_TOO_LARGE", "PAYLOAD_TOO_LARGE", "RATE_LIMITED", "QUOTA_EXCEEDED", "PRICE_UPDATE_COOLDOWN", "INTERNAL_ERROR", "UPSTREAM_ERROR"

  - `error.message` (string, required)
    A human-readable explanation. Do not parse it.

  - `error.requestId` (string)
    Identifies the request. Include it when you contact support.

  - `error.details` (object)
    Extra information that depends on the code.

## Response 403 headers (application/json):

  - `X-Request-Id` (string)
    Unique id of this request. Include it when you contact support.

## Response 413:

  - `413` (unknown)
    The batch has more than 100 items (`BATCH_TOO_LARGE`), or the request body is larger than 1 MiB (`PAYLOAD_TOO_LARGE`).

## Response 413 fields (application/json):

  - `error` (object, required)

  - `error.code` (string, required)
    Stable machine-readable code. See the table in **Errors**.
    Enum: "VALIDATION_FAILED", "BAD_REQUEST", "INVALID_API_KEY", "API_KEY_NOT_REGISTERED", "API_KEY_DISABLED", "SELLER_API_DISABLED", "SELLER_RESTRICTED", "FORBIDDEN", "NOT_FOUND", "OFFER_NOT_FOUND", "OFFER_OUT_OF_STOCK", "OFFER_NOT_ACTIVATABLE", "BATCH_TOO_LARGE", "PAYLOAD_TOO_LARGE", "RATE_LIMITED", "QUOTA_EXCEEDED", "PRICE_UPDATE_COOLDOWN", "INTERNAL_ERROR", "UPSTREAM_ERROR"

  - `error.message` (string, required)
    A human-readable explanation. Do not parse it.

  - `error.requestId` (string)
    Identifies the request. Include it when you contact support.

  - `error.details` (object)
    Extra information that depends on the code.

## Response 413 headers (application/json):

  - `X-Request-Id` (string)
    Unique id of this request. Include it when you contact support.

## Response 429:

  - `429` (unknown)
    Too many requests (`RATE_LIMITED`) or the daily quota is used (`QUOTA_EXCEEDED`). Wait for `Retry-After` seconds and retry with backoff.

## Response 429 fields (application/json):

  - `error` (object, required)

  - `error.code` (string, required)
    Stable machine-readable code. See the table in **Errors**.
    Enum: "VALIDATION_FAILED", "BAD_REQUEST", "INVALID_API_KEY", "API_KEY_NOT_REGISTERED", "API_KEY_DISABLED", "SELLER_API_DISABLED", "SELLER_RESTRICTED", "FORBIDDEN", "NOT_FOUND", "OFFER_NOT_FOUND", "OFFER_OUT_OF_STOCK", "OFFER_NOT_ACTIVATABLE", "BATCH_TOO_LARGE", "PAYLOAD_TOO_LARGE", "RATE_LIMITED", "QUOTA_EXCEEDED", "PRICE_UPDATE_COOLDOWN", "INTERNAL_ERROR", "UPSTREAM_ERROR"

  - `error.message` (string, required)
    A human-readable explanation. Do not parse it.

  - `error.requestId` (string)
    Identifies the request. Include it when you contact support.

  - `error.details` (object)
    Extra information that depends on the code.

## Response 429 headers (application/json):

  - `X-Request-Id` (string)
    Unique id of this request. Include it when you contact support.

  - `Retry-After` (integer)
    Seconds to wait before retrying.

## Response 500:

  - `500` (unknown)
    Unexpected error. Contact support with the `requestId` if it persists.

## Response 500 fields (application/json):

  - `error` (object, required)

  - `error.code` (string, required)
    Stable machine-readable code. See the table in **Errors**.
    Enum: "VALIDATION_FAILED", "BAD_REQUEST", "INVALID_API_KEY", "API_KEY_NOT_REGISTERED", "API_KEY_DISABLED", "SELLER_API_DISABLED", "SELLER_RESTRICTED", "FORBIDDEN", "NOT_FOUND", "OFFER_NOT_FOUND", "OFFER_OUT_OF_STOCK", "OFFER_NOT_ACTIVATABLE", "BATCH_TOO_LARGE", "PAYLOAD_TOO_LARGE", "RATE_LIMITED", "QUOTA_EXCEEDED", "PRICE_UPDATE_COOLDOWN", "INTERNAL_ERROR", "UPSTREAM_ERROR"

  - `error.message` (string, required)
    A human-readable explanation. Do not parse it.

  - `error.requestId` (string)
    Identifies the request. Include it when you contact support.

  - `error.details` (object)
    Extra information that depends on the code.

## Response 500 headers (application/json):

  - `X-Request-Id` (string)
    Unique id of this request. Include it when you contact support.

## Response 502:

  - `502` (unknown)
    A temporary problem on our side. Retry with exponential backoff. Other `5xx` statuses use the same envelope.

## Response 502 fields (application/json):

  - `error` (object, required)

  - `error.code` (string, required)
    Stable machine-readable code. See the table in **Errors**.
    Enum: "VALIDATION_FAILED", "BAD_REQUEST", "INVALID_API_KEY", "API_KEY_NOT_REGISTERED", "API_KEY_DISABLED", "SELLER_API_DISABLED", "SELLER_RESTRICTED", "FORBIDDEN", "NOT_FOUND", "OFFER_NOT_FOUND", "OFFER_OUT_OF_STOCK", "OFFER_NOT_ACTIVATABLE", "BATCH_TOO_LARGE", "PAYLOAD_TOO_LARGE", "RATE_LIMITED", "QUOTA_EXCEEDED", "PRICE_UPDATE_COOLDOWN", "INTERNAL_ERROR", "UPSTREAM_ERROR"

  - `error.message` (string, required)
    A human-readable explanation. Do not parse it.

  - `error.requestId` (string)
    Identifies the request. Include it when you contact support.

  - `error.details` (object)
    Extra information that depends on the code.

## Response 502 headers (application/json):

  - `X-Request-Id` (string)
    Unique id of this request. Include it when you contact support.

## Response 403 examples:

  - `Key not registered` (unknown)

  - `Key disabled` (unknown)

  - `Access not enabled for the account` (unknown)

## Response 413 examples:

  - `More than 100 items` (unknown)

  - `Request body too large` (unknown)

## Response 429 examples:

  - `Too many requests per second` (unknown)

  - `Daily quota used` (unknown)

