Справочник APIАктивации

Включить поверх действующего тарифа клиента

POSThttps://api.astrum.shop/v1/activations/{activation_id}/force
Область activations:writeНужен Idempotency-Key

Только по явному согласию клиента: оплаченный им остаток у сервиса сгорает.

Параметры

activation_idв пути · uuidобязательно

Тело запроса

application/json
confirmtrueобязательно

Только true: клиент согласен потерять оплаченный остаток тарифа у сервиса.

Ответы

Успешно

idstring
order_idstring | null
item_refstring | null
product_idstring | null
statestring
credential_kindstring | null
hintstring
full_sessionboolean
needs_inputboolean
needs_new_credentialboolean
waits_for_buyerboolean
can_retryboolean
can_forceboolean
reason_codestring | null
reason_textstring | null
reason_untilstring | null
buyer_notestring | null
buyer_note_atstring | null
manualboolean
verification_urlstring | null
queue_positioninteger | null
new_accountboolean
awaiting_login_linkboolean
login_link_requested_atstring | null
login_link_receivedboolean
updated_atstring | null

Общие для всех методов: 401 unauthenticated, 403 scope_missing, 403 ip_not_allowed, 403 account_suspended, 429 rate_limited, 503 api_disabled, 500 internal_error. Подробно — в разделе «Ошибки».

тестовые доллары,
ключ ask_test_…
curl https://api.astrum.shop/v1/activations/$ACTIVATION_ID/force -X POST \
  -H "Authorization: Bearer $ASTRUM_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "confirm": true
  }'