Payments

Create Payment

Единый путь создания платежа: scope=user (по умолчанию) или scope=project (только admin/owner).

post/api/payments/

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/payments/
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Headers

Idempotency-Keystring nullable

Request body

amountnumber required

Payment amount

currencystring

Currency code

descriptionstring

Description

intentstring nullable

sale | top_up | subscription | energy_pack | studio_diagnostic

destination_walletstring nullable

Target wallet for top_up

preferred_methodstring nullable

card | stripe | tochka | wallet

methodstring nullable

Alias for preferred_method

countrystring nullable

ISO country for provider matrix

scopestring nullable

user | project

idempotency_keystring nullable

Idempotency key

metadataobject nullable

Metadata

typestring nullable

Payment type

recipient_project_idinteger nullable

Recipient project for sale

use_project_keysboolean nullable

Use project BYOK

success_urlstring nullable

Redirect URL on payment success (Tochka/redirect providers)

fail_urlstring nullable

Redirect URL on payment failure (Tochka/redirect providers)

notification_urlstring nullable

Server callback URL for provider webhooks (overrides auto-derived URL)

base_urlstring nullable

Base URL of this deployment, used to derive notification_url when notification_url is not provided

checkout_session_idstring nullable

Commerce checkout session copied onto the provider

seller_user_idinteger nullable

Seller credited on the personal wallet

buyer_user_idinteger nullable

Buyer on the checkout session

buyer_project_idinteger nullable

Buyer project on the checkout session

funding_lanestring nullable

personal | treasury

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.