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

# Mark Digital Download Complete

> *Rate limit: 100 requests / 10 seconds per shop. See [Rate limiting](/guides/rate-limiting).*

Marks digital download as downloaded. If no downloads exist for a digital order and defaultFileUrl is provided in the request body, creates a download with that URL and marks it as downloaded.

> [!NOTE]
>
> **OAuth scope:** `order_write`
>
> API keys have full access to this endpoint.

> [!TIP]
>
> Only have the order's customer-facing code (for example `D3XZFWPP`)? Use [Mark Digital Download Complete by Friendly ID](https://docs.fourthwall.com/api-reference/platform/orders/mark-download-complete-by-friendly-id.md) instead.


## OpenAPI

````yaml openapi/platform.json PUT /open-api/v1.0/order/{orderId}/downloaded
openapi: 3.1.0
info:
  title: Fourthwall APIs
  description: Service used for management of orders, carts, and payments.
  termsOfService: https://fourthwall.com/terms-of-service
  version: unspecified
servers:
  - url: https://api.fourthwall.com
    description: Production server
security: []
externalDocs:
  description: OpenAPI documentation
  url: https://docs.fourthwall.com
paths:
  /open-api/v1.0/order/{orderId}/downloaded:
    put:
      tags:
        - Orders
      summary: Mark digital download as downloaded
      description: >-
        *Rate limit: 100 requests / 10 seconds per shop. See [Rate
        limiting](/guides/rate-limiting).*


        Marks digital download as downloaded. If no downloads exist for a
        digital order and defaultFileUrl is provided in the request body,
        creates a download with that URL and marks it as downloaded.
      operationId: mark-download-complete
      parameters:
        - name: orderId
          in: path
          required: true
          schema:
            type: string
          example: 00aa4abd-5778-4199-8161-0b49b2f212e5
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/com.fourthwall.app.openapi.endpoint.OpenApiOrderEndpoint.MarkDownloadAsDownloadedRequest
      responses:
        '200':
          description: OK
        '400':
          description: 'Possible errors: `ORDER_HAS_NO_DOWNLOADS_ERROR`'
          content:
            application/json:
              examples:
                order-has-no-downloads-error:
                  value:
                    code: ORDER_HAS_NO_DOWNLOADS_ERROR
                    orderId: <orderid>
        '404':
          description: >-
            Possible errors: `DOWNLOAD_NOT_FOUND_ERROR`,
            `OFFER_VARIANT_NOT_FOUND_ERROR`
          content:
            application/json:
              examples:
                download-not-found-error:
                  value:
                    code: DOWNLOAD_NOT_FOUND_ERROR
                    downloadId: <downloadid>
                offer-variant-not-found-error:
                  value:
                    code: OFFER_VARIANT_NOT_FOUND_ERROR
                    offerVariantId: <offervariantid>
        '429':
          description: 'Rate limited: 100 requests / 10 seconds per shop.'
          content:
            application/json:
              examples:
                too-many-requests:
                  value:
                    code: OPEN_API_TOO_MANY_REQUESTS
                    title: Too many requests
                    status: 429
      security:
        - bearerAuth: []
        - basicAuth: []
      externalDocs:
        url: >-
          https://docs.fourthwall.com/api-reference/platform/orders/mark-download-complete
components:
  schemas:
    com.fourthwall.app.openapi.endpoint.OpenApiOrderEndpoint.MarkDownloadAsDownloadedRequest:
      type: object
      properties:
        defaultFileUrl:
          type: string
      title: Mark Download As Downloaded Request
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        OAuth 2.0 access token, sent as `Authorization: Bearer <token>`. See
        https://docs.fourthwall.com/guides/oauth. The scopes an operation
        requires are listed in its `x-fourthwall-scopes`.
    basicAuth:
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.