Invoices

Получение контракта по идентификатору

get/api/v1/invoices/{id}

Request

  • Base URL: https://gate.lava.top (the document declares no server; this is the origin it was published from)
  • URL: https://gate.lava.top/api/v1/invoices/{id}
  • Auth: API key in header X-Api-Key

Path parameters

idstring uuid required

Идентификатор контракта

Response

Контракт

idstring uuid

Идентификатор контракта

type'ONE_TIME' | 'RECURRING'

Тип контракта

datetimestring date-time

Время исполнения контракта (если пусто, то время создания)

status'NEW' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'

Статус контракта

subscriptionStatus'ACTIVE' | 'CANCELLED' | 'FAILED'

Статус подписки

Example response

{
  "buyer": {
    "email": "test@gmail.com",
    "cardMask": "**** **** **** 1234"
  },
  "product": {
    "name": "Урок по психологии",
    "offer": "Подписка на 12 мес."
  },
  "clientUtm": {
    "utm_source": "google",
    "utm_medium": "cpc",
    "utm_campaign": "summer_sale",
    "utm_term": "running_shoes",
    "utm_content": "homepage_banner"
  }
}

Changes

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