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

Состояние активации: что спросить у клиента и что дальше

GEThttps://api.astrum.shop/v1/activations/{activation_id}
Область orders:read

Что просить у клиента (credential_kind и подсказка hint), что происходит сейчас и можно ли повторить. Вид данных известен только после выдачи.

Параметры

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

Ответы

Успешно

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 \
  -H "Authorization: Bearer $ASTRUM_KEY"