Invoices

Create Invoice

Создание инвойса

Body: - type: payment | transfer | exchange - to_user_id: ID получателя - to_wallet_id: ID кошелька получателя - amount: Сумма (decimal string) - currency: Валюта - description: Описание - expires_days: Количество дней до истечения (по умолчанию 7) - from_wallet_id: ID кошелька отправителя (для transfer) - items: Элементы обмена (для exchange) - exchange_rate: Курс обмена (для exchange, опционально)

post/api/invoices

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/invoices
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

typestring required

payment | transfer | exchange

to_user_idinteger required

Recipient user ID

to_wallet_idstring required

Recipient wallet ID

amountstring required

Amount as decimal string

currencystring

Currency code

descriptionstring

Description

expires_daysinteger nullable

Days until expiry

from_wallet_idstring nullable

Sender wallet (transfer)

from_user_idinteger nullable

Sender user (transfer/exchange)

itemsobject[] nullable

Exchange items

exchange_rateobject nullable

Exchange rate

Response

Successful Response

unknown required

Changes

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