К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/api-op-refundorder.mdиндекс документации — /llms.txt

refundOrder

Обновлено

POST /api/v1/orders/{order_id}/refunds

refundOrder

Авторизация и права

Scopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.

ПолеЗначение
security.0.hubApiKey[]
security.1.hubBearer[]
securitySchemes.hubApiKey.in"header"
securitySchemes.hubApiKey.name"X-Api-Key"
securitySchemes.hubApiKey.type"apiKey"
securitySchemes.hubBearer.scheme"bearer"
securitySchemes.hubBearer.type"http"
x-required-scopes["orders:write"]

Параметры запроса

ПолеЗначение
0.description"Required for POST with a body. Same-key replay; changed body returns 422."
0.in"header"
0.name"Idempotency-Key"
0.requiredtrue
0.schema0.schema
1.in"path"
1.name"order_id"
1.requiredtrue
1.schema1.schema

Тело запроса

ПолеЗначение
content.application/json.schemaRefundRequest
requiredtrue

Ответы

ПолеЗначение
200.content.application/json.schemaRefundResponse
200.description"A body with scope prepares a refund and asks the owner for approval; a body with action_id runs the approved one."

Ошибки

ПолеЗначение
400.content.application/problem+json.schemaProblemDetails
400.description"A strict body, path or query is rejected"
401.content.application/problem+json.schemaProblemDetails
401.description"Missing, invalid, expired or revoked authentication"
403.content.application/problem+json.schemaProblemDetails
403.description"Missing scope, or a credential that names no actor (FORBIDDEN)"
404.content.application/problem+json.schemaProblemDetails
404.description"The addressed object is not in this business"
409.content.application/problem+json.schemaProblemDetails
409.description"A conflict with the current state"
422.content.application/problem+json.schemaProblemDetails
422.description"A domain refusal with its own code"
429.content.application/problem+json.schemaProblemDetails
429.description"Per-tool rate limit exceeded"
500.content.application/problem+json.schemaProblemDetails
500.description"Unexpected failure"

Дополнительные условия

ПолеЗначение
description"A body with scope prepares a refund and asks the owner for approval; a body with action_id runs the approved one."
operationId"refundOrder"
tags["orders"]
x-idempotency"generic-cache"