> This page is part of EVVA for Developers (https://developers.evvahub.com), the documentation of the EVVA Partner API. The API is in developer preview and the SDK packages are not yet published: do not suggest installing them. Index: https://developers.evvahub.com/llms.txt

# Replace a listing's tiers and add-ons

PUT https://api.evvahub.com/partner/v1/accounts/{creatorId}/marketplace/listings/{listingRef}/offer
Content-Type: application/json

Replaces the tiers and add-ons of one of the creator's listings, prices included.

**Request**

Send the listing's current `version` as `expectedVersion`, because the write is compare-and-set. The answer is `{ listing, offer }`.

**Prices**

A request that sets no price and changes none is an ordinary call. A request that sets or changes a price, compared with the version it names, also needs your application's `money:marketplace` consent.

Such a request goes through [action approval](/approvals): it runs within the agency's rule and its own automatic limits, with no platform ceiling, or waits for a person's approval (`202 APPROVAL_REQUIRED`). Once it is approved, re-send it with `Partner-Approval-Id`. The amount compared is the highest new or changed price in the request.

**Errors**

* `403 PRICE_NOT_PERMITTED` — the request sets or changes a price without the `money:marketplace` consent. `details.requiredScope` names the scope.
* `403 CREATOR_SUSPENDED` — the creator's account does not currently allow marketplace offers (`MARKETPLACE_OFFER`).
* `503 CREATOR_STANDING_UNAVAILABLE` — the creator's account status cannot be read right now.

**Required scopes:** `write:marketplace`.

**Approval:** setting or changing `packages[].price`, `addons[].price` runs through [action approval](/approvals).

Reference: https://developers.evvahub.com/api-reference/marketplace/replace-marketplace-listing-offer

## Authentication

- `Authorization` header (bearer token, required) — OAuth 2.0 client credentials. Request an access token at `POST /partner/v1/oauth/token` (`grant_type=client_credentials`) with the application's client secret or a `private_key_jwt` assertion, then send it as `Authorization: Bearer evpa_live_…` (or `evpa_test_…` for a sandbox application). Tokens are opaque and short lived (see `expires_in`); there is no refresh token. Each operation lists the scopes it requires.

## Request

### Path parameters

- `creatorId` (string, required) — The creator profile id — the ONLY source of the creator a request acts for.
- `listingRef` (string, required)

### Headers

- `X-Creator-Id` (string, optional) — Optional echo of the path `creatorId`; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.
- `Idempotency-Key` (string, required) — Required on every marketplace write: 1..200 characters, otherwise `400 IDEMPOTENCY_KEY_REQUIRED`. The same key with the same request answers the first outcome again (`200`); with a different request it is `409 DIGEST_CONFLICT`.
- `Partner-Approval-Id` (string, optional) — The `approvalId` a previous `202 APPROVAL_REQUIRED` returned, for an operation your application may run only with approval. Re-send it with the same payload once a person has approved. A blank value is no approval. The approval is spent once, for exactly that agency, application, creator, operation and payload digest, the same amount and currency, and at most the units it was given for. It is claimed for the request's `Idempotency-Key` (required) and becomes final when the operation succeeds: - A refusal before the effect, a `4xx` or `429`, hands it back for your next attempt. - A `5xx`, `503` included, keeps it claimed for this key, because the effect may have happened. It is handed back only when EVVA knows nothing was done. - The same key re-sent replays the request and never has a second effect. You get the stored result where the operation keeps one, otherwise `409 APPROVAL_CONSUMED` with `details.replay: true`: read the resource to see the result. - Another key is `409 APPROVAL_CONSUMED`. When the approval cannot be used, the request is refused with `403` (`APPROVAL_INVALID`, `APPROVAL_MISMATCH` or `APPROVAL_DECLINED`) or `409` (`APPROVAL_PENDING`, `APPROVAL_EXPIRED` or `APPROVAL_CONSUMED`). See [action approval](/approvals).

### Body (application/json)

This endpoint expects a ReplaceMarketplaceListingOfferRequest.

- `expectedVersion` (string, required)
- `packages` (list of ReplaceMarketplaceListingOfferRequestPackagesItems, required)
- `addons` (list of ReplaceMarketplaceListingOfferRequestAddonsItems, required)

## Response

### 200

OK.

- `map from string to any`

### 202

The action waits for an authorised person of the agency, and nothing was done. It waits because the agency has no policy for it, its policy requires approval, or the action is over the agency's own automatic limit (`LIMIT_EXCEEDED`). Once an `approval.decided` event approves it, re-send the same request with `Partner-Approval-Id: <approvalId>`. See [action approval](/approvals).

- `code` (enum, required)
  - Allowed values: `APPROVAL_REQUIRED`
- `error` (string, required)
- `approvalId` (string, required)
- `status` (enum, required) — The status of an approval request. Reads show the effective status. - `PENDING` becomes `APPROVED`, `DECLINED`, `EXPIRED` or `REVOKED`. - `APPROVED` becomes `CONSUMED`, `EXPIRED` or `REVOKED`. - `REVOKED` means the request was voided: its access was withdrawn (grant or consent link), the application or agency stopped, the creator was held or restricted, or the policy that governed it was replaced. `revokedReason` says which.
  - Allowed values: `PENDING`, `APPROVED`, `DECLINED`, `EXPIRED`, `CONSUMED`, `REVOKED`
- `reason` (enum, required) — Why the action was not automatic: no policy (the default), a policy that asks for approval, or over a limit.
  - Allowed values: `NO_POLICY`, `POLICY_REQUIRES_APPROVAL`, `LIMIT_EXCEEDED`
- `expiresAt` (datetime, required)
- `requestId` (string, optional, nullable)

## Errors

### 400 Bad Request Error

Invalid or missing parameters: `INVALID_REQUEST` (`details` names the fields), or a more specific code of the operation.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 401 Unauthorized Error

Token missing, malformed, expired or revoked: `INVALID_TOKEN` (or `UNAUTHORIZED` when no bearer token was sent). Request a new token and retry.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 403 Forbidden Error

Not your creator (`GRANT_REVOKED`, `INSUFFICIENT_SCOPE`, …), or the creator's account status blocks marketplace offers (`CREATOR_SUSPENDED`).

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 404 Not Found Error

No such resource, or it belongs to another creator: `NOT_FOUND` or a more specific code.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 409 Conflict Error

Conflicts with the current state: `IDEMPOTENCY_KEY_REUSED` (the key was used for a different request), an approval that is still pending or already used, or a more specific code of the operation.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 429 Too Many Requests Error

Rate limited: `RATE_LIMIT_EXCEEDED`. Wait `Retry-After` seconds before retrying.

- `code` (enum, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
  - Allowed values: `RATE_LIMIT_EXCEEDED`, `TOO_MANY_MESSAGES`
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (RateLimitErrorDetails, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 500 Internal Server Error

Unexpected server error: `INTERNAL_ERROR`. Nothing internal is disclosed; quote the `X-Request-Id` when you report it.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 503 Service Unavailable Error

Temporarily unavailable: `SERVICE_UNAVAILABLE`, `TEMPORARILY_UNAVAILABLE`, `MEDIA_STORAGE_UNAVAILABLE` or `CREATOR_STANDING_UNAVAILABLE`. Retry after `Retry-After` seconds.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

## Types

### ReplaceMarketplaceListingOfferRequestPackagesItems

- `tier` (string, required)
- `title` (string, required)
- `description` (string, required)
- `price` (MarketplaceMoney, required)
- `delivery` (ReplaceMarketplaceListingOfferRequestPackagesItemsDelivery, required)
- `revisions` (ReplaceMarketplaceListingOfferRequestPackagesItemsRevisions, required)

### ReplaceMarketplaceListingOfferRequestAddonsItems

- `addonRef` (string, required)
- `title` (string, required)
- `price` (MarketplaceMoney, required)
- `deliveryExtraDays` (integer, required)
- `revisionExtra` (integer, required)

### RateLimitErrorDetails

Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

- `retryAfterSec` (integer, required)
- `level` (enum, optional) — The DM send limit that refused the message, set only with `TOO_MANY_MESSAGES`. It is never a quota, a count or a key. - `conversation` — one side of one thread. - `sender` — a person's own ceiling; it does not apply to applications. - `creator` — everything sent for the creator, studio included. - `application` — everything your application sends. - `agency` — everything your agency sends. - `platform` — the agency's fair share of the platform: its throughput or its concurrency. See [rate limits](/authentication/rate-limits).
  - Allowed values: `conversation`, `sender`, `creator`, `application`, `agency`, `platform`

### MarketplaceMoney

- `minor` (string, required) — Minor units as a decimal string (never a JSON number).
- `currency` (string, required)

### ReplaceMarketplaceListingOfferRequestPackagesItemsDelivery

- `days` (integer, required)

### ReplaceMarketplaceListingOfferRequestPackagesItemsRevisions

- `includedRevisions` (integer, required)
- `unlimited` (boolean, required)

## Examples

### Marketplace_replaceMarketplaceListingOffer_example

**Request**

```json
{
  "expectedVersion": "6",
  "packages": [
    {
      "tier": "BASIC",
      "title": "Short hello",
      "description": "A 30-second personalised greeting.",
      "price": {
        "minor": "3000",
        "currency": "USD"
      },
      "delivery": {
        "days": 5
      },
      "revisions": {
        "includedRevisions": 0,
        "unlimited": false
      }
    },
    {
      "tier": "STANDARD",
      "title": "Video message",
      "description": "Up to 2 minutes, with the details you choose.",
      "price": {
        "minor": "4500",
        "currency": "USD"
      },
      "delivery": {
        "days": 5
      },
      "revisions": {
        "includedRevisions": 1,
        "unlimited": false
      }
    },
    {
      "tier": "PREMIUM",
      "title": "Extended video",
      "description": "Up to 5 minutes, planned with you in advance.",
      "price": {
        "minor": "9000",
        "currency": "USD"
      },
      "delivery": {
        "days": 7
      },
      "revisions": {
        "includedRevisions": 2,
        "unlimited": false
      }
    }
  ],
  "addons": [
    {
      "addonRef": "rush",
      "title": "Delivery within 24 hours",
      "price": {
        "minor": "1500",
        "currency": "USD"
      },
      "deliveryExtraDays": -4,
      "revisionExtra": 0
    },
    {
      "addonRef": "extra-revision",
      "title": "One extra revision",
      "price": {
        "minor": "800",
        "currency": "USD"
      },
      "deliveryExtraDays": 1,
      "revisionExtra": 1
    }
  ]
}
```

**Response**

```json
{
  "listing": {
    "archivedAt": null,
    "coverMediaAssetRef": "cm4rb5k8e000fqz8wd3s7g2lx",
    "createdAt": "2026-11-27T09:12:44.501Z",
    "creatorRef": "cm4r7k2xq0001qz8w3n5v6b2d",
    "listingRef": "3f6c2a1e-8b4d-4c7a-9e15-6d2b7f0a9c41",
    "presentation": {
      "buyerInstructions": "Tell me the name to use, the occasion, and anything you would like me to mention.",
      "description": "A short video message recorded just for you: up to 2 minutes, with the name and the occasion you choose.",
      "title": "Personalised video shout-out"
    },
    "publishedAt": "2026-11-27T10:03:18.226Z",
    "serviceKind": "CUSTOM_VIDEO",
    "state": "PUBLISHED",
    "terms": {
      "cancellationPolicy": null,
      "deliverable": {
        "kind": "DIGITAL_CONTENT",
        "quantity": 1
      },
      "delivery": {
        "days": 5
      },
      "price": {
        "currency": "USD",
        "minor": "4500"
      },
      "revisions": {
        "includedRevisions": 1,
        "unlimited": false
      }
    },
    "updatedAt": "2026-12-02T09:02:41.877Z",
    "version": "7"
  },
  "offer": {
    "addons": [
      {
        "addonRef": "rush",
        "deliveryExtraDays": -4,
        "price": {
          "currency": "USD",
          "minor": "1500"
        },
        "revisionExtra": 0,
        "title": "Delivery within 24 hours"
      },
      {
        "addonRef": "extra-revision",
        "deliveryExtraDays": 1,
        "price": {
          "currency": "USD",
          "minor": "800"
        },
        "revisionExtra": 1,
        "title": "One extra revision"
      }
    ],
    "packages": [
      {
        "delivery": {
          "days": 5
        },
        "description": "A 30-second personalised greeting.",
        "price": {
          "currency": "USD",
          "minor": "3000"
        },
        "revisions": {
          "includedRevisions": 0,
          "unlimited": false
        },
        "tier": "BASIC",
        "title": "Short hello"
      },
      {
        "delivery": {
          "days": 5
        },
        "description": "Up to 2 minutes, with the details you choose.",
        "price": {
          "currency": "USD",
          "minor": "4500"
        },
        "revisions": {
          "includedRevisions": 1,
          "unlimited": false
        },
        "tier": "STANDARD",
        "title": "Video message"
      },
      {
        "delivery": {
          "days": 7
        },
        "description": "Up to 5 minutes, planned with you in advance.",
        "price": {
          "currency": "USD",
          "minor": "9000"
        },
        "revisions": {
          "includedRevisions": 2,
          "unlimited": false
        },
        "tier": "PREMIUM",
        "title": "Extended video"
      }
    ]
  }
}
```

**SDK Code**

```python Marketplace_replaceMarketplaceListingOffer_example
import requests

url = "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/marketplace/listings/3f6c2a1e-8b4d-4c7a-9e15-6d2b7f0a9c41/offer"

payload = {
    "expectedVersion": "6",
    "packages": [
        {
            "tier": "BASIC",
            "title": "Short hello",
            "description": "A 30-second personalised greeting.",
            "price": {
                "minor": "3000",
                "currency": "USD"
            },
            "delivery": { "days": 5 },
            "revisions": {
                "includedRevisions": 0,
                "unlimited": False
            }
        },
        {
            "tier": "STANDARD",
            "title": "Video message",
            "description": "Up to 2 minutes, with the details you choose.",
            "price": {
                "minor": "4500",
                "currency": "USD"
            },
            "delivery": { "days": 5 },
            "revisions": {
                "includedRevisions": 1,
                "unlimited": False
            }
        },
        {
            "tier": "PREMIUM",
            "title": "Extended video",
            "description": "Up to 5 minutes, planned with you in advance.",
            "price": {
                "minor": "9000",
                "currency": "USD"
            },
            "delivery": { "days": 7 },
            "revisions": {
                "includedRevisions": 2,
                "unlimited": False
            }
        }
    ],
    "addons": [
        {
            "addonRef": "rush",
            "title": "Delivery within 24 hours",
            "price": {
                "minor": "1500",
                "currency": "USD"
            },
            "deliveryExtraDays": -4,
            "revisionExtra": 0
        },
        {
            "addonRef": "extra-revision",
            "title": "One extra revision",
            "price": {
                "minor": "800",
                "currency": "USD"
            },
            "deliveryExtraDays": 1,
            "revisionExtra": 1
        }
    ]
}
headers = {
    "Idempotency-Key": "5b54edc5-4cd3-4c61-960d-1cccd33d4790",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```go Marketplace_replaceMarketplaceListingOffer_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/marketplace/listings/3f6c2a1e-8b4d-4c7a-9e15-6d2b7f0a9c41/offer"

	payload := strings.NewReader("{\n  \"expectedVersion\": \"6\",\n  \"packages\": [\n    {\n      \"tier\": \"BASIC\",\n      \"title\": \"Short hello\",\n      \"description\": \"A 30-second personalised greeting.\",\n      \"price\": {\n        \"minor\": \"3000\",\n        \"currency\": \"USD\"\n      },\n      \"delivery\": {\n        \"days\": 5\n      },\n      \"revisions\": {\n        \"includedRevisions\": 0,\n        \"unlimited\": false\n      }\n    },\n    {\n      \"tier\": \"STANDARD\",\n      \"title\": \"Video message\",\n      \"description\": \"Up to 2 minutes, with the details you choose.\",\n      \"price\": {\n        \"minor\": \"4500\",\n        \"currency\": \"USD\"\n      },\n      \"delivery\": {\n        \"days\": 5\n      },\n      \"revisions\": {\n        \"includedRevisions\": 1,\n        \"unlimited\": false\n      }\n    },\n    {\n      \"tier\": \"PREMIUM\",\n      \"title\": \"Extended video\",\n      \"description\": \"Up to 5 minutes, planned with you in advance.\",\n      \"price\": {\n        \"minor\": \"9000\",\n        \"currency\": \"USD\"\n      },\n      \"delivery\": {\n        \"days\": 7\n      },\n      \"revisions\": {\n        \"includedRevisions\": 2,\n        \"unlimited\": false\n      }\n    }\n  ],\n  \"addons\": [\n    {\n      \"addonRef\": \"rush\",\n      \"title\": \"Delivery within 24 hours\",\n      \"price\": {\n        \"minor\": \"1500\",\n        \"currency\": \"USD\"\n      },\n      \"deliveryExtraDays\": -4,\n      \"revisionExtra\": 0\n    },\n    {\n      \"addonRef\": \"extra-revision\",\n      \"title\": \"One extra revision\",\n      \"price\": {\n        \"minor\": \"800\",\n        \"currency\": \"USD\"\n      },\n      \"deliveryExtraDays\": 1,\n      \"revisionExtra\": 1\n    }\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Idempotency-Key", "5b54edc5-4cd3-4c61-960d-1cccd33d4790")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```php Marketplace_replaceMarketplaceListingOffer_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/marketplace/listings/3f6c2a1e-8b4d-4c7a-9e15-6d2b7f0a9c41/offer', [
  'body' => '{
  "expectedVersion": "6",
  "packages": [
    {
      "tier": "BASIC",
      "title": "Short hello",
      "description": "A 30-second personalised greeting.",
      "price": {
        "minor": "3000",
        "currency": "USD"
      },
      "delivery": {
        "days": 5
      },
      "revisions": {
        "includedRevisions": 0,
        "unlimited": false
      }
    },
    {
      "tier": "STANDARD",
      "title": "Video message",
      "description": "Up to 2 minutes, with the details you choose.",
      "price": {
        "minor": "4500",
        "currency": "USD"
      },
      "delivery": {
        "days": 5
      },
      "revisions": {
        "includedRevisions": 1,
        "unlimited": false
      }
    },
    {
      "tier": "PREMIUM",
      "title": "Extended video",
      "description": "Up to 5 minutes, planned with you in advance.",
      "price": {
        "minor": "9000",
        "currency": "USD"
      },
      "delivery": {
        "days": 7
      },
      "revisions": {
        "includedRevisions": 2,
        "unlimited": false
      }
    }
  ],
  "addons": [
    {
      "addonRef": "rush",
      "title": "Delivery within 24 hours",
      "price": {
        "minor": "1500",
        "currency": "USD"
      },
      "deliveryExtraDays": -4,
      "revisionExtra": 0
    },
    {
      "addonRef": "extra-revision",
      "title": "One extra revision",
      "price": {
        "minor": "800",
        "currency": "USD"
      },
      "deliveryExtraDays": 1,
      "revisionExtra": 1
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '5b54edc5-4cd3-4c61-960d-1cccd33d4790',
  ],
]);

echo $response->getBody();
```

### Marketplace_replaceMarketplaceListingOffer_example

**Request**

```json
{
  "expectedVersion": "6",
  "packages": [
    {
      "tier": "BASIC",
      "title": "Short hello",
      "description": "A 30-second personalised greeting.",
      "price": {
        "minor": "3000",
        "currency": "USD"
      },
      "delivery": {
        "days": 5
      },
      "revisions": {
        "includedRevisions": 0,
        "unlimited": false
      }
    },
    {
      "tier": "STANDARD",
      "title": "Video message",
      "description": "Up to 2 minutes, with the details you choose.",
      "price": {
        "minor": "4500",
        "currency": "USD"
      },
      "delivery": {
        "days": 5
      },
      "revisions": {
        "includedRevisions": 1,
        "unlimited": false
      }
    },
    {
      "tier": "PREMIUM",
      "title": "Extended video",
      "description": "Up to 5 minutes, planned with you in advance.",
      "price": {
        "minor": "9000",
        "currency": "USD"
      },
      "delivery": {
        "days": 7
      },
      "revisions": {
        "includedRevisions": 2,
        "unlimited": false
      }
    }
  ],
  "addons": [
    {
      "addonRef": "rush",
      "title": "Delivery within 24 hours",
      "price": {
        "minor": "1500",
        "currency": "USD"
      },
      "deliveryExtraDays": -4,
      "revisionExtra": 0
    },
    {
      "addonRef": "extra-revision",
      "title": "One extra revision",
      "price": {
        "minor": "800",
        "currency": "USD"
      },
      "deliveryExtraDays": 1,
      "revisionExtra": 1
    }
  ]
}
```

**Response**

```json
{
  "approvalId": "apr_8sKq2VnT4xLm7RcB1pYw9ZdH",
  "code": "APPROVAL_REQUIRED",
  "error": "This action needs the approval of an authorised person",
  "expiresAt": "2026-12-03T14:31:00.000Z",
  "reason": "NO_POLICY",
  "requestId": "2ac01c39-6b45-4a0b-8db1-be67984d2cac",
  "status": "PENDING"
}
```

**SDK Code**

```python Marketplace_replaceMarketplaceListingOffer_example
import requests

url = "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/marketplace/listings/3f6c2a1e-8b4d-4c7a-9e15-6d2b7f0a9c41/offer"

payload = {
    "expectedVersion": "6",
    "packages": [
        {
            "tier": "BASIC",
            "title": "Short hello",
            "description": "A 30-second personalised greeting.",
            "price": {
                "minor": "3000",
                "currency": "USD"
            },
            "delivery": { "days": 5 },
            "revisions": {
                "includedRevisions": 0,
                "unlimited": False
            }
        },
        {
            "tier": "STANDARD",
            "title": "Video message",
            "description": "Up to 2 minutes, with the details you choose.",
            "price": {
                "minor": "4500",
                "currency": "USD"
            },
            "delivery": { "days": 5 },
            "revisions": {
                "includedRevisions": 1,
                "unlimited": False
            }
        },
        {
            "tier": "PREMIUM",
            "title": "Extended video",
            "description": "Up to 5 minutes, planned with you in advance.",
            "price": {
                "minor": "9000",
                "currency": "USD"
            },
            "delivery": { "days": 7 },
            "revisions": {
                "includedRevisions": 2,
                "unlimited": False
            }
        }
    ],
    "addons": [
        {
            "addonRef": "rush",
            "title": "Delivery within 24 hours",
            "price": {
                "minor": "1500",
                "currency": "USD"
            },
            "deliveryExtraDays": -4,
            "revisionExtra": 0
        },
        {
            "addonRef": "extra-revision",
            "title": "One extra revision",
            "price": {
                "minor": "800",
                "currency": "USD"
            },
            "deliveryExtraDays": 1,
            "revisionExtra": 1
        }
    ]
}
headers = {
    "Idempotency-Key": "5b54edc5-4cd3-4c61-960d-1cccd33d4790",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```go Marketplace_replaceMarketplaceListingOffer_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/marketplace/listings/3f6c2a1e-8b4d-4c7a-9e15-6d2b7f0a9c41/offer"

	payload := strings.NewReader("{\n  \"expectedVersion\": \"6\",\n  \"packages\": [\n    {\n      \"tier\": \"BASIC\",\n      \"title\": \"Short hello\",\n      \"description\": \"A 30-second personalised greeting.\",\n      \"price\": {\n        \"minor\": \"3000\",\n        \"currency\": \"USD\"\n      },\n      \"delivery\": {\n        \"days\": 5\n      },\n      \"revisions\": {\n        \"includedRevisions\": 0,\n        \"unlimited\": false\n      }\n    },\n    {\n      \"tier\": \"STANDARD\",\n      \"title\": \"Video message\",\n      \"description\": \"Up to 2 minutes, with the details you choose.\",\n      \"price\": {\n        \"minor\": \"4500\",\n        \"currency\": \"USD\"\n      },\n      \"delivery\": {\n        \"days\": 5\n      },\n      \"revisions\": {\n        \"includedRevisions\": 1,\n        \"unlimited\": false\n      }\n    },\n    {\n      \"tier\": \"PREMIUM\",\n      \"title\": \"Extended video\",\n      \"description\": \"Up to 5 minutes, planned with you in advance.\",\n      \"price\": {\n        \"minor\": \"9000\",\n        \"currency\": \"USD\"\n      },\n      \"delivery\": {\n        \"days\": 7\n      },\n      \"revisions\": {\n        \"includedRevisions\": 2,\n        \"unlimited\": false\n      }\n    }\n  ],\n  \"addons\": [\n    {\n      \"addonRef\": \"rush\",\n      \"title\": \"Delivery within 24 hours\",\n      \"price\": {\n        \"minor\": \"1500\",\n        \"currency\": \"USD\"\n      },\n      \"deliveryExtraDays\": -4,\n      \"revisionExtra\": 0\n    },\n    {\n      \"addonRef\": \"extra-revision\",\n      \"title\": \"One extra revision\",\n      \"price\": {\n        \"minor\": \"800\",\n        \"currency\": \"USD\"\n      },\n      \"deliveryExtraDays\": 1,\n      \"revisionExtra\": 1\n    }\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Idempotency-Key", "5b54edc5-4cd3-4c61-960d-1cccd33d4790")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```php Marketplace_replaceMarketplaceListingOffer_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/marketplace/listings/3f6c2a1e-8b4d-4c7a-9e15-6d2b7f0a9c41/offer', [
  'body' => '{
  "expectedVersion": "6",
  "packages": [
    {
      "tier": "BASIC",
      "title": "Short hello",
      "description": "A 30-second personalised greeting.",
      "price": {
        "minor": "3000",
        "currency": "USD"
      },
      "delivery": {
        "days": 5
      },
      "revisions": {
        "includedRevisions": 0,
        "unlimited": false
      }
    },
    {
      "tier": "STANDARD",
      "title": "Video message",
      "description": "Up to 2 minutes, with the details you choose.",
      "price": {
        "minor": "4500",
        "currency": "USD"
      },
      "delivery": {
        "days": 5
      },
      "revisions": {
        "includedRevisions": 1,
        "unlimited": false
      }
    },
    {
      "tier": "PREMIUM",
      "title": "Extended video",
      "description": "Up to 5 minutes, planned with you in advance.",
      "price": {
        "minor": "9000",
        "currency": "USD"
      },
      "delivery": {
        "days": 7
      },
      "revisions": {
        "includedRevisions": 2,
        "unlimited": false
      }
    }
  ],
  "addons": [
    {
      "addonRef": "rush",
      "title": "Delivery within 24 hours",
      "price": {
        "minor": "1500",
        "currency": "USD"
      },
      "deliveryExtraDays": -4,
      "revisionExtra": 0
    },
    {
      "addonRef": "extra-revision",
      "title": "One extra revision",
      "price": {
        "minor": "800",
        "currency": "USD"
      },
      "deliveryExtraDays": 1,
      "revisionExtra": 1
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '5b54edc5-4cd3-4c61-960d-1cccd33d4790',
  ],
]);

echo $response->getBody();
```