---
metadata:
  - name: generator
    content: Diplodoc Platform v5.15.5
alternate:
  - https://delivery.yango.com/docs/en/api/express/openapi/ClaimsApplyChangesResult.md
---
> **Documentation Index:** Fetch the complete configuration index at https://delivery.yango.com/docs/en/llms.txt

<div class="openapi">

# Get the editing result after confirmation

The method returns a response about the status of changes requested via the method [claims/apply-changes/request](https://delivery.yango.com/docs/en/api/express/openapi/ClaimsApplyChangesRequest.md).

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-post);margin-bottom: 12px">

<div class="openapi__request">

POST {.openapi__method} 
```text translate=no
b2b.delivery.yango.tech/b2b/cargo/integration/v2/claims/apply-changes/result
```



</div>

Service URL

</div>

</div>

### Query parameters

#|||
 **Name** 
|
 **Description** 
||

||
 claim_id<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** string

Claim ID received at the claim creation stage<br>

*Min length:*{.openapi-description-annotation} `32`

*Max length:*{.openapi-description-annotation} `64`
 
||

||
 request_id<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** string

Unique edit request ID (idempotency token)<br>

*Min length:*{.openapi-description-annotation} `1`

*Max length:*{.openapi-description-annotation} `63`
 
|||#{.openapi-table}

### Headers

#|||
 **Name** 
|
 **Description** 
||

||
 Accept-Language<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** string

Preferred response language. Examples: "en" — English<br>Example: `en` 
|||#{.openapi-table}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}


```json translate=no
{
    "changes": [
        {
            "id": 0,
            "kind": "string",
            "status": "new",
            "error": {
                "code": "apply_change_error",
                "message": "State mismatch error",
                "details": "bad item at pos 2"
            }
        }
    ]
}
```


{% endcut %}


#|||
 **Name** 
|
 **Description** 
||

||
 changes<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** [ChangeResponse](#changeresponse)[] 
|||#{.openapi-table}

</div>

<div class="openapi-entity">

### ChangeResponse

#|||
 **Name** 
|
 **Description** 
||

||
 id<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** integer&lt;int64&gt;

Unique change ID (int64) 
||

||
 kind<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** string

Change type 
||

||
 status<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** [ChangeStatus](#changestatus)

Change processing status

*Enum:*{.openapi-description-annotation} `new`, `pending`, `applied`, `failed`
 
||

||
 error {.openapi-table-parameter-name} 
|
 **Type:** [ErrorWithDetails](#errorwithdetails)

Error description (for the failed status) 
|||#{.openapi-table}

</div>

<div class="openapi-entity">

### ChangeStatus

Change processing status

#|||
 **Type** 
|
 **Description** 
||

||
 [ChangeStatus](#changestatus) 
|
 

*Enum:*{.openapi-description-annotation} `new`, `pending`, `applied`, `failed`
 
|||#{.openapi-table}

</div>

<div class="openapi-entity">

### ErrorWithDetails

Error information

#|||
 **Name** 
|
 **Description** 
||

||
 code<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** string

Error code

*Example:*{.openapi-description-annotation} `apply_change_error`

*Enum:*{.openapi-description-annotation} `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<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** string

Error description

*Example:*{.openapi-description-annotation} `State mismatch error`
 
||

||
 details {.openapi-table-parameter-name} 
|
 **Type:** string

Non-localized error message

*Example:*{.openapi-description-annotation} `bad item at pos 2`
 
|||#{.openapi-table}

</div>

</div>

<div class="openapi__response__code__404">

## 404 Not Found

Change not found

<div class="openapi-entity">

### Body

{% cut "application/json" %}


```json translate=no
{
    "code": "not_found",
    "message": "Claim not found"
}
```


{% endcut %}


#|||
 **Name** 
|
 **Description** 
||

||
 code<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** string

Error code

*Example:*{.openapi-description-annotation} `not_found`

*Enum:*{.openapi-description-annotation} `not_found`
 
||

||
 message<span class="openapi__required">*</span> {.openapi-table-parameter-name} 
|
 **Type:** string

Error description

*Example:*{.openapi-description-annotation} `Claim not found`
 
|||#{.openapi-table}

</div>

</div>
<!-- markdownlint-disable-file -->

</div>



[*Deprecated]: No longer supported, please use an alternative and newer version.