---
title: "Create product"
method: POST
path: "/api/products"
tags: ["products"]
---

# Create product

`POST /api/products`

The elopage API allows to initiate and complete payments using optimized checkout interfaces. In order to process payments you first need to create a product. After the product creation you will receive a 'url_to_pay' parameter to which you must redirect your customer to complete payment. Thereafter you need to redirect the customer back to your success URL and pass on parameters and information. Using webhooks (webhook_url), you will get instant notifications about the status of the payment.

## Request body

- PostApiProducts — Create product
  - `key` string — API KEY
  - `secret` string — API SECRET
  - `name` string, required — Product name
  - `success_url` string
  - `cancel_url` string
  - `error_url` string
  - `webhook_endpoint_ids` string[]
  - `webhook_url` string
  - `page_header` string
  - `page_footer` string
  - `free` boolean
  - `active` boolean
  - `private` boolean
  - `performance_period` boolean
  - `performance_period_type` 'purchase_date' | 'custom_text' | 'relative_date'
  - `performance_period_text` string
  - `form` 'download' | 'course' | 'event' | 'service'
  - `webhook_endpoint_form` 'all_webhook_endpoints' | 'selected_webhook_endpoints' | 'no_webhook_endpoints'
  - `forward` object
    - `first_name` string
    - `last_name` string
    - `email` string
    - `coupon` string
    - `campaign_id` string
  - `team_members` object[]
    - `id` integer, required
    - `commission` integer
  - `prices_attributes` object[] — An array of prices
    - `id` integer
    - `position` integer
    - `pricing_plan_id` integer, required
  - `success_email` object
    - `subject_en` string
    - `subject_de` string
    - `body_en` string
    - `body_de` string

## Response `201`

Create product

---

[API](https://skmtc.dev/myablefy/apis/api-title.md) · [All operations](https://skmtc.dev/myablefy/apis/api-title/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/myablefy/api-title/revisions/4b34da2462ed/schema)
