---
title: "Update a Document from an Order."
method: PUT
path: "/orders/{id}/documents/{public_id}.json"
tags: ["Orders"]
---

# Update a Document from an Order.

`PUT /orders/{id}/documents/{public_id}.json`

## Path parameters

- `id` integer, required
- `public_id` integer, required

## Request body

- DocumentFieldsToUpdate
  - `document_type` integer — Type of Document
  - `external_id` string — Document ID on the external service
  - `public_id` string — Human recognizable document ID
  - `url` string — Document url

## Response `200`

OK

- Document
  - `document` DocumentFields
    - `document_type` integer — Type of Document
    - `external_id` string — Document ID on the external service
    - `public_id` string — Human recognizable document ID
    - `url` string — Document url
    - `order_id` integer — Id of the order the document belongs to
    - `app_code` string — Code of the app that generated the document

## Other responses

- `404` — Document Not Found.

---

[API](https://skmtc.net/jumpseller/apis/jumpseller-api.md) · [All operations](https://skmtc.net/jumpseller/apis/jumpseller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jumpseller/jumpseller-api/versions/7512c6ae3524/schema)
