Hermos API

Copy Catalog To Live

Copies one test product (its settings and the selected plans with all their prices) to live. Live mode only; requires catalog:publish. dry_run (default true) previews and writes nothing. Execute answers 202 preparing while the payment processor creates missing identities, or 200 published. Cookie members supply Hms-Company and Hms-Livemode and omit Idempotency-Key; bearer callers supply it.

POST/catalog/copy_to_live

Copies one test product (its settings and the selected plans with all their prices) to live. Live mode only; requires catalog:publish. dry_run (default true) previews and writes nothing. Execute answers 202 preparing while the payment processor creates missing identities, or 200 published. Cookie members supply Hms-Company and Hms-Livemode and omit Idempotency-Key; bearer callers supply it.

Authorization

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/catalog/copy_to_live" \  -H "Content-Type: application/json" \  -d '{    "product": "string",    "include": {      "settings": true,      "plans": [        "string"      ]    }  }'
{  "data": {    "publication": "5ea4c50e-bd24-4e9b-b29d-17418eaef8be",    "status": "preview",    "preview_hash": "string",    "live_exists": true,    "selectable": {      "settings": {        "differs": true,        "forced": true      },      "plans": [        {          "ref": "string",          "name": "string",          "differs": true,          "live_exists": true        }      ]    },    "changes": [      {        "table": "string",        "id": "string",        "ref": "string",        "action": "string"      }    ],    "blocked": [      {        "path": [          "string"        ],        "rule": "string",        "ref": "string"      }    ],    "not_tried": [      "string"    ],    "failure": {      "rule": "string"    },    "operation": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "status": "string"    }  },  "request_id": "266ea41d-adf5-480b-af50-15b940c2b846"}