Редактирование заявки после подтверждения

Метод возвращает ответ о статусе изменений, запрошенных через метод claims/apply-changes/request.

Request

POST

b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/apply-changes/result

Адрес сервиса

Query parameters

Name

Description

claim_id

Type: string

ID заявки, полученный на этапе создания заявки

Min length: 32

Max length: 64

Example: ``

request_id

Type: string

Уникальный идентификатор запроса на редактирование (токен идемпотентности)

Min length: 1

Max length: 63

Example: ``

Headers

Name

Description

Accept-Language

Type: string

Предпочитаемый язык ответа

Например:
ru — русский
en — английский

Example: ru

Responses

200 OK

OK

Body

application/json
{
  "changes": [
    {
      "id": 0,
      "kind": "example",
      "status": "new",
      "error": {
        "code": "apply_change_error",
        "message": "State mismatch error",
        "details": "bad item at pos 2"
      }
    }
  ]
}

Name

Description

changes

Type: ChangeResponse[]

Example
[
  {
    "id": 0,
    "kind": "example",
    "status": "new",
    "error": {
      "code": "apply_change_error",
      "message": "State mismatch error",
      "details": "bad item at pos 2"
    }
  }
]

ChangeStatus

Статус обработки изменения

Type: string

Enum: new, pending, applied, failed

ErrorWithDetails

Информация об ошибке

Name

Description

code

Type: string

Код ошибки

Enum: unknown_error, apply_change_error, inappropriate_point, invalid_destination_point, invalid_item_destination_point, invalid_item_source_point, invalid_source_point, not_allowed, invalid_phone_incorrect_symbol, invalid_phone_must_start_plus_symbol, invalid_phone_size_incorrect, country_phone_code_not_supported, invalid_post_payment, max_order_cost_exceeded, cargo_payments_update_error

message

Type: string

Описание ошибки

Example: State mismatch error

details

Type: string

Нелокализованное сообщение об ошибке

Example: bad item at pos 2

Example
{
  "code": "apply_change_error",
  "message": "State mismatch error",
  "details": "bad item at pos 2"
}

ChangeResponse

Name

Description

id

Type: integer

Уникальный идентификатор изменения (int64)

kind

Type: string

Тип изменения

Example: example

status

Type: ChangeStatus

Статус обработки изменения

Enum: new, pending, applied, failed

error

Type: ErrorWithDetails

Описание ошибки (для статуса failed)

Информация об ошибке

Example
{
  "code": "apply_change_error",
  "message": "State mismatch error",
  "details": "bad item at pos 2"
}
Example
{
  "id": 0,
  "kind": "example",
  "status": "new",
  "error": {
    "code": "apply_change_error",
    "message": "State mismatch error",
    "details": "bad item at pos 2"
  }
}

404 Not Found

Изменение не найдено

Body

application/json
{
  "code": "not_found",
  "message": "Заявка не найдена"
}

Name

Description

code

Type: string

Код ошибки

Enum: unknown_error, not_found

message

Type: string

Описание ошибки

Example: Заявка не найдена

No longer supported, please use an alternative and newer version.