> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Inspect Return

> This endpoint records inspection details for a returned item.

### Body

<ParamField body="return_id" type="string">
  The ID provided in the data tab may be used to identify the return
</ParamField>

<ParamField body="inspection_type" type="string">
  The type of inspection performed (e.g., "physical", "functional", "cosmetic")
</ParamField>

<ParamField body="condition_assessment" type="string">
  The assessed condition of the returned item (e.g., "like\_new", "good", "fair", "poor", "damaged")
</ParamField>

<ParamField body="inspector_notes" type="string">
  Detailed notes from the inspection
</ParamField>

<ParamField body="defects_found" type="array">
  List of defects or issues found during inspection
</ParamField>

<ParamField body="resellable" type="boolean">
  Whether the item can be resold
</ParamField>

<ParamField body="restocking_fee" type="number">
  Recommended restocking fee based on condition
</ParamField>

### Response

<ResponseField name="id" type="string">
  The ID provided in the data tab may be used to identify the return
</ResponseField>

<ResponseField name="object" type="string">
  The object type
</ResponseField>

<ResponseField name="inspection_id" type="string">
  The unique identifier for the inspection record
</ResponseField>

<ResponseField name="inspection_date" type="string">
  The date when the inspection was performed
</ResponseField>

<ResponseField name="condition_assessment" type="string">
  The final condition assessment
</ResponseField>

<ResponseField name="resellable" type="boolean">
  Whether the item can be resold
</ResponseField>

<ResponseField name="recommended_action" type="string">
  The recommended action based on inspection (e.g., "restock", "liquidate", "dispose")
</ResponseField>

<ResponseField name="success" type="number">
  Indicates whether the call was successful. true if successful, false if not.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --location --request POST 'https://api.stateset.com/v1/returns/:id/inspect' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token <token>' \
  --data-raw '{
      "id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
      "inspection_type": "physical",
      "condition_assessment": "good",
      "inspector_notes": "Minor wear on packaging, product unused",
      "defects_found": ["packaging_damage"],
      "resellable": true,
      "restocking_fee": 15.00
  }'
  ```

  ```graphQL GraphQL theme={null}
        mutation returnInspectMutation {
          returnInspect(
            id: "${returnId}",
            inspectionType: "${inspectionType}",
            conditionAssessment: "${conditionAssessment}",
            inspectorNotes: "${inspectorNotes}",
            defectsFound: ${defectsFound},
            resellable: ${resellable},
            restockingFee: ${restockingFee}
          ) {
            return {
              id,
              status,
              inspection_id,
              condition_assessment,
              resellable,
              recommended_action
            }
            userErrors {
              field
              message
            }
          }
        }
      `;
  ```

  ```js Node.js theme={null}
  const returns = await stateset.returns.inspect({
    id: 'rt_1NXWPnCo6bFb1KQto6C8OWvE',
    inspection_type: 'physical',
    condition_assessment: 'good',
    inspector_notes: 'Minor wear on packaging, product unused',
    defects_found: ['packaging_damage'],
    resellable: true,
    restocking_fee: 15.00
  });
  ```

  ```python Python theme={null}
  returns = stateset.returns.inspect({
    'id': 'rt_1NXWPnCo6bFb1KQto6C8OWvE',
    'inspection_type': 'physical',
    'condition_assessment': 'good',
    'inspector_notes': 'Minor wear on packaging, product unused',
    'defects_found': ['packaging_damage'],
    'resellable': True,
    'restocking_fee': 15.00
  })
  ```

  ```ruby Ruby theme={null}
  returns = Stateset::Return.inspect({
    id: 'rt_1NXWPnCo6bFb1KQto6C8OWvE',
    inspection_type: 'physical',
    condition_assessment: 'good',
    inspector_notes: 'Minor wear on packaging, product unused',
    defects_found: ['packaging_damage'],
    resellable: true,
    restocking_fee: 15.00
  })
  ```

  ```go Go theme={null}
  returns, err := stateset.Returns.inspect({
    ID: 'rt_1NXWPnCo6bFb1KQto6C8OWvE',
    InspectionType: 'physical',
    ConditionAssessment: 'good',
    InspectorNotes: 'Minor wear on packaging, product unused',
    DefectsFound: []string{'packaging_damage'},
    Resellable: true,
    RestockingFee: 15.00
  })
  ```

  ```java Java theme={null}
  Return returns = stateset.Returns.inspect({
    id: 'rt_1NXWPnCo6bFb1KQto6C8OWvE',
    inspectionType: 'physical',
    conditionAssessment: 'good',
    inspectorNotes: 'Minor wear on packaging, product unused',
    defectsFound: ['packaging_damage'],
    resellable: true,
    restockingFee: 15.00
  });
  ```

  ```php PHP theme={null}
  $returns = $stateset->returns->inspect([
    'id' => 'rt_1NXWPnCo6bFb1KQto6C8OWvE',
    'inspection_type' => 'physical',
    'condition_assessment' => 'good',
    'inspector_notes' => 'Minor wear on packaging, product unused',
    'defects_found' => ['packaging_damage'],
    'resellable' => true,
    'restocking_fee' => 15.00
  ]);
  ```

  ```csharp C# theme={null}
  var returns = await stateset.Returns.Inspect(new {
    Id = 'rt_1NXWPnCo6bFb1KQto6C8OWvE',
    InspectionType = 'physical',
    ConditionAssessment = 'good',
    InspectorNotes = 'Minor wear on packaging, product unused',
    DefectsFound = new[] { 'packaging_damage' },
    Resellable = true,
    RestockingFee = 15.00
  });
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
    "object": "return",
    "inspected": true,
    "inspection_id": "insp_ret_123",
    "inspection_date": "2024-01-15T10:45:00Z",
    "condition_assessment": "good",
    "resellable": true,
    "restocking_fee": 15.00,
    "defects_found": ["packaging_damage"],
    "recommended_action": "restock"
  }
  ```
</ResponseExample>
