---
title: "Create Order"
method: POST
path: "/api/v1/order/generate-payment-link"
tags: ["order"]
---

# Create Order

`POST /api/v1/order/generate-payment-link`

## Request

- Base URL: `https://api.scade.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.scade.pro/api/v1/order/generate-payment-link`
- Auth: HTTP basic

## Headers

- `x-company-id` string
- `x-auth-as-staff` boolean
- `x-owner-payment-flag` boolean
- `x-auth-token` string
- `x-company-username` string
- `accept-language` string

## Cookies

- `ory_kratos_session` string

## Request body

- CretePaymentLinkSchema
  - `offer_id` integer, required
  - `payment_method` string, required
  - `email` string
  - `redirect_success_url` string
  - `redirect_error_url` string
  - `custom_user_start_date` string, date-time
  - `ui_mode` string

## Response `201`

Successful Response

- PaymentLinkSchema
  - `link` string
  - `wallet` object
  - `order` OrderSchema
    - `id` integer, required
    - `amount` number
    - `amount_eur` number
    - `currency` string
    - `status` 1 | 2 | 3 | 4 | 5: An enumeration.
    - `offer_id` integer
    - `created` string, date-time
    - `payment_mode_type` 'PAYMENT' | 'SUBSCRIPTION', required: An enumeration.
    - `custom_user_start_date` string, date-time
    - `payment_method` string
    - `payment_info` PublicCreatePaymentMeta
      - `public_create_payment_meta` object
    - `payment_owner_type` 1 | 2: An enumeration.
  - `client_secret` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/scade/apis/scade-prod.md) - [All operations](https://skmtc.dev/scade/apis/scade-prod/llms.txt) - [OpenAPI document](https://skmtc.dev/scade/apis/scade-prod/revisions/f3d7ba71abbc?raw)
