POST
/
v1
/
products
curl --request POST \
  --url https://api.hyperline.co/v1/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Product name",
  "description": "Product internal description",
  "description_display_interval_dates": true,
  "public_description": "Product public description",
  "translations": {
    "fr": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "en": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "de": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "it": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "nl": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "es": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "pt": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "pl": {
      "name": "<string>",
      "public_description": "<string>"
    }
  },
  "is_available_on_demand": true,
  "is_available_on_subscription": true,
  "custom_properties": {},
  "accounting": {},
  "type": "flat_fee",
  "price_configurations": [
    {
      "currency": "EUR",
      "country": "FR",
      "plan_id": "<string>",
      "billing_interval": {
        "period": "once"
      },
      "commitment_interval": {
        "period": "all"
      },
      "type": "fee",
      "prices": [
        {
          "type": "fee",
          "id": "<string>",
          "amount": 24000
        }
      ]
    }
  ]
}'
{
  "id": "itm_3kXODDF42QXtnL",
  "name": "Product name",
  "status": "active",
  "description": "Product internal description",
  "description_display_interval_dates": true,
  "public_description": "Product public description",
  "translations": {
    "fr": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "en": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "de": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "it": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "nl": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "es": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "pt": {
      "name": "<string>",
      "public_description": "<string>"
    },
    "pl": {
      "name": "<string>",
      "public_description": "<string>"
    }
  },
  "properties": {},
  "custom_properties": {},
  "accounting": {},
  "type": "flat_fee",
  "is_available_on_demand": true,
  "is_available_on_subscription": true,
  "price_configurations": [
    {
      "id": "<string>",
      "currency": "EUR",
      "country": "FR",
      "plan_id": "<string>",
      "billing_interval": {
        "period": "once"
      },
      "commitment_interval": {
        "period": "all"
      },
      "updated_at": "<string>",
      "type": "fee",
      "prices": [
        {
          "type": "fee",
          "id": "<string>",
          "amount": 24000
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create product payload

The body is of type object.

Response

201 - application/json

The newly created product

The response is of type object.