# 3DAPI API Docs: every page > The 3DAPI API lets sellers manage everything they do on the platform, and lets integrators build on top of it. - Base URL: `https://public-api.dapi.digital` (production). API v2 paths start with `/v2`; the print farm API's with `/v1/print-farm`. - Authentication: send an API key in the `x-api-key` header. Each operation lists the scopes it accepts in `x-required-scopes` (any one is enough). Keys are created in the 3DAPI dashboard. - **Ids** are opaque strings with a type prefix, for example `prd_` for products and `var_` for variants. Store and compare them; never parse them. - **Money** is `{ "amount": 5000, "currency": "usd" }`: `amount` is an integer in the smallest currency unit (cents), so `5000` is $50.00. There are no decimal amounts anywhere in the API. - **Lists** return `{ "object": "list", "data": [...], "has_more": true, "next_cursor": "..." }`. Pass `next_cursor` back as `cursor` for the next page. - **Errors** always have the same body: `{ "status_code", "error", "code", "message", "details" }`. Branch on `code`, which is stable; `message` explains how to fix the problem. - Writes accept an `Idempotency-Key` header, so a retried request is never applied twice. - Machine-readable: [OpenAPI 3.1 for designers and integrators](https://public-api.dapi.digital/docs/openapi.json), [OpenAPI 3.0 for print farms](https://public-api.dapi.digital/docs/print-farm.openapi.json), [workflows (Arazzo 1.0)](https://public-api.dapi.digital/docs/arazzo.json), [every page in one file](https://public-api.dapi.digital/docs/llms-full.txt). - MCP: a local MCP server exposes the operations as read, write and money tools, money tools behind a preview-then-confirm step (`npx -y @dapi-digital/mcp`, or the Claude Desktop extension at https://public-api.dapi.digital/docs/downloads/dapi-digital.mcpb); see [Connect an AI assistant](https://public-api.dapi.digital/docs/guides/mcp.md). --- ## Print farm quickstart For print farms. The print farm API lets a production partner read the orders allocated to its farm, report their progress, and read the products, stocks and materials it produces. The print farm API keeps the conventions it was built with: numbered pages instead of cursors, and its own error body. Its ids and field names are its own too, so the conventions in the designer and integrator guides do not apply here. ### The base URL Every path starts with `/v1/print-farm`. The examples read the API base URL from `DAPI_API_URL` and your key from `DAPI_API_KEY`. **Shell** ```bash export DAPI_API_URL="" export DAPI_API_KEY="" ``` All requests and responses are JSON over HTTPS. ### API keys and permissions Send an API key in the `x-api-key` header. Keys are created in the print farm dashboard. Each operation needs one of the permissions it lists; a key with `FULL` has them all. Permissions: `READ_ORDERS`, `WRITE_ORDERS`, `SKU`, `READ_STOCK`, `WRITE_STOCK`, `FULL`. Create and revoke keys on the API keys page of your dashboard (print farms: [https://dapi.digital/print-farm/public-api-keys](https://dapi.digital/print-farm/public-api-keys)). Keep them on your server. - `READ_ORDERS`: [List orders allocated to your print farm](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#listPrintFarmOrders), [Get one order allocated to your print farm](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#getPrintFarmOrder) - `WRITE_ORDERS`: [Transition an order to a new status](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#updatePrintFarmOrderStatus) - `SKU`: [List SKUs visible to your print farm](https://public-api.dapi.digital/docs/reference/print-farm-skus.md#listPrintFarmSkus), [Get one SKU visible to your print farm](https://public-api.dapi.digital/docs/reference/print-farm-skus.md#getPrintFarmSku), [List approved designs visible to your farm](https://public-api.dapi.digital/docs/reference/print-farm-designs.md#listPrintFarmDesigns), [Get one approved design visible to your farm](https://public-api.dapi.digital/docs/reference/print-farm-designs.md#getPrintFarmDesign), [List approved extras visible to your farm](https://public-api.dapi.digital/docs/reference/print-farm-extras.md#listPrintFarmExtras), [Get one approved extra visible to your farm](https://public-api.dapi.digital/docs/reference/print-farm-extras.md#getPrintFarmExtra), [List materials visible to your farm](https://public-api.dapi.digital/docs/reference/print-farm-materials.md#listPrintFarmMaterials), [Get one material visible to your farm](https://public-api.dapi.digital/docs/reference/print-farm-materials.md#getPrintFarmMaterial) - `READ_STOCK`: [List stock levels at your print farm](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#listPrintFarmStockLevels), [Get one stock level at your print farm](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#getPrintFarmStockLevel), [List stocks visible to your print farm](https://public-api.dapi.digital/docs/reference/print-farm-stocks.md#listPrintFarmStocks), [Get one stock visible to your print farm](https://public-api.dapi.digital/docs/reference/print-farm-stocks.md#getPrintFarmStock) - `WRITE_STOCK`: [Add items printed to a stock level](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#addPrintFarmStockLevelItemsMade) - Any valid key: [List available courier options](https://public-api.dapi.digital/docs/reference/print-farm-courier-options.md#listPrintFarmCourierOptions) ### Make your first request [List your orders](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#listPrintFarmOrders) returns the orders allocated to your farm, newest first. It is the quickest way to check that a key works. **GET /v1/print-farm/orders (curl)** ```bash curl "https://public-api.dapi.digital/v1/print-farm/orders" \ -H "x-api-key: $DAPI_API_KEY" ``` **GET /v1/print-farm/orders (Node.js)** ```javascript const response = await fetch(`${process.env.DAPI_API_URL}/v1/print-farm/orders`, { headers: { 'x-api-key': process.env.DAPI_API_KEY, }, }); const data = await response.json(); ``` **GET /v1/print-farm/orders (Python)** ```python import os import requests response = requests.get( f"{os.environ['DAPI_API_URL']}/v1/print-farm/orders", headers={"x-api-key": os.environ["DAPI_API_KEY"]}, ) data = response.json() ``` ### Pages Lists are numbered pages. Ask for one with these query parameters: - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. Next to the items, a list response says where you are: - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of orders across all pages (after filters are applied). Range at least 0. ### Errors Errors have the body `{ "statusCode", "error", "message" }`. `message` is a string, or a list of strings when the request failed validation. **Error** ```json { "statusCode": 401, "error": "Unauthorized", "message": "Invalid or inactive API key." } ``` ### Rate limits Requests are limited to 500 per 60-second window per API key. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/print-farm-quickstart. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Quickstart For designers and integrators. Integrators: create your account at [https://dapi.digital/integrator/sign-up](https://dapi.digital/integrator/sign-up). Your account is approved once 10 of your files are approved. Order to Quote ratio 1:1500. Use an email with no 3DAPI seller account: seller accounts cannot be converted. There is no sandbox: test with a small wallet order, which your $15 sample credit covers once you are approved. The 3DAPI API lets sellers manage everything they do on the platform, and lets integrators build on top of it. This guide takes you from no key to a first response. It takes about five minutes. ### Which account do I need? - **A seller account** if you sell your own products from a catalog: listings with variants, a 3DAPI storefront, orders from your other stores, stock and quality checks. The API manages products and stock and places orders for them, from your website or any other platform. - **An integrator account** if your app or website orders prints of files that change per order: generated models, or digital files with a "buy it printed" button. You quote any file and order it, paid from your wallet or by your customer on a 3DAPI checkout. One email cannot hold both, and a seller account cannot be converted. Both get sample credit for a first test print. [Compare the two accounts](https://www.dapi.digital/seller-or-integrator). ### The base URL Every path in this API starts with `/v2`. The examples read the API base URL from `DAPI_API_URL` and your key from `DAPI_API_KEY`, so you can paste them as they are. **Shell** ```bash export DAPI_API_URL="" export DAPI_API_KEY="" ``` All requests and responses are JSON over HTTPS. ### Get an API key Create a key on the API keys page of your dashboard (designers: [https://dapi.digital/dashboard/public-api-keys](https://dapi.digital/dashboard/public-api-keys), integrators: [https://dapi.digital/integrator/api-keys](https://dapi.digital/integrator/api-keys)) and give it only the scopes your integration needs. Keep it on your server: anyone holding the key can act for your account. Read [Authentication and scopes](https://public-api.dapi.digital/docs/guides/authentication.md) for what each scope allows. ### Make your first request [Retrieve the current actor](https://public-api.dapi.digital/docs/reference/identity.md#get_me) answers with who the key belongs to and the scopes it carries. It is the quickest way to check that a key works. **GET /v2/me (curl)** ```bash curl "https://public-api.dapi.digital/v2/me" \ -H "x-api-key: $DAPI_API_KEY" ``` **GET /v2/me (Node.js)** ```javascript const response = await fetch(`${process.env.DAPI_API_URL}/v2/me`, { headers: { 'x-api-key': process.env.DAPI_API_KEY, }, }); const data = await response.json(); ``` **GET /v2/me (Python)** ```python import os import requests response = requests.get( f"{os.environ['DAPI_API_URL']}/v2/me", headers={"x-api-key": os.environ["DAPI_API_KEY"]}, ) data = response.json() ``` **Response** ```json { "object": "actor", "user_id": "44444444-4444-4444-8444-444444444444", "kind": "designer", "authenticated_with": "api_key", "scopes": [ "order" ], "effective_scopes": [ "orders:read", "orders:write" ], "approval": null } ``` A `401` means the key is missing or wrong. Anything else follows the shape described in [Errors](https://public-api.dapi.digital/docs/guides/errors.md). ### Conventions - **Ids** are opaque strings with a type prefix, for example `prd_` for products and `var_` for variants. Store and compare them; never parse them. - **Money** is `{ "amount": 5000, "currency": "usd" }`: `amount` is an integer in the smallest currency unit (cents), so `5000` is $50.00. There are no decimal amounts anywhere in the API. - **Field names** are snake\_case. Every object has an `object` field naming its type. Timestamps are ISO 8601 in UTC. - **Missing values** are `null`; fields are never left out. The only exception is a field that appears only when requested with `expand[]`, which says so. ### Next steps - [Integrator onboarding](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md): get your account approved so quotes are unlimited. (for integrators) - [Quotes](https://public-api.dapi.digital/docs/reference/quotes.md): price a model file for printing. (for integrators) - [Products](https://public-api.dapi.digital/docs/reference/products.md): create what you sell, with its designs and variants. (for designers) - [Orders](https://public-api.dapi.digital/docs/reference/orders.md): follow orders from every channel, or place your own. (for designers) - [Webhooks](https://public-api.dapi.digital/docs/guides/webhooks.md): hear about changes instead of polling for them. (for designers and integrators) --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/quickstart. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Authentication and scopes For designers and integrators. Every request carries an API key, except the few public endpoints. A key can do only what its scopes allow. ### API keys Send your API key in the `x-api-key` header. Create keys in your 3DAPI dashboard. Endpoints marked public need no key. Scopes are read and write per resource: - `products:read`: read products, variants, designs and attachments. - `products:write`: create and change products, variants and designs. - `orders:read`: read orders and import issues. - `orders:write`: place and cancel orders. - `orders:read_customer`: see buyer personal data on orders. - `stocks:read`: read stocks and their batches. - `stocks:write`: create and change stocks, restock rules and purchases. - `extras:read`: read extras. - `extras:write`: create and change extras. - `qc:read`: read quality control tickets. - `qc:write`: answer and open quality control tickets. - `wallet:read`: read the wallet and transactions. - `webhooks:read`: read webhook endpoints, events and deliveries. - `quotes:read`: read quotes and approval requests (integrators). - `quotes:write`: create quotes and approval requests (integrators). `orders:read_customer` adds buyer personal data (customer, full shipping address, notes) to orders and to order events; without it those fields are null and the address keeps only the country. Keys created before per-resource scopes carry a legacy permission: `full` has every scope above, `order` has `orders:read` and `orders:write`, `pricing` has none in this API. `GET /v2/me` returns both the stored `scopes` and the expanded `effective_scopes`. Each operation lists the API key scopes it accepts in `x-required-scopes`: any one of them is enough, and a key with full access has them all. An empty list means no scope is needed (public operations, and operations every valid key may call). Signed-in dashboard sessions are not scoped. Some operations are for one kind of account only, which each description says: designers (sellers on 3DAPI) or integrators (companies building on the API, see the Quotes and Integrator onboarding sections). `x-audience` on each operation lists the kinds of account it is for: `designer`, `integrator`, or both. Integrator accounts and their keys belong to this API only: the previous API (paths under `/v1`) refuses them by design, apart from `/v1/me`. Use the `/v2` operations for quotes, orders and everything else. **HTTP** ```http GET /v2/me x-api-key: ``` Create and revoke keys on the API keys page (designers: [https://dapi.digital/dashboard/public-api-keys](https://dapi.digital/dashboard/public-api-keys), integrators: [https://dapi.digital/integrator/api-keys](https://dapi.digital/integrator/api-keys)). Never put a key in browser or mobile code. ### Scopes The scopes stored on the API key, as chosen when it was created: per-resource scopes such as `products:read`, or a legacy permission (`full`, `order` or `pricing`). For a connected app, the scopes the user approved. See `effective_scopes` for what they allow. Null for sessions, which are not scoped. `pricing``order``full``products:read``products:write``orders:read``orders:write``orders:read_customer``stocks:read``stocks:write``extras:read``extras:write``qc:read``qc:write``wallet:read``webhooks:read``quotes:read``quotes:write` A request outside the key's scopes is refused with `403` and the code `missing_scope`. Expanded objects follow the scopes too: see [Expanding objects](https://public-api.dapi.digital/docs/guides/expanding.md). ### Designers and integrators Designer and integrator accounts call different endpoints: designers manage products, stock and their orders; integrators quote files and order prints of them. Calling an endpoint of the other kind is refused with `403` and the code `actor_not_allowed`. Every page of the reference says who its endpoints are for, and the role picker at the top of these docs shows you only yours. ### Dashboard sessions Session token of a signed-in API dashboard user. It is sent as `Authorization: Bearer `. Sessions are not scoped. Server integrations should always use an API key. ### Public endpoints These endpoints answer without a key: - [GET Check service health `/v2/health`](https://public-api.dapi.digital/docs/reference/health.md#get_health) - [POST Sign up as an integrator `/v2/integrator/accounts`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_integrator_account) - [POST Resend the confirmation email `/v2/integrator/accounts/confirmation`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#resend_integrator_confirmation) - [GET Get the shipping rate card `/v2/shipping/rates`](https://public-api.dapi.digital/docs/reference/shipping.md#get_shipping_rates) - [GET Get a shipping price `/v2/shipping/quote`](https://public-api.dapi.digital/docs/reference/shipping.md#get_shipping_quote) - [GET List catalog materials `/v2/materials`](https://public-api.dapi.digital/docs/reference/materials.md#list_materials) - [GET Get a catalog material `/v2/materials/{id}`](https://public-api.dapi.digital/docs/reference/materials.md#get_material) - [GET List product categories `/v2/categories`](https://public-api.dapi.digital/docs/reference/categories.md#list_categories) - [GET Get a product category `/v2/categories/{id}`](https://public-api.dapi.digital/docs/reference/categories.md#get_category) --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/authentication. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Business guide For integrators. How money, shipping, orders and compliance work for an integrator account. The technical details are in the reference; this page is the rules behind them. ### Your account Building an app that orders prints? Sign up as an integrator with an email that has no 3DAPI seller account. A seller account cannot be converted into an integrator account, and one account cannot be both. Not sure which you need? [Compare seller and integrator accounts](https://www.dapi.digital/seller-or-integrator). ### Quotes Quoting is free. Before approval you can quote 25 files per round and a daily number of quotes (`daily_quote_limit_reached` resets at midnight UTC); after approval quotes are unlimited. A quote's `price` is the production price of one unit. Larger quantities cost less per unit as plates fill, so price an order with its real quantity. ### Orders you pay (wallet mode) You pay the production price plus shipping, from your wallet. When the balance is short, the difference is charged to your saved card as a wallet top-up, with VAT on the top-up when it applies to your billing country. There is no monthly fee and no minimum quantity per order. There is no sandbox or test card: test with a small wallet-mode order. When your account is approved you get **$15 of sample credit**, valid for 30 days, for exactly that: send `use_sample_credit: true` on a wallet order shipped to your own country and it is spent before your balance. Your wallet shows what is left (`sample_credit`). ### Orders your customer pays (checkout mode) Your customer pays your `unit_sales_price` plus shipping on a hosted 3DAPI checkout page, by card, in USD. 3DAPI is the merchant of record: the card statement shows 3DAPI Inc. - The link stays open 24 hours from when the order is created. Unpaid, the order is then cancelled and `checkout.expired` is sent. - `success_url` and `cancel_url` are used exactly as you send them, with no placeholders: put your own id in `reference` and find the order with `list_integrator_orders?reference=`, or wait for `order.paid`. - VAT is added for buyers in the EU and the UK. There is no US sales tax. - Your customer gets the order confirmation and shipping emails from 3DAPI, naming you as the seller. They cannot be copied to you; follow the order with webhooks. - You earn the sales price less the production price and the card fee (EU 1.5% + $0.30, UK 2.5% + $0.30, elsewhere 2.9% + $0.30), credited to your wallet when the order is completed. The minimum `unit_sales_price` always covers both, so a sale never loses money. Every order, in either mode, needs business billing details: a sole trader or registered freelancer with a tax registration is enough. See [Compliance](https://public-api.dapi.digital/docs/guides/integrator-business.md#compliance). ### Shipping, duties and countries Shipping is priced by destination zone and by the tier of the heaviest item: **small** up to 600 g, **medium** up to 2 kg, **large** above. An item weighs the greater of its actual and volumetric weight (length x width x height in cm / 5000). Every further item adds the zone's per-item price, except extra-small items (under 100 g, on a line without extras). `estimate_integrator_order_shipping` gives the exact figure, and `get_shipping_rates` the whole rate card. - 3DAPI delivers worldwide except Russia, Belarus, Iran and Syria, which are refused with `shipping_destination_not_served`. - Orders are made at a production centre near the buyer. Where there is none in the buyer's region, they ship from the closest one and import duties are paid by the buyer on delivery. - Once shipped, the order carries `shipping.carrier` (a plain name, for example `DHL`) and `shipping.tracking_number`. There is no tracking URL. ### Order lifecycle and times An order moves `paid` → `assigned` (a production partner has it) → `in_production` → `shipped` → `completed`. `completed` means delivered and settled. - Production: on-demand orders ship within 3 to 5 business days of payment. - Delivery: 1 to 3 business days from a local production centre, 5 to 10 business days internationally. Each step sends its webhook event (`order.paid`, `order.assigned`, `order.in_production`, `order.shipped`, `order.completed`). ### Cancellations, refunds and problems - **Before production:** cancel a `paid` order (or an unpaid checkout order) with `cancel_integrator_order`. It is refunded in full: to your wallet for wallet orders, to the buyer's card for checkout orders. Card refunds take 5 to 10 business days. - **After production starts:** email [contact@dapi.digital](mailto:contact@dapi.digital). - **A production partner refuses an order:** 3DAPI reassigns it to another partner, or, if none can make it, cancels it and refunds it automatically. - **Lost parcels** are reprinted and shipped again at 3DAPI's cost. - **Defects** in printing are 3DAPI's responsibility. Report a defective or damaged delivery to [contact@dapi.digital](mailto:contact@dapi.digital) with the order number and photos. ### Compliance Orders are refused with `compliance_blocked` (403) until your account meets what `details.requirements` lists, and `details.fix_url` opens the dashboard page that fixes it: - **Business billing details**, for any order. A sole trader or registered freelancer is a business here, as long as it has a tax registration. - **An EU Responsible Person**, only to sell to EU or UK customers in checkout mode when your business is outside the EU and UK. EU product-safety rules (GPSR) require one. The product stays yours, so 3DAPI cannot act as your Responsible Person. It does not need a company: services such as [EUVerify](https://euverify.com?fpr=br8qmn) (10% off for 3DAPI integrators through this link), [EU Compliance Partner](https://eucompliancepartner.com/eu-responsible-person-service) and [ComplyEU](https://complyeu.com/) cost roughly 60 to 300 EUR a year. Add yours on the EU responsible person page; `eu_responsible_person_not_found` means none is set. Your billing details need a tax form when your business is outside the EU and UK (`tax_form_required` until it is added): a W-9 for a US business; elsewhere outside the EU and UK, a W-8BEN (`w8ben`) when you are a person or sole trader, or a W-8BEN-E (`w8ben_e`) when you are a company or other entity. EU and UK businesses need none. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/integrator-business. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## File requirements For integrators. Before your account is approved, 3DAPI reviews 10 of your files. These are the reasons files get rejected, so check them before you submit. They also make every later order print well. ### Formats Quote `.stl`, `.3mf`, `.obj`, `.step` or `.stp` files of up to 250 MiB, uploaded with the `quote_file` purpose ([Uploads](https://public-api.dapi.digital/docs/guides/uploads.md)). A `.3mf` project is the best choice: it carries your colours, filaments and print settings, which 3DAPI reads to suggest materials. ### Print settings Files are printed on Bambu Lab P1S printers with a 0.4 mm nozzle. In a `.3mf`, include the full print settings: - 0.20 mm layer height. - P1S printer profile, 0.4 mm nozzle. - Supports enabled, on the build plate only. Plain mesh files (`.stl`, `.obj`, `.step`) are sliced with these settings. ### Colours At most 4 colours (filament slots) per file. Each slot you print with gets a catalog material when you order (`list_materials`, readable before approval too). ### Geometry - The mesh is closed (manifold), with no self-intersecting faces. Non-manifold or self-intersecting geometry fails slicing, and `failure_reason` says so. - No wall or detail is thinner than 0.45 mm. - The model has a flat bottom to sit on the build plate. - It fits the P1S build plate and stays clear of its exclusion zone. ### The review, and after it Submit 10 ready quotes with [Submit sample files for review](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md). People review them file by file, which usually takes 24 to 48 hours, and you get an email when the review is done; a rejected file carries its reason in `approval.reason`. Approved files stay approved, so after rejections you only submit replacements. Once your account is approved there is no review per file: an order goes to production as soon as its quote is `ready`, so these requirements are yours to keep from then on. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/file-requirements. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Errors For designers and integrators. **Errors** always have the same body: `{ "status_code", "error", "code", "message", "details" }`. Branch on `code`, which is stable; `message` explains how to fix the problem. ### The error object Every error response has this shape. Each endpoint lists the errors it can return. - `status_code` (integer): HTTP status code, repeated in the body. - `error` (string): Short label matching the HTTP status. - `code` (string): Stable machine-readable error code in snake\_case. Branch on this, never on `message`. - `message` (string): What went wrong and how to fix it, written to be shown to a person. - `details` (object, optional): Extra structured context when it helps, for example the list of invalid fields. When a refusal is fixed in the 3DAPI dashboard (billing, store, compliance or plan), `fix_url` links to the page that fixes it. **Example** ```json { "status_code": 404, "error": "Not Found", "code": "product_not_found", "message": "Product prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu was not found.", "details": {} } ``` ### HTTP status codes | Status | Meaning | | --- | --- | | `200` OK | It worked. | | `201` Created | It worked and created something; the body is the new object. | | `202` Accepted | Accepted for processing; the work happens afterwards and the body is empty. | | `204` No Content | | | `400` Bad Request | The request is malformed: a bad parameter, cursor or expand path. | | `401` Unauthorized | The API key is missing or not valid. | | `402` Payment Required | A payment was needed and failed, or the balance is too low. | | `403` Forbidden | The key lacks a scope, or the account must change something first. | | `404` Not Found | The object does not exist, or belongs to another account. | | `409` Conflict | The object is in a state that does not allow this right now. | | `422` Unprocessable Entity | The body is well formed but breaks a rule; `details` says which. | | `429` Too Many Requests | Too many requests; slow down and retry. | | `503` Service Unavailable | The service is unavailable; retry with backoff. | ### Codes worth handling Branch on `code`, never on `message`. These come up across many endpoints; the rest are listed on the endpoint that returns them. - **`validation_failed`**: A field is missing or has the wrong type or value. `details` lists the fields. - **`missing_scope`**: The API key does not carry the scope this endpoint needs. - **`invalid_cursor`**: A pagination cursor was edited or is not from this list. - **`invalid_expand`**: An `expand[]` path is not offered by this endpoint. - **`idempotency_key_reused`**: The same `Idempotency-Key` was sent with a different body. - **`plan_limit_reached`**: Your plan limit is reached. `details.fix_url` points at upgrading. - **`payment_failed`**: The charge to your saved card failed; nothing was created. - **`insufficient_balance`**: The wallet balance does not cover the purchase. ### Fixes in the dashboard Extra structured context when it helps, for example the list of invalid fields. When a refusal is fixed in the 3DAPI dashboard (billing, store, compliance or plan), `fix_url` links to the page that fixes it. ### Retries and rate limits A `4xx` other than `429` will fail again until the request changes: read `code` and fix the request. A `429` or `503` is temporary: wait and retry with exponential backoff, and send the same `Idempotency-Key` when retrying a write. Every endpoint except the health check can answer 429 with code `rate_limited`; wait for the number of seconds in the `Retry-After` header. The limits are in [Rate limits](https://public-api.dapi.digital/docs/guides/rate-limits.md). ### Every error code Each code with what it means, the statuses it comes with and the endpoints that return it. The OpenAPI document lists them per response in `x-error-codes`. | Code | Meaning | Status | Returned by | | --- | --- | --- | --- | | `account_blacklisted` | The account may no longer use the API. Contact support. | 403 | 92 endpoints | | `account_service_unavailable` | Sign-in details cannot be changed right now. Try again later. | 503 | [`change_integrator_password`](https://public-api.dapi.digital/docs/reference/integrator-account.md#change_integrator_password), [`request_integrator_email_change`](https://public-api.dapi.digital/docs/reference/integrator-account.md#request_integrator_email_change) | | `actor_not_allowed` | The endpoint is for another kind of account (designer or integrator). | 403 | 93 endpoints | | `already_approved` | Your integrator account is already approved, so there is nothing to submit. | 409 | [`create_approval_request`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_approval_request) | | `ambiguous_credentials` | Both an API key and a session were sent. Send one. | 401 | 102 endpoints | | `amount_out_of_range` | The amount is outside $1.00 to $100,000.00. | 422 | [`start_top_up`](https://public-api.dapi.digital/docs/reference/wallet.md#start_top_up), [`update_wallet_settings`](https://public-api.dapi.digital/docs/reference/wallet.md#update_wallet_settings) | | `api_key_not_found` | You have no active API key with this id. | 404 | [`revoke_api_key`](https://public-api.dapi.digital/docs/reference/api-keys.md#revoke_api_key) | | `api_request_not_found` | You have no logged API request with this id. | 404 | [`get_api_request`](https://public-api.dapi.digital/docs/reference/logs.md#get_api_request) | | `approval_in_review` | Your approval request is in review. Quoting and uploads resume once it is reviewed. | 409 | [`create_quote`](https://public-api.dapi.digital/docs/reference/quotes.md#create_quote), [`create_approval_request`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_approval_request) | | `approval_request_not_found` | You have no approval request with this id. | 404 | [`get_approval_request`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#get_approval_request) | | `attachment_not_found` | An attachment you asked to keep is not one of the product's attachments. | 404, 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`update_product`](https://public-api.dapi.digital/docs/reference/products.md#update_product), [`get_attachment`](https://public-api.dapi.digital/docs/reference/attachments.md#get_attachment) | | `auto_top_up_needs_card` | This is your only card and auto top-up is on. Turn auto top-up off first. | 409 | [`remove_card`](https://public-api.dapi.digital/docs/reference/wallet.md#remove_card) | | `billing_details_not_found` | You have not added billing details yet. | 404 | [`get_billing_details`](https://public-api.dapi.digital/docs/reference/wallet.md#get_billing_details) | | `billing_details_required` | Add billing details before this step. | 409 | [`start_card_setup`](https://public-api.dapi.digital/docs/reference/wallet.md#start_card_setup), [`start_top_up`](https://public-api.dapi.digital/docs/reference/wallet.md#start_top_up) | | `cannot_publish` | Something blocks publishing; `details.blockers` lists what. | 409 | [`publish_product`](https://public-api.dapi.digital/docs/reference/products.md#publish_product) | | `card_not_found` | No saved card with this id. | 404 | [`make_card_default`](https://public-api.dapi.digital/docs/reference/wallet.md#make_card_default), [`remove_card`](https://public-api.dapi.digital/docs/reference/wallet.md#remove_card) | | `card_payments_unavailable` | Card payments are not available right now. Nothing was created; try again later. | 503 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order), [`start_card_setup`](https://public-api.dapi.digital/docs/reference/wallet.md#start_card_setup), [`complete_card_setup`](https://public-api.dapi.digital/docs/reference/wallet.md#complete_card_setup), [`remove_card`](https://public-api.dapi.digital/docs/reference/wallet.md#remove_card), [`start_top_up`](https://public-api.dapi.digital/docs/reference/wallet.md#start_top_up) | | `card_removal_failed` | The payment processor refused to remove the card. Try again later. | 503 | [`remove_card`](https://public-api.dapi.digital/docs/reference/wallet.md#remove_card) | | `card_setup_not_found` | No card setup with this id was started from your account. | 404 | [`complete_card_setup`](https://public-api.dapi.digital/docs/reference/wallet.md#complete_card_setup) | | `category_not_found` | The category is unknown or inactive. List them with `list_categories`. | 404, 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`update_product`](https://public-api.dapi.digital/docs/reference/products.md#update_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant), [`get_category`](https://public-api.dapi.digital/docs/reference/categories.md#get_category) | | `combination_slots_mismatch` | A design names a color combination with the wrong number of slots. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`add_design`](https://public-api.dapi.digital/docs/reference/designs.md#add_design), [`update_design`](https://public-api.dapi.digital/docs/reference/designs.md#update_design) | | `compliance_blocked` | Your account cannot order yet: business billing details are missing, or an EU responsible person is needed to sell to EU or UK customers from outside the EU and UK. `details.requirements` lists what, `details.fix_url` where to fix it. | 403 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `compliance_document_not_found` | You have no compliance document with this id. | 404 | [`delete_compliance_document`](https://public-api.dapi.digital/docs/reference/products.md#delete_compliance_document) | | `country_not_eu_or_uk` | The country is not an EU member state or the United Kingdom. | 422 | [`set_eu_responsible_person`](https://public-api.dapi.digital/docs/reference/integrator-account.md#set_eu_responsible_person) | | `credential_not_allowed` | The endpoint needs another kind of credential, usually a signed-in dashboard session instead of an API key. | 403 | 94 endpoints | | `currency_not_supported` | The price is not in `usd`; prices are in US cents only. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant), [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `current_password_incorrect` | The current password is not correct. | 422 | [`change_integrator_password`](https://public-api.dapi.digital/docs/reference/integrator-account.md#change_integrator_password) | | `custom_files_not_enabled` | An order line sends a custom `file`, but custom files are not turned on for your account. Ask [contact@dapi.digital](mailto:contact@dapi.digital) to turn them on. | 403 | [`create_order`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) | | `custom_label_not_found` | The custom label you asked to keep is not the product's. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`update_product`](https://public-api.dapi.digital/docs/reference/products.md#update_product) | | `daily_quote_limit_reached` | The daily quote limit for accounts not yet approved is reached. It resets at midnight UTC. | 429 | [`create_quote`](https://public-api.dapi.digital/docs/reference/quotes.md#create_quote) | | `design_belongs_to_stock` | The design belongs to a stock, not a product; change it through the stock. | 409 | [`update_design`](https://public-api.dapi.digital/docs/reference/designs.md#update_design), [`delete_design`](https://public-api.dapi.digital/docs/reference/designs.md#delete_design) | | `design_in_use` | A variant still uses this design. Remove it from the variants first. | 409 | [`delete_design`](https://public-api.dapi.digital/docs/reference/designs.md#delete_design) | | `design_not_found` | You have no design with this id. | 404 | [`get_design`](https://public-api.dapi.digital/docs/reference/designs.md#get_design), [`update_design`](https://public-api.dapi.digital/docs/reference/designs.md#update_design), [`delete_design`](https://public-api.dapi.digital/docs/reference/designs.md#delete_design) | | `design_not_in_product` | A variant names a design that is not part of this product. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant) | | `duplicate_design_key` | Two designs in the request use the same `key`. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product) | | `duplicate_image` | The same upload is listed twice. | 422 | [`create_extra`](https://public-api.dapi.digital/docs/reference/extras.md#create_extra), [`update_extra`](https://public-api.dapi.digital/docs/reference/extras.md#update_extra) | | `duplicate_item` | The same product or stock is listed twice. | 422 | [`review_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket), [`create_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#create_qc_ticket), [`create_stock_purchase`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase) | | `email_not_sent` | The confirmation email could not be sent. Try again later. | 503 | [`request_integrator_email_change`](https://public-api.dapi.digital/docs/reference/integrator-account.md#request_integrator_email_change) | | `email_taken` | An account with this email already exists. | 409 | [`create_integrator_account`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_integrator_account), [`request_integrator_email_change`](https://public-api.dapi.digital/docs/reference/integrator-account.md#request_integrator_email_change) | | `email_unchanged` | The address is the one you already sign in with. | 400 | [`request_integrator_email_change`](https://public-api.dapi.digital/docs/reference/integrator-account.md#request_integrator_email_change) | | `eu_responsible_person_not_found` | You have no active EU responsible person. | 404 | [`remove_eu_responsible_person`](https://public-api.dapi.digital/docs/reference/integrator-account.md#remove_eu_responsible_person) | | `event_not_found` | No event with this id in the last 30 days. | 404 | [`get_event`](https://public-api.dapi.digital/docs/reference/webhooks.md#get_event), [`get_event_deliveries`](https://public-api.dapi.digital/docs/reference/webhooks.md#get_event_deliveries), [`resend_event`](https://public-api.dapi.digital/docs/reference/webhooks.md#resend_event) | | `event_type_not_subscribed` | The endpoint does not receive this event type. | 409 | [`resend_event`](https://public-api.dapi.digital/docs/reference/webhooks.md#resend_event) | | `extra_not_approved` | The extra is pending review or was rejected. Only extras 3DAPI approved and priced can be used. | 422 | 7 endpoints | | `extra_not_found` | The extra is unknown or not one of yours. List yours with `list_extras`. | 404, 422 | 9 endpoints | | `file_too_large` | The file is larger than the upload purpose allows. | 422 | [`create_upload`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) | | `file_type_not_allowed` | The file type or extension is not allowed for the upload purpose. | 422 | [`create_upload`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) | | `image_not_found` | An image you asked to keep is not one of the product's images. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`update_product`](https://public-api.dapi.digital/docs/reference/products.md#update_product) | | `import_issue_not_found` | You have no import issue with this id. | 404 | [`get_import_issue`](https://public-api.dapi.digital/docs/reference/orders.md#get_import_issue) | | `insufficient_balance` | The wallet balance does not cover the purchase and there is no saved card. | 402, 422 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order), [`create_stock_purchase`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase), [`create_withdrawal`](https://public-api.dapi.digital/docs/reference/wallet.md#create_withdrawal) | | `invalid_api_key` | The API key is unknown or inactive. | 401 | 102 endpoints | | `invalid_discount_code` | The discount code is unknown. | 400 | [`create_order`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) | | `invalid_expand` | An `expand[]` path is not offered by this endpoint. | 400 | 48 endpoints | | `invalid_file` | The uploaded file is not what its name and type say (for example not a real .3mf or .stl). | 422 | [`create_order`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) | | `invalid_period` | `from` is not before `to`, or the period is too long. | 400 | [`get_integrator_analytics`](https://public-api.dapi.digital/docs/reference/analytics.md#get_integrator_analytics) | | `invalid_session` | The dashboard session expired or is not valid. Sign in again. | 401 | 102 endpoints | | `invoice_or_payment_link_required` | A withdrawal needs an invoice or a payment link. | 400 | [`create_withdrawal`](https://public-api.dapi.digital/docs/reference/wallet.md#create_withdrawal) | | `key_limit_reached` | You already have 10 active keys. Revoke one first. | 409 | [`create_api_key`](https://public-api.dapi.digital/docs/reference/api-keys.md#create_api_key) | | `material_in_use` | A variant still uses a material you removed. | 422 | [`update_design`](https://public-api.dapi.digital/docs/reference/designs.md#update_design) | | `material_not_allowed` | A material is unknown or not allowed here. List the available ones with `list_materials`. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant), [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `material_not_found` | A material is not in the catalog. List them with `list_materials`. | 404, 422 | 8 endpoints | | `material_slots_mismatch` | The slots sent are not the slots the quote's file prints with. | 422 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `missing_credentials` | No API key or session was sent. | 401 | 102 endpoints | | `missing_scope` | The API key does not carry a scope this endpoint needs. | 403 | 92 endpoints | | `no_saved_card` | Add a card before this step. | 409 | [`start_top_up`](https://public-api.dapi.digital/docs/reference/wallet.md#start_top_up) | | `not_a_conversation` | The ticket is not a question, so it takes no messages. | 409 | [`send_qc_message`](https://public-api.dapi.digital/docs/reference/quality-control.md#send_qc_message) | | `not_a_quality_check` | The ticket is not a quality check. | 409 | [`review_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket) | | `not_awaiting_review` | The ticket is closed, or a product on it is not waiting for your review. | 409 | [`review_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket) | | `not_enough_ready_quotes` | You have fewer eligible quotes than the files the review needs. | 422 | [`create_approval_request`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_approval_request) | | `not_your_turn` | It is not your turn in the conversation; wait for the answer. | 409 | [`send_qc_message`](https://public-api.dapi.digital/docs/reference/quality-control.md#send_qc_message) | | `option_in_use` | A variant still uses an option value you removed. | 422 | [`update_product`](https://public-api.dapi.digital/docs/reference/products.md#update_product) | | `option_mismatch` | A variant's options do not match the product's options. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant) | | `order_item_not_found` | An item is not on this order. | 404 | [`create_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#create_qc_ticket) | | `order_not_cancellable` | The order cannot be cancelled: it is already cancelled, or production started. Contact support to stop it. | 409 | [`cancel_order`](https://public-api.dapi.digital/docs/reference/orders.md#cancel_order), [`cancel_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#cancel_integrator_order) | | `order_not_eligible` | Issues can only be reported on completed orders. | 409 | [`create_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#create_qc_ticket) | | `order_not_found` | You have no order with this id. | 404 | [`cancel_order`](https://public-api.dapi.digital/docs/reference/orders.md#cancel_order), [`get_order`](https://public-api.dapi.digital/docs/reference/orders.md#get_order), [`get_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#get_integrator_order), [`cancel_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#cancel_integrator_order), [`create_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#create_qc_ticket) | | `payment_failed` | The card was declined, or the charge failed. Nothing was created. | 402 | [`create_order`](https://public-api.dapi.digital/docs/reference/orders.md#create_order), [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `payout_details_not_found` | You have not added payout details yet. | 404 | [`get_payout_details`](https://public-api.dapi.digital/docs/reference/wallet.md#get_payout_details) | | `photo_not_on_item` | A refusal points at a photo that is not one of that product's current photos. | 422 | [`review_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket) | | `plan_limit_reached` | Your plan limit is reached. `details.fix_url` points at upgrading. | 403 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`publish_product`](https://public-api.dapi.digital/docs/reference/products.md#publish_product), [`create_stock`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock), [`create_stock_purchase`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase), [`set_stock_restock`](https://public-api.dapi.digital/docs/reference/stocks.md#set_stock_restock) | | `price_below_minimum` | The price is below the minimum for this variant; `details.minimum` says how much. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant) | | `product_not_found` | You have no product with this id. | 404 | 9 endpoints | | `production_unavailable` | Production is paused, so orders cannot be placed right now. Try again later. | 409 | [`create_order`](https://public-api.dapi.digital/docs/reference/orders.md#create_order), [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `purpose_not_allowed` | The upload purpose is not available to your kind of account. | 403 | [`create_upload`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) | | `qc_item_not_found` | A product is not on this QC ticket. | 404 | [`review_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket) | | `qc_ticket_not_found` | You have no QC ticket with this id. | 404 | [`review_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket), [`send_qc_message`](https://public-api.dapi.digital/docs/reference/quality-control.md#send_qc_message), [`get_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#get_qc_ticket) | | `quantity_exceeds_ordered` | The report asks for more units than were ordered. | 422 | [`create_qc_ticket`](https://public-api.dapi.digital/docs/reference/quality-control.md#create_qc_ticket) | | `quote_not_approved` | Your integrator account is not approved yet, so quotes cannot be ordered. | 422 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `quote_not_eligible` | A quote cannot go in the approval request: unknown, listed twice, still being priced, failed, already submitted, approved or rejected (`details.reason`). | 422 | [`create_approval_request`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_approval_request) | | `quote_not_found` | You have no quote with this id. | 404 | [`get_quote`](https://public-api.dapi.digital/docs/reference/quotes.md#get_quote), [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order), [`estimate_integrator_order_shipping`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#estimate_integrator_order_shipping) | | `quote_not_ready` | The quote is still processing or failed, so it cannot be ordered yet. | 422 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order), [`estimate_integrator_order_shipping`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#estimate_integrator_order_shipping) | | `quote_rejected` | The file was rejected in review, so the quote cannot be ordered. | 422 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order), [`estimate_integrator_order_shipping`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#estimate_integrator_order_shipping) | | `rate_limited` | Too many requests. Wait for the seconds in `Retry-After`. | 429 | 110 endpoints | | `reference_in_use` | You already have an order with this `reference` that is not cancelled; `details.order` is that order. Nothing was placed or charged. | 409 | [`create_order`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) | | `region_not_available` | The region is not one this stock is produced in. | 422 | [`create_stock_purchase`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase), [`set_stock_restock`](https://public-api.dapi.digital/docs/reference/stocks.md#set_stock_restock) | | `region_not_found` | None of your stocks is produced in this region. | 404 | [`get_region`](https://public-api.dapi.digital/docs/reference/stocks.md#get_region) | | `sales_price_below_production` | A unit sales price is below the minimum: the production price plus its share of the card fee. `details.minimum` says how much. | 422 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `same_password` | The new password is the current one. | 400 | [`change_integrator_password`](https://public-api.dapi.digital/docs/reference/integrator-account.md#change_integrator_password) | | `scope_not_allowed` | A scope is unknown or not allowed for your kind of account. | 422 | [`create_api_key`](https://public-api.dapi.digital/docs/reference/api-keys.md#create_api_key) | | `shipping_destination_not_served` | 3DAPI does not deliver to the country: Russia, Belarus, Iran and Syria are refused. | 422 | [`create_order`](https://public-api.dapi.digital/docs/reference/orders.md#create_order), [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order), [`estimate_integrator_order_shipping`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#estimate_integrator_order_shipping), [`get_shipping_quote`](https://public-api.dapi.digital/docs/reference/shipping.md#get_shipping_quote) | | `shipping_zone_not_found` | No active shipping zone serves the country. | 404 | [`get_shipping_quote`](https://public-api.dapi.digital/docs/reference/shipping.md#get_shipping_quote) | | `signup_unavailable` | Sign-up is not available right now. Nothing was kept; try again later. | 503 | [`create_integrator_account`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_integrator_account), [`resend_integrator_confirmation`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#resend_integrator_confirmation) | | `sku_already_used` | The SKU is already used by another of your variants. | 409 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant) | | `slot_count_mismatch` | Multicolor combinations have different numbers of slots. | 422 | [`create_stock`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock), [`add_stock_design`](https://public-api.dapi.digital/docs/reference/stocks.md#add_stock_design) | | `slug_taken` | The slug is already used by another of your products. | 409 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`update_product`](https://public-api.dapi.digital/docs/reference/products.md#update_product) | | `stock_batch_not_found` | The batch is not one of this stock's batches. | 404 | [`list_stock_batch_usage`](https://public-api.dapi.digital/docs/reference/stocks.md#list_stock_batch_usage), [`get_stock_batch`](https://public-api.dapi.digital/docs/reference/stocks.md#get_stock_batch) | | `stock_not_approved` | The stock is not approved yet, so it cannot be used or bought. | 409, 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant), [`create_stock_purchase`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase) | | `stock_not_found` | You have no stock with this id. | 404, 422 | 11 endpoints | | `suggestions_unavailable` | Suggested materials were asked for on a quote that has none. | 422 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `tax_form_required` | A tax form is missing: a W-9 for a US business; outside the US, EU and UK a W-8BEN (person or sole trader) or W-8BEN-E (company). `details.accepted` lists the forms that satisfy it. | 422 | [`save_billing_details`](https://public-api.dapi.digital/docs/reference/wallet.md#save_billing_details) | | `ticket_closed` | The question is closed. | 409 | [`send_qc_message`](https://public-api.dapi.digital/docs/reference/quality-control.md#send_qc_message) | | `too_many_buckets` | The period and granularity give too many buckets. Narrow the period. | 400 | [`get_integrator_analytics`](https://public-api.dapi.digital/docs/reference/analytics.md#get_integrator_analytics) | | `too_many_primary_images` | More than one image is marked primary. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`update_product`](https://public-api.dapi.digital/docs/reference/products.md#update_product), [`create_stock`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock), [`update_stock`](https://public-api.dapi.digital/docs/reference/stocks.md#update_stock) | | `too_many_variants` | A product can have up to 200 variants. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant) | | `unknown_attachment` | An attachment is sent as one to keep, but there is none yet. Send it as an upload. | 422 | [`create_stock`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock), [`update_stock`](https://public-api.dapi.digital/docs/reference/stocks.md#update_stock) | | `unknown_design_key` | A variant names a design `key` that is not in the request. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product) | | `unknown_image` | An image is sent as one to keep, but there is none yet. Send it as an upload. | 422 | [`create_stock`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock), [`update_stock`](https://public-api.dapi.digital/docs/reference/stocks.md#update_stock), [`create_extra`](https://public-api.dapi.digital/docs/reference/extras.md#create_extra), [`update_extra`](https://public-api.dapi.digital/docs/reference/extras.md#update_extra) | | `unknown_requirement` | The compliance requirement does not apply to this product. | 422 | [`upload_compliance_document`](https://public-api.dapi.digital/docs/reference/products.md#upload_compliance_document) | | `unknown_upload` | The upload id is unknown. | 422 | 11 endpoints | | `upload_already_used` | The upload was already used by another quote. Start a new upload. | 422 | 11 endpoints | | `upload_expired` | The upload expired (uploads last 24 hours). Start a new one. | 422 | 11 endpoints | | `upload_limit_reached` | You used the 25 uploads of this onboarding round. Submit your files for review next. | 409 | [`create_quote`](https://public-api.dapi.digital/docs/reference/quotes.md#create_quote) | | `upload_missing` | The file was never sent to the upload's `upload_url`. | 422 | 11 endpoints | | `upload_purpose_mismatch` | The upload was started for another purpose. | 422 | 11 endpoints | | `validation_failed` | A field is missing or has the wrong type or value. `details.errors` lists the fields. | 400 | 64 endpoints | | `variant_managed_by_channel` | The variant was imported from a sales channel that owns its SKU and price. | 409 | [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant) | | `variant_needs_design_or_stock` | A variant needs at least one design or stock. | 422 | [`create_product`](https://public-api.dapi.digital/docs/reference/products.md#create_product), [`create_variant`](https://public-api.dapi.digital/docs/reference/products.md#create_variant), [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant) | | `variant_not_found` | You have no variant with this id. | 404 | [`update_variant`](https://public-api.dapi.digital/docs/reference/products.md#update_variant), [`delete_variant`](https://public-api.dapi.digital/docs/reference/products.md#delete_variant) | | `variant_not_orderable` | The variant is unknown, inactive, or its product is not approved. | 422 | [`create_order`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) | | `vat_number_invalid` | VIES did not confirm the business buyer's EU VAT number. Nothing was created. | 422 | [`create_integrator_order`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) | | `weak_password` | The password is too weak. | 400 | [`create_integrator_account`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_integrator_account), [`change_integrator_password`](https://public-api.dapi.digital/docs/reference/integrator-account.md#change_integrator_password) | | `webhook_endpoint_disabled` | The endpoint is disabled. Enable it first. | 409 | [`resend_event`](https://public-api.dapi.digital/docs/reference/webhooks.md#resend_event) | | `webhook_endpoint_limit_reached` | You already have 10 endpoints. | 409 | [`create_webhook_endpoint`](https://public-api.dapi.digital/docs/reference/webhooks.md#create_webhook_endpoint) | | `webhook_endpoint_not_found` | You have no webhook endpoint with this id. | 404 | [`update_webhook_endpoint`](https://public-api.dapi.digital/docs/reference/webhooks.md#update_webhook_endpoint), [`delete_webhook_endpoint`](https://public-api.dapi.digital/docs/reference/webhooks.md#delete_webhook_endpoint), [`rotate_webhook_endpoint_secret`](https://public-api.dapi.digital/docs/reference/webhooks.md#rotate_webhook_endpoint_secret), [`send_test_webhook_event`](https://public-api.dapi.digital/docs/reference/webhooks.md#send_test_webhook_event), [`list_webhook_endpoint_deliveries`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_webhook_endpoint_deliveries), [`resend_event`](https://public-api.dapi.digital/docs/reference/webhooks.md#resend_event) | | `webhook_url_not_allowed` | The URL is not a public https address. | 422 | [`create_webhook_endpoint`](https://public-api.dapi.digital/docs/reference/webhooks.md#create_webhook_endpoint), [`update_webhook_endpoint`](https://public-api.dapi.digital/docs/reference/webhooks.md#update_webhook_endpoint) | | `withdrawal_cooldown` | The cooldown since your last withdrawal has not ended. | 409 | [`create_withdrawal`](https://public-api.dapi.digital/docs/reference/wallet.md#create_withdrawal) | | `withdrawal_not_found` | No withdrawal request with this id. | 404 | [`cancel_withdrawal`](https://public-api.dapi.digital/docs/reference/wallet.md#cancel_withdrawal) | | `withdrawal_not_pending` | The withdrawal is no longer pending. | 409 | [`cancel_withdrawal`](https://public-api.dapi.digital/docs/reference/wallet.md#cancel_withdrawal) | | `withdrawal_pending` | A withdrawal request is already pending. | 409 | [`create_withdrawal`](https://public-api.dapi.digital/docs/reference/wallet.md#create_withdrawal) | --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/errors. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Pagination For designers and integrators. **Lists** return `{ "object": "list", "data": [...], "has_more": true, "next_cursor": "..." }`. Pass `next_cursor` back as `cursor` for the next page. ### Parameters - **`limit`**: How many results per page, from 1 to 100. Defaults to 20. - **`cursor`**: Where to continue from: the `next_cursor` of the previous page. Omit for the first page. ### The list object Every list answers with the same envelope. When `has_more` is false, you have reached the end. **GET /v2/orders** ```json { "object": "list", "data": [ { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "in_production", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1 } ], "has_more": false, "next_cursor": null } ``` ### Cursors **Cursors** are signed: pass `next_cursor` back exactly as received. An edited cursor is refused with `invalid_cursor`. **Fetch every page (Node.js)** ```javascript let cursor; const orders = []; do { const url = new URL('/v2/orders', process.env.DAPI_API_URL); url.searchParams.set('limit', '100'); if (cursor) url.searchParams.set('cursor', cursor); const response = await fetch(url, { headers: { 'x-api-key': process.env.DAPI_API_KEY }, }); const page = await response.json(); orders.push(...page.data); cursor = page.has_more ? page.next_cursor : undefined; } while (cursor); ``` **Fetch every page (Python)** ```python import os import requests orders = [] params = {"limit": 100} while True: page = requests.get( f"{os.environ['DAPI_API_URL']}/v2/orders", params=params, headers={"x-api-key": os.environ["DAPI_API_KEY"]}, ).json() orders.extend(page["data"]) if not page["has_more"]: break params["cursor"] = page["next_cursor"] ``` ### Syncing changes Only orders changed after this time. Use it to sync status changes since your last poll. For changes as they happen, prefer [webhooks](https://public-api.dapi.digital/docs/guides/webhooks.md). - [GET List products `/v2/products`](https://public-api.dapi.digital/docs/reference/products.md#list_products) - [GET List orders `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#list_orders) ### Paginated lists - [GET List quotes `/v2/quotes`](https://public-api.dapi.digital/docs/reference/quotes.md#list_quotes) - [GET List approval requests `/v2/integrator/approval-requests`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#list_approval_requests) - [GET List your API requests `/v2/api-requests`](https://public-api.dapi.digital/docs/reference/logs.md#list_api_requests) - [GET List products `/v2/products`](https://public-api.dapi.digital/docs/reference/products.md#list_products) - [GET List orders `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#list_orders) - [GET List your orders `/v2/integrator/orders`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#list_integrator_orders) - [GET List import issues `/v2/import-issues`](https://public-api.dapi.digital/docs/reference/orders.md#list_import_issues) - [GET List QC tickets `/v2/qc-tickets`](https://public-api.dapi.digital/docs/reference/quality-control.md#list_qc_tickets) - [GET List stocks `/v2/stocks`](https://public-api.dapi.digital/docs/reference/stocks.md#list_stocks) - [GET List batches across stocks `/v2/stock-batches`](https://public-api.dapi.digital/docs/reference/stocks.md#list_all_stock_batches) - [GET List what used a batch `/v2/stocks/{id}/batches/{batch_id}/usage`](https://public-api.dapi.digital/docs/reference/stocks.md#list_stock_batch_usage) - [GET List the batches of a stock `/v2/stocks/{id}/batches`](https://public-api.dapi.digital/docs/reference/stocks.md#list_stock_batches) - [GET List extra parts `/v2/extras`](https://public-api.dapi.digital/docs/reference/extras.md#list_extras) - [GET List transactions `/v2/transactions`](https://public-api.dapi.digital/docs/reference/wallet.md#list_transactions) - [GET List withdrawals `/v2/withdrawals`](https://public-api.dapi.digital/docs/reference/wallet.md#list_withdrawals) - [GET List events `/v2/events`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_events) - [GET List webhook endpoints `/v2/webhook-endpoints`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_webhook_endpoints) - [GET List deliveries to an endpoint `/v2/webhook-endpoints/{id}/deliveries`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_webhook_endpoint_deliveries) - [GET List catalog materials `/v2/materials`](https://public-api.dapi.digital/docs/reference/materials.md#list_materials) - [GET List product categories `/v2/categories`](https://public-api.dapi.digital/docs/reference/categories.md#list_categories) --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/pagination. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Expanding objects For designers and integrators. Related objects come back as short references. Ask for the full object with `expand[]` and save a request. ### How it works **Expanding**: related objects are references, `{ "id", "object", "name" }`. Add `expand[]=` (repeatable, up to 3 levels, for example `expand[]=variants.contents.design`) to receive the full object instead, identical to what its own endpoint returns. An expanded object needs the read scope its own endpoint needs: `variants.contents.extra` needs `extras:read`, `variants.contents.stock` needs `stocks:read`, and a design or attachment needs the read scope of the product or stock it belongs to. Without that scope the reference stays as it is; it is not an error. Each `expand[]` parameter lists the scopes its paths need. **Shell** ```bash curl -G "$DAPI_API_URL/v2/products" \ -H "x-api-key: $DAPI_API_KEY" \ --data-urlencode "expand[]=variants" \ --data-urlencode "expand[]=variants.contents.design" ``` ### Paths by endpoint Each endpoint accepts its own paths. Anything else is refused with `invalid_expand`. - **[GET `/v2/products`](https://public-api.dapi.digital/docs/reference/products.md#list_products)**: `variants``category``variants.category``variants.contents.design``variants.contents.stock``variants.contents.extra``variants.contents.materials` - **[GET `/v2/products/{id}`](https://public-api.dapi.digital/docs/reference/products.md#get_product)**: `category``variants.category``variants.contents.design``variants.contents.stock``variants.contents.extra``variants.contents.materials``attachments``compliance` - **[GET `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#list_orders)**: `items` - **[GET `/v2/integrator/orders`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#list_integrator_orders)**: `items` - **[GET `/v2/stocks/{id}`](https://public-api.dapi.digital/docs/reference/stocks.md#get_stock)**: `contents.design``contents.extra``attachments` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/expanding. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Idempotency For designers and integrators. Networks fail. Send an `Idempotency-Key` header with a write, and you can retry it without doing anything twice. ### The header Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. **Shell** ```bash curl -X POST "$DAPI_API_URL/v2/orders/ord_123/cancel" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Idempotency-Key: 8e7c6c1e-2f0a-4f7b-9d3e-5b1f0c2a9e41" ``` ### Endpoints that accept it - [POST Quote a model file `/v2/quotes`](https://public-api.dapi.digital/docs/reference/quotes.md#create_quote) - [POST Submit sample files for review `/v2/integrator/approval-requests`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_approval_request) - [POST Create a product `/v2/products`](https://public-api.dapi.digital/docs/reference/products.md#create_product) - [POST Publish a product `/v2/products/{id}/publish`](https://public-api.dapi.digital/docs/reference/products.md#publish_product) - [POST Unpublish a product `/v2/products/{id}/unpublish`](https://public-api.dapi.digital/docs/reference/products.md#unpublish_product) - [POST Add a design to a product `/v2/products/{id}/designs`](https://public-api.dapi.digital/docs/reference/designs.md#add_design) - [POST Add a variant `/v2/products/{id}/variants`](https://public-api.dapi.digital/docs/reference/products.md#create_variant) - [POST Upload a compliance document `/v2/products/{id}/compliance/documents`](https://public-api.dapi.digital/docs/reference/products.md#upload_compliance_document) - [POST Create an order `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) - [POST Cancel an order `/v2/orders/{id}/cancel`](https://public-api.dapi.digital/docs/reference/orders.md#cancel_order) - [POST Order prints of your quotes `/v2/integrator/orders`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) - [POST Estimate the shipping of an order `/v2/integrator/orders/shipping-estimate`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#estimate_integrator_order_shipping) - [POST Cancel an order `/v2/integrator/orders/{id}/cancel`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#cancel_integrator_order) - [POST Review a quality check `/v2/qc-tickets/{id}/review`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket) - [POST Reply on a QC conversation `/v2/qc-tickets/{id}/messages`](https://public-api.dapi.digital/docs/reference/quality-control.md#send_qc_message) - [POST Report an issue with a delivered order `/v2/qc-tickets`](https://public-api.dapi.digital/docs/reference/quality-control.md#create_qc_ticket) - [POST Create a stock `/v2/stocks`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock) - [POST Add a design to a stock `/v2/stocks/{id}/designs`](https://public-api.dapi.digital/docs/reference/stocks.md#add_stock_design) - [POST Buy stock batches `/v2/stock-purchases`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase) - [POST Create an extra part `/v2/extras`](https://public-api.dapi.digital/docs/reference/extras.md#create_extra) - [POST Start a file upload `/v2/uploads`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/idempotency. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Rate limits For designers and integrators. Every authenticated request counts toward 500 per minute per API key (per user for signed-in dashboard sessions). Operations that create quotes, uploads and orders, or move money, also count toward 60 per minute. Public sign-up, catalog and shipping endpoints are limited per IP address. Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`; past a limit the answer is 429 `rate_limited` with a `Retry-After` header. ### The limits Limits are counted in fixed windows. Each operation lists the limits it counts toward in `x-ratelimit` (`limit` requests per `window_seconds`, `per` API key or user, or per IP address); these are the defaults. | Applies to | Limit | Counted per | | --- | --- | --- | | Every authenticated request | 500 per minute | API key, or user for dashboard sessions | | Creating quotes, uploads and orders, cancelling orders, top-ups, card setup and withdrawals (on top of the above) | 60 per minute | API key, or user | | Integrator sign-up (`create_integrator_account`) | 10 per hour | IP address | | Resending the confirmation email (`resend_integrator_confirmation`) | 5 per hour | IP address | | Catalog and shipping reads (materials, categories, shipping rates and quotes) | 120 per minute | IP address | `get_health` and the OpenAPI document are not limited. Every limited response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix seconds) for the limit closest to being reached. Past a limit the API answers 429 with code `rate_limited`, a `Retry-After` header in seconds, and `details` with `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. A refused request does not count. A request replayed with the same `Idempotency-Key` counts like any other request. ### Quotes, uploads, orders and payments These operations start slicing, create files or move money, so they also count toward a tighter limit per API key (or signed-in user). Each request still counts toward the general limit too. - [POST Quote a model file `/v2/quotes`](https://public-api.dapi.digital/docs/reference/quotes.md#create_quote) - [POST Create an order `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) - [POST Cancel an order `/v2/orders/{id}/cancel`](https://public-api.dapi.digital/docs/reference/orders.md#cancel_order) - [POST Order prints of your quotes `/v2/integrator/orders`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) - [POST Cancel an order `/v2/integrator/orders/{id}/cancel`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#cancel_integrator_order) - [POST Buy stock batches `/v2/stock-purchases`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase) - [POST Start adding a card `/v2/cards/setup-sessions`](https://public-api.dapi.digital/docs/reference/wallet.md#start_card_setup) - [POST Top up your wallet `/v2/top-ups`](https://public-api.dapi.digital/docs/reference/wallet.md#start_top_up) - [POST Request a withdrawal `/v2/withdrawals`](https://public-api.dapi.digital/docs/reference/wallet.md#create_withdrawal) - [POST Start a file upload `/v2/uploads`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) ### Public endpoints Endpoints that need no key are limited per IP address: - [POST Sign up as an integrator `10 per hour`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_integrator_account) - [POST Resend the confirmation email `5 per hour`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#resend_integrator_confirmation) - [GET Get the shipping rate card `120 per minute`](https://public-api.dapi.digital/docs/reference/shipping.md#get_shipping_rates) - [GET Get a shipping price `120 per minute`](https://public-api.dapi.digital/docs/reference/shipping.md#get_shipping_quote) - [GET List catalog materials `120 per minute`](https://public-api.dapi.digital/docs/reference/materials.md#list_materials) - [GET Get a catalog material `120 per minute`](https://public-api.dapi.digital/docs/reference/materials.md#get_material) - [GET List product categories `120 per minute`](https://public-api.dapi.digital/docs/reference/categories.md#list_categories) - [GET Get a product category `120 per minute`](https://public-api.dapi.digital/docs/reference/categories.md#get_category) ### Handling a 429 Watch `X-RateLimit-Remaining` and slow down before it reaches 0. When a request is refused, wait for the number of seconds in `Retry-After`, then send it again. Retry a write with the same `Idempotency-Key`, so it never runs twice. **Retry after a 429 (Node.js)** ```javascript async function callWithRetry(url, init, attempts = 5) { for (let attempt = 1; ; attempt++) { const res = await fetch(url, init); if (res.status !== 429 || attempt === attempts) return res; // Retry-After is in seconds; wait at least that long. const seconds = Number(res.headers.get('retry-after') ?? 1); await new Promise((resolve) => setTimeout(resolve, seconds * 1000)); } } ``` **Retry after a 429 (Python)** ```python import time import requests def call_with_retry(method, url, attempts=5, **kwargs): for attempt in range(1, attempts + 1): res = requests.request(method, url, **kwargs) if res.status_code != 429 or attempt == attempts: return res # Retry-After is in seconds; wait at least that long. time.sleep(int(res.headers.get("Retry-After", "1"))) ``` **A 429 response body** ```json { "status_code": 429, "error": "Too Many Requests", "code": "rate_limited", "message": "Too many requests with this API key: the limit is 500 per minute. Retry after 42 seconds (at 2026-10-22T10:01:00.000Z).", "details": { "limit": 500, "window_seconds": 60, "reset_at": "2026-10-22T10:01:00.000Z", "retry_after_seconds": 42, "policy": "per_credential", "request_id": "req_6Yb2kQe0VxLr4TnPz8sWa1Mc" } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/rate-limits. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Uploads For designers and integrators. Reserves a slot for one file and returns where to send it. Files go straight to storage, never through the API: (1) call this, (2) PUT the bytes to `upload_url` with the given headers, (3) reference the returned id in the write that uses the file. A type, file name extension (missing, not accepted for the purpose, or not matching `content_type`) or size the purpose does not allow is refused here, before anything is uploaded. The contents are checked when a write uses the upload (422 `invalid_file`). Designers may use every purpose except `quote_file` and `withdrawal_invoice`; integrators may use `quote_file` and `withdrawal_invoice` (with the `quotes:write` scope) and `extra_image` (with the `extras:write` scope). ### Three steps 1. [Create an upload](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) with the file's purpose, name, type and size. 2. Send the bytes to `upload_url` with the `method` and `headers` it gives. 3. Reference the upload id in the write that uses the file. **Upload a design file (Node.js)** ```javascript import { readFile } from 'node:fs/promises'; const file = await readFile('tracker.3mf'); // 1. Reserve a slot. const upload = await fetch(`${process.env.DAPI_API_URL}/v2/uploads`, { method: 'POST', headers: { 'x-api-key': process.env.DAPI_API_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ purpose: 'design_file', file_name: 'tracker.3mf', content_type: 'model/3mf', size_bytes: file.byteLength, }), }).then((r) => r.json()); // 2. Send the bytes straight to storage. await fetch(upload.upload_url, { method: upload.method, headers: upload.headers, body: file, }); // 3. Use upload.id in the write, for example a new design. ``` **Upload a design file (Python)** ```python import os import requests with open("tracker.3mf", "rb") as f: data = f.read() ## 1. Reserve a slot. upload = requests.post( f"{os.environ['DAPI_API_URL']}/v2/uploads", headers={"x-api-key": os.environ["DAPI_API_KEY"]}, json={ "purpose": "design_file", "file_name": "tracker.3mf", "content_type": "model/3mf", "size_bytes": len(data), }, ).json() ## 2. Send the bytes straight to storage. requests.request( upload["method"], upload["upload_url"], headers=upload["headers"], data=data, ) ## 3. Use upload["id"] in the write, for example a new design. ``` ### Purposes and limits What the file is for. Each purpose accepts its own types and size: - `extra_image`: a photo of an extra part; image/png, image/jpeg, image/webp; file names ending in .png, .jpg, .jpeg, .jfif, .webp (or no extension); up to 25,000,000 bytes (25 MB). - `product_image`: a product or variant photo; image/png, image/jpeg, image/webp; file names ending in .png, .jpg, .jpeg, .jfif, .webp (or no extension); up to 25,000,000 bytes (25 MB). - `design_file`: a printable model (.3mf, .stl or .obj); model/3mf, model/stl, model/obj, application/octet-stream; file names ending in .3mf, .stl, .obj; up to 150,000,000 bytes (150 MB). - `order_file`: a model printed for one order line instead of its design (.3mf or .stl); only for accounts with custom files on; model/3mf, model/stl, application/sla, application/vnd.ms-pki.stl, application/octet-stream; file names ending in .3mf, .stl; up to 1,073,741,824 bytes (1024 MiB). - `attachment`: a production document for the farm (PDF, image or short video); application/pdf, image/png, image/jpeg, video/mp4; file names ending in .pdf, .png, .jpg, .jpeg, .jfif, .mp4, .m4v (or no extension); up to 25,000,000 bytes (25 MB). - `qc_photo`: a photo for a QC message or issue report; image/png, image/jpeg, image/webp; file names ending in .png, .jpg, .jpeg, .jfif, .webp (or no extension); up to 25,000,000 bytes (25 MB). - `compliance_document`: a product safety document (PDF or image); application/pdf, image/png, image/jpeg; file names ending in .pdf, .png, .jpg, .jpeg, .jfif (or no extension); up to 25,000,000 bytes (25 MB). - `quote_file`: a model to quote (.stl, .3mf, .obj, .step or .stp); integrators only; model/stl, model/3mf, model/obj, model/step, application/step, application/sla, application/vnd.ms-pki.stl, application/octet-stream; file names ending in .stl, .3mf, .obj, .step, .stp; up to 262,144,000 bytes (250 MiB). - `withdrawal_invoice`: an invoice (PDF, in USD) for a withdrawal request; integrators only; application/pdf; file names ending in .pdf; up to 10,485,760 bytes (10 MiB). The extension must match `content_type`. When a write uses the upload, its contents are checked against that type (the first bytes of an image, PDF or video; the header and structure of a model), and a file that is not what it claims is refused with 422 `invalid_file`. ### Expiry After this the upload URL stops working and the id can no longer be referenced. Uploads not used by then are deleted. Errors like `upload_expired`, `upload_purpose_mismatch` and `file_too_large` name the problem in `message`. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/uploads. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Webhooks For designers and integrators. 3DAPI sends a signed POST to your endpoint when something changes, so you never have to poll. Every event also stays in the events log for 30 days. ### Delivery Every delivery is a POST with a JSON event and three headers: `X-Dapi-Webhook-Signature: sha256=`, an HMAC-SHA256 of `.` with your endpoint secret; `X-Dapi-Webhook-Timestamp`, the Unix time in seconds it was signed (every attempt is signed again; reject a timestamp more than 5 minutes from your clock to stop replays); and `X-Dapi-Event-Id`, the event id. Answer with any 2xx within 10 seconds. Failed deliveries are retried with backoff for 24 hours, so the same event can arrive more than once: deduplicate on the event id. **A delivery** ```http POST https://your-server.example/dapi-webhooks Content-Type: application/json X-Dapi-Webhook-Signature: sha256=<64 hex characters> X-Dapi-Webhook-Timestamp: 1791974520 X-Dapi-Event-Id: evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu ``` **Body of order.created** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.created", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "paid", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": null, "region": null } } ``` ### Verify signatures Compute the HMAC over the timestamp and the raw body exactly as received, compare it in constant time, and refuse old timestamps. Answer quickly with a 2xx and do the work afterwards. **Verify a delivery (Node.js)** ```javascript import crypto from 'node:crypto'; // Call with the raw request body, before any JSON parsing. export function verifyDapiWebhook(rawBody, headers, secret) { const timestamp = headers['x-dapi-webhook-timestamp']; const signature = headers['x-dapi-webhook-signature'] ?? ''; // Reject old deliveries so a captured request cannot be replayed. const age = Math.abs(Date.now() / 1000 - Number(timestamp)); if (!timestamp || age > 300) return false; const expected = 'sha256=' + crypto .createHmac('sha256', secret) .update(`${timestamp}.${rawBody}`) .digest('hex'); const a = Buffer.from(signature); const b = Buffer.from(expected); return a.length === b.length && crypto.timingSafeEqual(a, b); } ``` **Verify a delivery (Python)** ```python import hashlib import hmac import time ## Call with the raw request body (bytes), before any JSON parsing. def verify_dapi_webhook(raw_body, headers, secret): timestamp = headers.get("x-dapi-webhook-timestamp") signature = headers.get("x-dapi-webhook-signature", "") # Reject old deliveries so a captured request cannot be replayed. if not timestamp or abs(time.time() - int(timestamp)) > 300: return False signed = timestamp.encode() + b"." + raw_body expected = "sha256=" + hmac.new( secret.encode(), signed, hashlib.sha256 ).hexdigest() return hmac.compare_digest(signature, expected) ``` ### Event types - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) An order was placed, from any channel. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) The order was paid. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) A production partner took the order. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) Production started. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) The order shipped; `shipping` has the tracking details. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) The order was delivered and settled. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) There is not enough stock to fulfil the order. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) The production partner refused the order. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) The order was sent back after shipping. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) The order was cancelled. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. - [`checkout.expired`](https://public-api.dapi.digital/docs/reference/events/checkout.expired.md) Integrators only. A `checkout` order was not paid within 24 hours of its link opening, so the order was cancelled. `data.object` is the order as get\_integrator\_order returns it. - [`quote.ready`](https://public-api.dapi.digital/docs/reference/events/quote.ready.md) Integrators only. Slicing finished and the quote is priced: `price` is set, for the file that gets printed (`file.production_version` when 3DAPI adapted your upload, otherwise the upload). Sent once per quote. `data.object` is the quote as get\_quote returns it; its download links were signed when the event was sent and expire 15 minutes later, so fetch the quote for fresh ones. - [`quote.failed`](https://public-api.dapi.digital/docs/reference/events/quote.failed.md) Integrators only. The file could not be priced: slicing failed, took too long and was given up, or could not be started. `failure_reason` says why; upload a corrected file as a new quote. A failed quote no longer counts toward your upload allowance. - [`quote.approved`](https://public-api.dapi.digital/docs/reference/events/quote.approved.md) Integrators only. 3DAPI approved the file in your approval request: `approval.status` is `approved` and the file counts toward your account approval. Sent when 3DAPI completes the review of your approval request, with the final decision on the file, just before the outcome event. - [`quote.rejected`](https://public-api.dapi.digital/docs/reference/events/quote.rejected.md) Integrators only. 3DAPI rejected the file in your approval request; `approval.reason` says why. Rejected quotes cannot be submitted again: upload a corrected file as a new quote. Sent when 3DAPI completes the review of your approval request, with the final decision on the file. - [`approval_request.approved`](https://public-api.dapi.digital/docs/reference/events/approval_request.approved.md) Integrators only. Your account became approved: quotes are unlimited and you can place orders. Sent once, when a completed review approves the account or when 3DAPI approves it directly. `data.object` is your latest approval request as get\_approval\_request returns it (still `in_review` when approved directly during a review). - [`approval_request.changes_requested`](https://public-api.dapi.digital/docs/reference/events/approval_request.changes_requested.md) Integrators only. 3DAPI completed the review of your approval request and rejected some files, so your account is not approved yet. Each rejected file in `quotes` has a `reason`; upload corrected files and send a new request (get\_integrator\_onboarding says how many). You get a fresh upload allowance. ### Endpoints and the events log Add endpoints on the Webhooks page of your dashboard: several per account, each with its own events and signing secret (shown once, on creation and on rotation), at most 10 per account, enabled or not. The dashboard also sends test events and shows every delivery with your server's answers. The events log keeps the last 30 days of events, delivered or not; each event shows where it was sent and the API request that caused it, and can be sent again with the same event id. Reading endpoints and events with an API key needs the `webhooks:read` scope; managing them needs a dashboard session. - [GET List events `/v2/events`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_events) - [GET Get an event `/v2/events/{id}`](https://public-api.dapi.digital/docs/reference/webhooks.md#get_event) - [GET List webhook endpoints `/v2/webhook-endpoints`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_webhook_endpoints) - [POST Create a webhook endpoint `/v2/webhook-endpoints`](https://public-api.dapi.digital/docs/reference/webhooks.md#create_webhook_endpoint) - [PATCH Update a webhook endpoint `/v2/webhook-endpoints/{id}`](https://public-api.dapi.digital/docs/reference/webhooks.md#update_webhook_endpoint) - [DELETE Delete a webhook endpoint `/v2/webhook-endpoints/{id}`](https://public-api.dapi.digital/docs/reference/webhooks.md#delete_webhook_endpoint) - [POST Rotate an endpoint secret `/v2/webhook-endpoints/{id}/rotate-secret`](https://public-api.dapi.digital/docs/reference/webhooks.md#rotate_webhook_endpoint_secret) - [POST Send a test event `/v2/webhook-endpoints/{id}/test`](https://public-api.dapi.digital/docs/reference/webhooks.md#send_test_webhook_event) - [GET List deliveries to an endpoint `/v2/webhook-endpoints/{id}/deliveries`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_webhook_endpoint_deliveries) - [GET Get where an event was sent `/v2/events/{id}/deliveries`](https://public-api.dapi.digital/docs/reference/webhooks.md#get_event_deliveries) - [POST Send an event again `/v2/events/{id}/resend`](https://public-api.dapi.digital/docs/reference/webhooks.md#resend_event) --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/webhooks. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Submit a product for review For designers. Uploads a design file and creates a private product from it. 3DAPI then reviews the design, which a person does, so do not poll for it: wait for the `product.approved` or `product.rejected` webhook (or check `review.status` later), then run `publish_product`. Variants, images and attachments can be sent in the same `create_product` call; this workflow keeps the minimum. ### What you need - `name` (string, required): Product name. - `file_name` (string, required): Name of the design file, for example `tracker.3mf`. - `content_type` (string, required): MIME type of the design file: `model/3mf`, `model/stl`, `model/obj` or `application/octet-stream`. - `size_bytes` (integer, required): Size of the design file in bytes, up to 150 MB. - `materials` (array of string, required): Catalog material ids (`mat_...`) the design may be printed in. `list_materials` lists them. - `idempotency_key` (string): A unique string for this attempt, for example a UUID. Send the same value when you retry, so the write happens once. ### Step 1: Start a file upload [POST `/v2/uploads`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) Reserve an upload for the design file. Then send the file bytes to `upload_url` with the returned `method` and `headers`. That transfer goes straight to storage, not to this API, so it is not a step here; do it before the next step. **Request body** ```json { "purpose": "design_file", "file_name": "$inputs.file_name", "content_type": "$inputs.content_type", "size_bytes": "$inputs.size_bytes" } ``` Succeeds when: - `$statusCode == 201` Keeps for the next steps: - `upload_id`: `$response.body#/id` - `upload_url`: `$response.body#/upload_url` - `method`: `$response.body#/method` - `headers`: `$response.body#/headers` ### Step 2: Create a product [POST `/v2/products`](https://public-api.dapi.digital/docs/reference/products.md#create_product) Create the private product with the uploaded file as its design. It starts with `review.status: pending`. A full plan is refused with `plan_limit_reached`, whose `details.fix_url` opens the upgrade page; a file that never reached `upload_url` is refused with `upload_missing`. **Parameters** ```json { "header Idempotency-Key": "$inputs.idempotency_key" } ``` **Request body** ```json { "name": "$inputs.name", "designs": [ { "key": "main", "file": { "upload": "$steps.upload_design.outputs.upload_id" }, "materials": { "mode": "single", "allowed": "$inputs.materials" } } ] } ``` Succeeds when: - `$statusCode == 201` Otherwise: - `retry_server_error`: retry after 5 seconds, at most 3 times, when `$statusCode >= 500`. - `plan_limit_reached`: stop the workflow when `$statusCode == 403`. Keeps for the next steps: - `product_id`: `$response.body#/id` - `review_status`: `$response.body#/review/status` ### As a workflow file The workflow returns: - `product_id`: `$steps.create_product.outputs.product_id` - `review_status`: `$steps.create_product.outputs.review_status` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `submit_product` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/submit-product. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Publish a product For designers. Checks that nothing blocks publishing, then publishes. When something does, the first step ends the workflow and `blockers` says what to fix, in order: account blockers (business registration, store settings) are fixed in the dashboard, product blockers (category, compliance documents) through the API. ### What you need - `product_id` (string, required): The product to publish (`prd_...`). ### Step 1: Get a product [GET `/v2/products/{id}`](https://public-api.dapi.digital/docs/reference/products.md#get_product) Read the product. `publishing.can_publish` is true once its designs are approved and nothing else blocks it; otherwise `publishing.blockers` lists each blocker with a `code` and what to do. **Parameters** ```json { "path id": "$inputs.product_id" } ``` Succeeds when: - `$statusCode == 200` - `$response.body#/publishing/can_publish == true` Keeps for the next steps: - `review_status`: `$response.body#/review/status` - `blockers`: `$response.body#/publishing/blockers` ### Step 2: Publish a product [POST `/v2/products/{id}/publish`](https://public-api.dapi.digital/docs/reference/products.md#publish_product) Publish. Refused with `plan_limit_reached` when your plan limit of public products is reached, or `cannot_publish` (with `details.blockers`) if something changed since the check. **Parameters** ```json { "path id": "$inputs.product_id" } ``` Succeeds when: - `$statusCode == 200` Otherwise: - `plan_limit_reached`: stop the workflow when `$statusCode == 403`. - `cannot_publish`: stop the workflow when `$statusCode == 409`. Keeps for the next steps: - `is_public`: `$response.body#/publishing/is_public` ### As a workflow file The workflow returns: - `is_public`: `$steps.publish.outputs.is_public` - `blockers`: `$steps.check_product.outputs.blockers` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `publish_product` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/publish-product. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Place an order For designers. Places an order at cost (production price, shipping and VAT) paid from your wallet, with any shortfall charged to your saved card, for example for a sale on your own website. Send an `Idempotency-Key` and reuse it on every retry: an order is created at most once. Follow the order with the `order.*` webhooks. To print your own file on a line instead of the variant's design, see Order with a custom file. ### What you need - `items` (array of object, required): What to order: `{ "variant": "var_...", "quantity": 1 }` per line. Each variant must be yours, active and approved. - `customer` (object, required): The recipient: `name`, `email` and optionally `phone`. - `shipping_address` (object, required): Where to ship: `line1`, `city`, `country_code` (ISO alpha-2) and optionally `line2`, `state`, `postal_code`. - `reference` (string): Your own reference for the order, for example your order number. - `idempotency_key` (string, required): A unique string for this attempt, for example a UUID. Send the same value when you retry, so the write happens once. ### Step 1: Create an order [POST `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) Create and pay the order. It comes back `paid` and goes to production. `payment_failed` (402) means no order was created: add or update the saved card in the dashboard, then retry with the same `Idempotency-Key`. `variant_not_orderable` (422) names a variant that is unknown, inactive or not approved. **Parameters** ```json { "header Idempotency-Key": "$inputs.idempotency_key" } ``` **Request body** ```json { "items": "$inputs.items", "customer": "$inputs.customer", "shipping_address": "$inputs.shipping_address", "reference": "$inputs.reference" } ``` Succeeds when: - `$statusCode == 201` Otherwise: - `retry_server_error`: retry after 5 seconds, at most 3 times, when `$statusCode >= 500`. - `payment_failed`: stop the workflow when `$statusCode == 402`. - `variant_not_orderable`: stop the workflow when `$statusCode == 422`. Keeps for the next steps: - `order_id`: `$response.body#/id` - `number`: `$response.body#/number` - `status`: `$response.body#/status` - `total`: `$response.body#/charges/total` ### As a workflow file The workflow returns: - `order_id`: `$steps.create_order.outputs.order_id` - `number`: `$steps.create_order.outputs.number` - `total`: `$steps.create_order.outputs.total` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `place_order` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/place-order. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Order with a custom file For designers. Prints your own .3mf or .stl on an order line instead of the variant's design, for example a keychain with a different name for every customer. Custom files are turned on per account: ask [contact@dapi.digital](mailto:contact@dapi.digital). The variant must be a single design, and its production price is what the line costs, so the file should weigh about the same as the design it replaces. Files are not reviewed or re-sliced: they go straight to production as sent. ### What you need - `variant` (string, required): The variant to print (`var_...`): yours, active, approved and a single design. - `file_name` (string, required): Name of the file to print, ending in `.3mf` or `.stl`, for example `keychain-anna.3mf`. - `content_type` (string, required): MIME type of the file: `model/3mf` or `model/stl`. - `size_bytes` (integer, required): Size of the file in bytes, up to 1 GiB. - `customer` (object, required): The recipient: `name`, `email` and optionally `phone`. - `shipping_address` (object, required): Where to ship: `line1`, `city`, `country_code` (ISO alpha-2) and optionally `line2`, `state`, `postal_code`. - `idempotency_key` (string, required): A unique string for this attempt, for example a UUID. Send the same value when you retry, so the write happens once. ### Step 1: Start a file upload [POST `/v2/uploads`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) Reserve an upload for the file to print, with purpose `order_file`. Then send the file bytes to `upload_url` with the returned `method` and `headers`. That transfer goes straight to storage, not to this API, so it is not a step here; do it before the next step. **Request body** ```json { "purpose": "order_file", "file_name": "$inputs.file_name", "content_type": "$inputs.content_type", "size_bytes": "$inputs.size_bytes" } ``` Succeeds when: - `$statusCode == 201` Keeps for the next steps: - `upload_id`: `$response.body#/id` ### Step 2: Create an order [POST `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) Create and pay the order, the line naming the upload in `file`. Its `items[].custom_file` shows the file. `custom_files_not_enabled` (403) means custom files are not on for your account. `variant_not_orderable` (422) also covers a variant made of several designs; an upload that is unknown, expired, already used or not a real .3mf or .stl is refused with its own 422 code. `payment_failed` (402) means no order was created. **Parameters** ```json { "header Idempotency-Key": "$inputs.idempotency_key" } ``` **Request body** ```json { "items": [ { "variant": "$inputs.variant", "quantity": 1, "file": { "upload": "$steps.upload_file.outputs.upload_id" } } ], "customer": "$inputs.customer", "shipping_address": "$inputs.shipping_address" } ``` Succeeds when: - `$statusCode == 201` Otherwise: - `retry_server_error`: retry after 5 seconds, at most 3 times, when `$statusCode >= 500`. - `custom_files_not_enabled`: stop the workflow when `$statusCode == 403`. - `payment_failed`: stop the workflow when `$statusCode == 402`. - `not_orderable`: stop the workflow when `$statusCode == 422`. Keeps for the next steps: - `order_id`: `$response.body#/id` - `number`: `$response.body#/number` - `total`: `$response.body#/charges/total` ### As a workflow file The workflow returns: - `order_id`: `$steps.create_order.outputs.order_id` - `number`: `$steps.create_order.outputs.number` - `total`: `$steps.create_order.outputs.total` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `order_with_custom_file` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/order-with-custom-file. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Buy stock For designers. Buys batches of a stock for one of its regions, paid from your wallet only: there is no card top-up, so a short balance buys nothing. Auto-reorder spends from the same wallet, so keep enough balance for both. ### What you need - `stock_id` (string, required): The stock to buy (`stk_...`). - `region_id` (string, required): Where to produce it (`reg_...`), one of the stock regions in `restock[].region.id` of `get_stock`. - `batches` (integer, required): How many batches; each holds `units_per_batch` units. Range at least 1. - `idempotency_key` (string, required): A unique string for this attempt, for example a UUID. Send the same value when you retry, so the write happens once. ### Step 1: Get a stock [GET `/v2/stocks/{id}`](https://public-api.dapi.digital/docs/reference/stocks.md#get_stock) Read the stock. Only an approved stock has a price and regions. A batch costs `batch_price`. **Parameters** ```json { "path id": "$inputs.stock_id" } ``` Succeeds when: - `$statusCode == 200` - `$response.body#/review/status == 'approved'` Keeps for the next steps: - `batch_price`: `$response.body#/batch_price` - `units_per_batch`: `$response.body#/units_per_batch` - `regions`: `$response.body#/restock` ### Step 2: Get your wallet balance [GET `/v2/wallet`](https://public-api.dapi.digital/docs/reference/wallet.md#get_wallet) Read the wallet. The purchase needs `batch_price` times `batches` in `balance`; top up in the dashboard when it is short. Succeeds when: - `$statusCode == 200` Keeps for the next steps: - `balance`: `$response.body#/balance` ### Step 3: Buy stock batches [POST `/v2/stock-purchases`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase) Buy. `insufficient_balance` (402) comes with `details.required` and `details.balance`; nothing was bought. `region_not_available` (422) means the region is not one of the stock regions. **Parameters** ```json { "header Idempotency-Key": "$inputs.idempotency_key" } ``` **Request body** ```json { "items": [ { "stock": "$inputs.stock_id", "region": "$inputs.region_id", "batches": "$inputs.batches" } ] } ``` Succeeds when: - `$statusCode == 201` Otherwise: - `retry_server_error`: retry after 5 seconds, at most 3 times, when `$statusCode >= 500`. - `insufficient_balance`: stop the workflow when `$statusCode == 402`. - `region_not_available`: stop the workflow when `$statusCode == 422`. Keeps for the next steps: - `purchase_reference`: `$response.body#/purchase_reference` - `total`: `$response.body#/total` - `batches`: `$response.body#/batches` ### As a workflow file The workflow returns: - `purchase_reference`: `$steps.purchase.outputs.purchase_reference` - `total`: `$steps.purchase.outputs.total` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `buy_stock` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/buy-stock. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Review a quality check For designers. Rules on the products a production partner photographed. Find tickets waiting for you with `list_qc_tickets?needs_your_action=true` or the `qc_ticket.needs_your_action` webhook, and look at each product's photos before deciding. Accepting every product approves the ticket and lets the order ship; a refusal goes to 3DAPI, which rules on it. ### What you need - `ticket_id` (string, required): The quality check to rule on (`qct_...`). - `verdicts` (array of object, required): One verdict per product in review: `{ "item": "qci_...", "verdict": "accept" }`, or `{ "item": "qci_...", "verdict": "refuse", "reason": "...", "photos": ["qcp_..."] }` pointing at the photos that show the problem. ### Step 1: Get a QC ticket [GET `/v2/qc-tickets/{id}`](https://public-api.dapi.digital/docs/reference/quality-control.md#get_qc_ticket) Read the ticket: it is waiting for you when `needs_your_action` is true. The products to rule on are the `items` with `status: in_review`, each with its `photos`. **Parameters** ```json { "path id": "$inputs.ticket_id" } ``` Succeeds when: - `$statusCode == 200` - `$response.body#/needs_your_action == true` Keeps for the next steps: - `items`: `$response.body#/items` - `status`: `$response.body#/status` ### Step 2: Review a quality check [POST `/v2/qc-tickets/{id}/review`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket) Send every verdict at once: all are recorded or none is. `not_awaiting_review` (409) means the ticket or a product is no longer in review; `photo_not_on_item` (422) means a refusal points at a photo of another product or round. **Parameters** ```json { "path id": "$inputs.ticket_id" } ``` **Request body** ```json { "items": "$inputs.verdicts" } ``` Succeeds when: - `$statusCode == 200` Otherwise: - `not_awaiting_review`: stop the workflow when `$statusCode == 409`. - `photo_not_on_item`: stop the workflow when `$statusCode == 422`. Keeps for the next steps: - `status`: `$response.body#/status` - `blocks_shipping`: `$response.body#/blocks_shipping` ### As a workflow file The workflow returns: - `status`: `$steps.submit_review.outputs.status` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `review_quality_check` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/review-quality-check. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Quote a model file For integrators. Uploads a model file, creates a quote and waits for the price. Slicing is automatic and usually takes seconds to a few minutes. Before your account is approved, quotes are limited per round and per day; `get_integrator_onboarding` shows the allowance. ### What you need - `file_name` (string, required): Name of the model file, for example `bracket.stl`. - `content_type` (string, required): MIME type of the file, for example `model/stl`, `model/3mf` or `model/step`. - `size_bytes` (integer, required): Size of the file in bytes, up to 250 MiB. - `name` (string): A name for the quote; defaults to the file name. ### Step 1: Start a file upload [POST `/v2/uploads`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) Reserve an upload for the model file. Then send the file bytes to `upload_url` with the returned `method` and `headers`. That transfer goes straight to storage, not to this API, so it is not a step here; do it before the next step. **Request body** ```json { "purpose": "quote_file", "file_name": "$inputs.file_name", "content_type": "$inputs.content_type", "size_bytes": "$inputs.size_bytes" } ``` Succeeds when: - `$statusCode == 201` Keeps for the next steps: - `upload_id`: `$response.body#/id` ### Step 2: Quote a model file [POST `/v2/quotes`](https://public-api.dapi.digital/docs/reference/quotes.md#create_quote) Start pricing. `upload_limit_reached` (409) means this round is used up: request approval next. `approval_in_review` (409) means quoting resumes after the review. `daily_quote_limit_reached` (429) resets at midnight UTC. **Request body** ```json { "file": { "upload": "$steps.upload_model.outputs.upload_id" }, "name": "$inputs.name" } ``` Succeeds when: - `$statusCode == 201` Otherwise: - `quota_or_review`: stop the workflow when `$statusCode == 409`. - `daily_quote_limit_reached`: stop the workflow when `$statusCode == 429`. Keeps for the next steps: - `quote_id`: `$response.body#/id` ### Step 3: Get a quote [GET `/v2/quotes/{id}`](https://public-api.dapi.digital/docs/reference/quotes.md#get_quote) Poll the quote every few seconds until `status` is `ready` (it has a `price`) or `failed` (`failure_reason` says why; a failed quote is given back to your allowance). **Parameters** ```json { "path id": "$steps.create_quote.outputs.quote_id" } ``` Succeeds when: - `$statusCode == 200` - `$response.body#/status == 'ready'` Otherwise: - `still_processing`: retry after 5 seconds, at most 120 times, when `$response.body#/status == 'processing'`. - `quote_failed`: stop the workflow when `$response.body#/status == 'failed'`. Keeps for the next steps: - `status`: `$response.body#/status` - `price`: `$response.body#/price` - `failure_reason`: `$response.body#/failure_reason` ### As a workflow file The workflow returns: - `quote_id`: `$steps.create_quote.outputs.quote_id` - `price`: `$steps.wait_for_price.outputs.price` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `quote_model_file` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/quote-model-file. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Choose the materials to print a quote in For integrators. Every extruder slot your file prints with needs a catalog material, and the print farm loads each one into its slot. When the quote is `ready`, `suggested_materials` lists those slots with the nearest catalog material to the colour and filament type in your file. Then either: - **Use the suggestions**: order with `use_suggested_materials: true`. Check `match` first: `approximate` means the catalog has nothing close to that colour (or the file gave none). - **Choose your own**: list the catalog (`color_hex` and `filament_type` help you match) and send `materials` as `[{ "slot": 2, "material": "mat_..." }]`, one entry for every slot in `suggested_materials`, no more and no fewer. A plain list of ids also works when the slots are 1, 2, 3... with no gaps. This recipe orders in `wallet` mode; `checkout` mode takes the same `materials` and `use_suggested_materials` per line. ### What you need - `quote_id` (string, required): The quote to print (`qte_...`), from `quote_model_file`. - `use_suggested_materials` (boolean, required): True to print in the suggested materials; false to send your own in `materials`. - `materials` (array of object): Only when `use_suggested_materials` is false: `{ "slot": 1, "material": "mat_..." }` for every slot listed in the quote `suggested_materials`. - `quantity` (integer, required): How many units to print. - `shipping_address` (object, required): Where to ship: `line1`, `city`, `country_code` (ISO alpha-2) and optionally `line2`, `state`, `postal_code`. - `customer` (object, required): The recipient: `name`, `email` and optionally `phone`. - `idempotency_key` (string, required): A unique string for this attempt, for example a UUID. Send the same value when you retry, so the write happens once. ### Step 1: Get a quote [GET `/v2/quotes/{id}`](https://public-api.dapi.digital/docs/reference/quotes.md#get_quote) Read the quote. Once it is `ready`, `suggested_materials` has one entry per slot the file prints with: the `slot`, the `file_color` and `file_filament_type` your file gives it, the suggested `material` and how close the `match` is. It is null on quotes created before suggestions existed: send `materials` for those. **Parameters** ```json { "path id": "$inputs.quote_id" } ``` Succeeds when: - `$statusCode == 200` - `$response.body#/status == 'ready'` Otherwise: - `still_processing`: retry after 5 seconds, at most 120 times, when `$response.body#/status == 'processing'`. - `quote_failed`: stop the workflow when `$response.body#/status == 'failed'`. Keeps for the next steps: - `suggested_materials`: `$response.body#/suggested_materials` ### Step 2: Order prints of your quotes [POST `/v2/integrator/orders`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) Order in the suggested materials. `suggestions_unavailable` (422) means the quote has none: order with your own `materials` instead. **Parameters** ```json { "header Idempotency-Key": "$inputs.idempotency_key" } ``` **Request body** ```json { "mode": "wallet", "items": [ { "quote": "$inputs.quote_id", "quantity": "$inputs.quantity", "use_suggested_materials": true } ], "shipping_address": "$inputs.shipping_address", "customer": "$inputs.customer" } ``` Succeeds when: - `$statusCode == 201` Otherwise: - `retry_server_error`: retry after 5 seconds, at most 3 times, when `$statusCode >= 500`. - `payment_failed`: stop the workflow when `$statusCode == 402`. - `material_slots_mismatch_or_not_orderable`: stop the workflow when `$statusCode == 422`. Keeps for the next steps: - `order_id`: `$response.body#/id` - `number`: `$response.body#/number` - `material_slots`: `$response.body#/items/0/material_slots` - `total`: `$response.body#/charges/total` ### Step 3: List catalog materials [GET `/v2/materials`](https://public-api.dapi.digital/docs/reference/materials.md#list_materials) List the catalog to pick a material per slot. Each material has `color_hex` and `filament_type` to compare with the `file_color` and `file_filament_type` of each slot. Succeeds when: - `$statusCode == 200` Keeps for the next steps: - `materials`: `$response.body#/data` ### Step 4: Order prints of your quotes [POST `/v2/integrator/orders`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) Order with one material per slot. `material_slots_mismatch` (422) means the slots sent are not the ones the file prints with: `details.expected_slots` lists them. `material_not_allowed` (422) names a material that is not in the catalog. **Parameters** ```json { "header Idempotency-Key": "$inputs.idempotency_key" } ``` **Request body** ```json { "mode": "wallet", "items": [ { "quote": "$inputs.quote_id", "quantity": "$inputs.quantity", "materials": "$inputs.materials" } ], "shipping_address": "$inputs.shipping_address", "customer": "$inputs.customer" } ``` Succeeds when: - `$statusCode == 201` Otherwise: - `retry_server_error`: retry after 5 seconds, at most 3 times, when `$statusCode >= 500`. - `payment_failed`: stop the workflow when `$statusCode == 402`. - `material_slots_mismatch_or_not_orderable`: stop the workflow when `$statusCode == 422`. Keeps for the next steps: - `order_id`: `$response.body#/id` - `number`: `$response.body#/number` - `material_slots`: `$response.body#/items/0/material_slots` - `total`: `$response.body#/charges/total` ### As a workflow file Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `set_up_order_materials` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/set-up-order-materials. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Get the shipping cost of an order For integrators. Prices shipping for an order before you place it, from the same items you would send to `create_integrator_order`: the quotes, how many of each and any extras, which change the weight. It runs the calculation the order charges with and creates nothing, so you can show your customer the shipping before they buy. The parcel is priced at the tier of its heaviest item, plus a charge for each other item (extra-small items travel free). VAT is not included: `checkout` mode adds it for buyers in the EU and UK. A rate card change between the estimate and the order changes the price, so estimate close to ordering. ### What you need - `country` (string, required): Destination country, ISO alpha-2 (for example `DE`). - `items` (array of object, required): The order lines: `{ "quote": "qte_...", "quantity": 2 }`, with `extras: [{ "extra": "xtr_...", "quantity_per_unit": 1 }]` when the units ship with extras. Every quote must be `ready`. ### Step 1: Estimate the shipping of an order [POST `/v2/integrator/orders/shipping-estimate`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#estimate_integrator_order_shipping) `quote_not_ready` (422) means a quote is still processing or failed. `shipping_destination_not_served` (422) means 3DAPI does not deliver to that country (Russia, Belarus, Iran or Syria); every other country is served, and `get_shipping_rates` lists the zones. `tier` and `zone` are null when the order cannot be weighed, and the total is then the flat delivery price. **Request body** ```json { "country": "$inputs.country", "items": "$inputs.items" } ``` Succeeds when: - `$statusCode == 200` Otherwise: - `quote_not_found`: stop the workflow when `$statusCode == 404`. - `not_ready_or_not_served`: stop the workflow when `$statusCode == 422`. Keeps for the next steps: - `total`: `$response.body#/total` - `tier`: `$response.body#/tier` - `zone`: `$response.body#/zone` - `additional_items`: `$response.body#/additional_items` ### As a workflow file The workflow returns: - `total`: `$steps.estimate.outputs.total` - `tier`: `$steps.estimate.outputs.tier` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `estimate_order_shipping` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/estimate-order-shipping. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Submit sample files for review For integrators. Your integrator account is approved once 10 files are approved. Quote files with `quote_model_file` until `files_to_submit` quotes are `ready`, then run this. People review the request file by file, which usually takes 24 to 48 hours, so do not poll: you get an email when it is done, and `get_integrator_onboarding` then shows the outcome. After a review with rejections, quote corrected files and run this again; approved files stay approved. What gets a file approved (print settings, colours, geometry) is in the File requirements guide: [https://public-api.dapi.digital/docs/guides/file-requirements](https://public-api.dapi.digital/docs/guides/file-requirements). ### What you need Nothing: the workflow reads everything it needs from your account. ### Step 1: Get your onboarding status [GET `/v2/integrator/onboarding`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#get_integrator_onboarding) Read where the account stands. A request can be sent while `status` is `collecting` or `changes_requested`; `files_to_submit` is how many ready quotes it needs. Succeeds when: - `$statusCode == 200` - `$response.body#/status == 'collecting' || $response.body#/status == 'changes_requested'` Keeps for the next steps: - `status`: `$response.body#/status` - `files_to_submit`: `$response.body#/files_to_submit` - `approved_files`: `$response.body#/approved_files` ### Step 2: Submit sample files for review [POST `/v2/integrator/approval-requests`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_approval_request) Send the request. Without `quotes`, your latest eligible quotes are picked; to choose them, send `quotes` with exactly `files_to_submit` ids. `not_enough_ready_quotes` (422) gives `details.required` and `details.available`. **Request body** ```json {} ``` Succeeds when: - `$statusCode == 201` Otherwise: - `not_enough_ready_quotes`: stop the workflow when `$statusCode == 422`. - `already_approved_or_in_review`: stop the workflow when `$statusCode == 409`. Keeps for the next steps: - `request_id`: `$response.body#/id` - `status`: `$response.body#/status` ### As a workflow file The workflow returns: - `request_id`: `$steps.send_request.outputs.request_id` Values starting with `$` are filled in as you go: `$inputs.x` is something you provide, `$steps.s.outputs.o` is a value an earlier step returned, and `$response.body#/path` a field of this response. This recipe is the workflow `request_integrator_approval` of [arazzo.json](https://public-api.dapi.digital/docs/arazzo.json), an [Arazzo 1.0](https://spec.openapis.org/arazzo/latest.html) document that tools and AI agents can follow step by step. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/request-integrator-approval. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Connect an AI assistant For designers and integrators. The 3DAPI MCP server lets an AI assistant use your account through this API: read and edit products, orders, stocks and extras as a designer, quote files and order prints as an integrator. It runs on your computer and uses your API key. ### Create a key for the assistant Create a separate key on the API keys page of your dashboard (designers: [https://dapi.digital/dashboard/public-api-keys](https://dapi.digital/dashboard/public-api-keys), integrators: [https://dapi.digital/integrator/api-keys](https://dapi.digital/integrator/api-keys)), with only the scopes you want the assistant to use: read scopes for read tools, write scopes (for example `products:write` or `orders:write`) for the matching write and money tools. You can revoke it at any time without touching your other integrations. Right after you create a key, the dashboard shows these install steps with the key already filled in. Tool results are sent to your AI assistant and the model behind it. Buyer names, emails and addresses on orders are included only when the key has `orders:read_customer` (or full access). Leave that scope off to keep buyer personal data out of the assistant: orders then show no customer and only the shipping country. ### Install Pick your AI client and replace `YOUR_API_KEY` with your key. Everything except the Claude Desktop extension runs the server with `npx -y @dapi-digital/mcp`, which needs Node.js 20 or later. #### Claude Desktop [Download the Claude Desktop extension](https://public-api.dapi.digital/docs/downloads/dapi-digital.mcpb) 1. Double-click `dapi-digital.mcpb` to open it in Claude Desktop (or install it from Settings, then Extensions) and click Install. 2. Paste your API key. Claude Desktop keeps it in your system's secure storage. 3. Turn off Allow changes for read only, or Allow orders and refunds to never move money. The extension runs on the Node.js built into Claude Desktop, so there is nothing else to install. Or add the server by hand: open Settings, then Developer, then Edit Config, add it to `claude_desktop_config.json` and restart Claude Desktop. This way needs Node.js 20 or later. **claude\_desktop\_config.json** ```json { "mcpServers": { "3dapi": { "command": "npx", "args": ["-y", "@dapi-digital/mcp"], "env": { "DAPI_API_KEY": "YOUR_API_KEY" } } } } ``` #### Claude Code Run this in a terminal. Add `--scope user` after `add` to use it in every project, not only the current one. **Terminal** ```bash claude mcp add 3dapi --env DAPI_API_KEY=YOUR_API_KEY -- npx -y @dapi-digital/mcp ``` #### Codex Run this in a terminal: **Terminal** ```bash codex mcp add 3dapi --env DAPI_API_KEY=YOUR_API_KEY -- npx -y @dapi-digital/mcp ``` Or add the server to `~/.codex/config.toml`, which the Codex CLI, the IDE extension and the app share: **~/.codex/config.toml** ```toml [mcp_servers.3dapi] command = "npx" args = ["-y", "@dapi-digital/mcp"] [mcp_servers.3dapi.env] DAPI_API_KEY = "YOUR_API_KEY" ``` #### Grok Build Grok Build, xAI's terminal agent, runs local MCP servers. Its `grok mcp add` command takes no environment variables, so add the server to `~/.grok/config.toml`: **~/.grok/config.toml** ```toml [mcp_servers.3dapi] command = "npx" args = ["-y", "@dapi-digital/mcp"] env = { DAPI_API_KEY = "YOUR_API_KEY" } ``` The Grok apps and the xAI API connect only to remote MCP servers over HTTPS, so they cannot run this one. ### Tools Every tool is one operation of this API, named by its operation id. There are three kinds: - **Read tools** (`GET` operations) change nothing. - **Write tools** create, change or delete things on your real account at once, for example a product, a variant, an extra or a quote. Their descriptions start with `[Write]`. - **Money tools** charge or refund. They show you a summary first and run only after you approve it (see below). Their descriptions start with `[Money]`. When it starts, it calls [Identify the current credentials](https://public-api.dapi.digital/docs/reference/identity.md#get_me) and offers only the tools your kind of account can use and your key's scopes allow. A key with only read scopes gives the assistant only read tools. - Designers: ask _"Which of my orders shipped this week, and which are on hold?"_ and the client calls [list\_orders](https://public-api.dapi.digital/docs/reference/orders.md#list_orders). - Integrators: ask _"List my quotes from yesterday that are still slicing."_ and the client calls [list\_quotes](https://public-api.dapi.digital/docs/reference/quotes.md#list_quotes). ### Write tools and files Write tools act on your real account as soon as the assistant calls them, so ask for the change you want and check what it did. Delete tools say they cannot be undone. The server sends its own `Idempotency-Key` with every POST, a new one per call, as described in [Idempotency](https://public-api.dapi.digital/docs/guides/idempotency.md). The assistant cannot choose or reuse one. To attach a file, the assistant calls `upload_file` with the full path of a file you named on your computer and what it is for (for example `design_file` or `quote_file`). It reads that one file, never a folder, uploads it as in [Uploads](https://public-api.dapi.digital/docs/guides/uploads.md), and gets back the upload id to use in the write. ### Money tools: preview, then confirm These tools move money: - [create\_integrator\_order](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order): charges your wallet in wallet mode, or opens a payment for your customer in checkout mode. - [cancel\_integrator\_order](https://public-api.dapi.digital/docs/reference/integrator-orders.md#cancel_integrator_order): refunds a paid order or closes an open checkout. Each one runs in two steps: 1. The assistant calls the tool. Nothing happens: it gets back a summary and a `confirmation_token`. 2. It shows you the summary and asks whether to go ahead. 3. Only if you agree, it calls the tool again with the same details and the token, and the action runs. The summary names the account, the items and quantities, and the money: prices per item from your variants, quotes or stocks, a shipping estimate, the refund for a cancellation, and your wallet balance when the key can read it. These figures are estimates; VAT and the final total are computed by the API when the action runs. The token lasts 10 minutes and works once. If anything in the request changes, or the server restarts, the assistant has to show you a new summary. A confirmation that is sent twice by mistake still runs only once. ### Safety switches and settings Add these to the server's environment the same way as the key. The Claude Desktop extension asks for them in its settings instead. - `DAPI_API_KEY` (required): your API key. The server never prints or logs it. - `DAPI_ALLOW_WRITES=false` runs read only, whatever the key can do. - `DAPI_ALLOW_MONEY=false` keeps write tools but never charges or refunds, so the assistant cannot place or cancel orders. ### When something fails If the key is missing or refused, the server stops at startup and your client shows the reason in its MCP logs, for example `invalid_api_key`. When a tool call fails, the assistant receives the API's error with its `code`, `message` and `request_id`, as described in [Errors](https://public-api.dapi.digital/docs/guides/errors.md). Quote the request id when you contact support. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/mcp. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Connect Claude, ChatGPT or Grok For designers and integrators. AI apps that support remote MCP servers can connect to your 3DAPI account directly. You add one address in the app, sign in to 3DAPI and choose what the app may do. Nothing to install and no API key to copy. ### The address Every app connects to the same address: **MCP server** ```bash https://mcp.dapi.digital/mcp ``` The app finds the sign-in page on its own. When it asks how to authenticate, choose OAuth, and leave any client ID or secret fields empty. ### Add it to your app - **Claude** (web, desktop and mobile): open Settings, then Connectors, choose Add custom connector, name it 3DAPI and paste the address. - **ChatGPT**: open Settings, then Apps and Connectors, and create a connector with the address. Custom connectors depend on your ChatGPT plan and may need developer mode turned on. - **Grok** and other MCP apps: add a remote MCP server (sometimes called a connector) with the address and sign in when asked. Prefer running the server on your own computer with an API key? See [Connect an AI assistant](https://public-api.dapi.digital/docs/guides/mcp.md). ### What 3DAPI asks you After you add the address, the app opens a 3DAPI page. Sign in if you are not already, then check the app name, the account it will use and the address you will be sent back to. You choose: - **See your account**: always included. Designers share products, orders and stock; integrators share quotes, orders and their account. Buyer names, emails and addresses are never shared with a connected app. - **Make changes**: create and edit products, stock, quotes, uploads and the like. Untick it for a read-only connection. - **Orders and purchases**: see the next section. Off unless you tick it. Choose Allow and you go back to the app, connected. If you connect the same app again later with the same or fewer permissions, 3DAPI does not ask a second time. ### Orders and purchases Placing orders, cancelling them and buying stock move money, so an app can only do them if you ticked Place orders and buy stock (or Place orders paid from your wallet, for integrators) on the 3DAPI page. Even then, every one is a two-step action: the app first shows you what it will cost, and nothing is charged until you confirm. ChatGPT never gets orders and purchases, even if you tick the box. Use it to look things up and make changes, and place orders from your dashboard or another app. ### Disconnect an app Connected apps are listed under Connected apps on the API keys page of your dashboard (designers: [https://dapi.digital/dashboard/public-api-keys](https://dapi.digital/dashboard/public-api-keys), integrators: [https://dapi.digital/integrator/api-keys](https://dapi.digital/integrator/api-keys)), with the permissions you gave and when each was last used. Choose Disconnect and the app loses access at once. To change its permissions, disconnect it and connect again. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/connect-ai-apps. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Orders from any platform For designers. Selling on a platform 3DAPI does not connect to? Ask your AI assistant to read your new orders there and place them on 3DAPI for you. It matches each line to your variant by SKU, never places the same order twice, and shows you what each order costs before anything is charged. ### What you need - **Approved products whose variant SKUs match the SKUs on the other platform.** The SKU is how the assistant finds the variant, so set the same SKU on both sides. - **Money in your wallet, or a saved card.** API orders are paid from the wallet; a shortfall is charged to your saved card. - **An AI app that may place orders.** Claude, Grok or another app connected as in [Connect Claude, ChatGPT or Grok](https://public-api.dapi.digital/docs/guides/connect-ai-apps.md) with **Place orders and buy stock** ticked, or the MCP server on your computer ([Connect an AI assistant](https://public-api.dapi.digital/docs/guides/mcp.md)) with a key that has `products:read`, `orders:read` and `orders:write`. ChatGPT cannot place orders. - **A way for the assistant to read your orders there.** That platform's own connector in the same app, an order export (CSV) you attach, or the order details pasted into the chat. ### How lines are matched For each line, the assistant calls `list_products` with `sku` set to the line's SKU and `expand[]=variants`. The match is exact and ignores case, and the variant whose `sku` it is goes on the order with the line's quantity. A line with no SKU, or a SKU none of your variants has, cannot be matched. Tell the assistant to skip that order and report it, rather than guess a variant. ### No order placed twice Every order carries a `reference`: the order number on the other platform, for example `ETSY-3141592653` (letters, digits, `-` and `_`). 3DAPI keeps it unique among your orders: - A second order with a reference you already used is refused with `reference_in_use` (409), and nothing is placed or charged. `details.order` is the order that has it. - `list_orders` with `reference` finds that order, so the assistant can check before it asks you. - The summary before you confirm says when the reference is already placed. - A cancelled order frees its reference, so you can place that order again. Running the same prompt twice, or retrying after a lost connection, therefore never orders twice. ### You confirm every order `create_order` is a money tool ([Money tools: preview, then confirm](https://public-api.dapi.digital/docs/guides/mcp.md#money)). For every order the assistant first gets a summary: the items with their production price, a shipping estimate and your wallet balance. It shows you that summary, and the order is placed and paid only after you say yes. Each order is confirmed on its own, so you can let one through and stop the next. ### Prompts to start from Place new orders from a platform the assistant can read: **Prompt** ```text Read my new Etsy orders from the last 24 hours that are not shipped yet. For each order: 1. Match every line to my 3DAPI variant by its SKU: list_products with sku set to that SKU and expand[]=variants. If a line has no SKU or no match, skip the whole order and tell me. 2. Check list_orders with reference set to ETSY-. If an order comes back that is not cancelled, skip it: it is already placed. 3. Call create_order with the variants and quantities, the buyer's name, email and shipping address, and reference ETSY-. Show me the summary and wait for my yes before you confirm. At the end, list what you placed, what you skipped and why. ``` Place orders from an export you attach: **Prompt** ```text Attached is my orders export from Shopify. Place every unfulfilled order on 3DAPI: match each line to my variant by SKU (list_products, sku filter), use SHOPIFY- as the reference, skip orders whose reference list_orders already finds, and ask me before you confirm each one. ``` Bring tracking back once orders ship: **Prompt** ```text List my 3DAPI orders that are shipped and whose reference starts with ETSY-. For each, give me the Etsy order number, the carrier and the tracking number, so I can mark them shipped on Etsy. ``` Use the same reference prefix every time for one platform (`ETSY-`, `SHOPIFY-`, `WOO-`), so the duplicate check always finds earlier orders. ### After the order is placed The order goes to production at once and moves through the statuses in `list_orders` and `get_order`. Once it is `shipped`, `shipping.carrier` and `shipping.tracking_number` are set, and `external.channel_order_id` is your reference, which is what the tracking prompt above reads. 3DAPI can email the address you send with order and shipping updates. On plans that include it, you can turn customer updates off in your account settings; otherwise send your own email in `customer.email` if the buyer should hear only from you. To follow orders without asking, subscribe to the order events in [Webhooks](https://public-api.dapi.digital/docs/guides/webhooks.md). --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/orders-from-any-platform. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## FAQ For designers and integrators. Quick answers about keys, limits, files, webhooks, money and AI assistants. Each one links to the guide with the full details. The answers follow the account type you chose at the top of the page. ### Getting started #### What is the base URL, and which version should I use? Every request goes to `https://public-api.dapi.digital`, with paths starting `/v2`. Use v2 for anything new. v1 keeps working for existing integrations but gets no new features, and it does not accept integrator keys. See the [Quickstart](https://public-api.dapi.digital/docs/guides/quickstart.md). #### How do I get an API key? Create one on the API keys page of your 3DAPI dashboard, then send it in the `x-api-key` header on every request. Keep it on your server, never in a browser or mobile app. See [Authentication](https://public-api.dapi.digital/docs/guides/authentication.md#api-keys). #### Is there a sandbox or test mode? No. Every request works on your real account. Test reads freely, and test orders with a small order. Integrators can cover a first test print with the $15 sample credit they get on approval (see [Orders you pay](https://public-api.dapi.digital/docs/guides/integrator-business.md#wallet-orders)). #### Are there SDKs? There are no official SDKs. The API is described by an OpenAPI 3.1 spec at [/docs/openapi.json](https://public-api.dapi.digital/docs/openapi.json), which works with any client generator. AI tools can read [llms.txt](https://public-api.dapi.digital/docs/llms.txt) for an index of every page. ### Keys and permissions #### Can I limit what a key can do? Yes. Each key carries scopes, such as `orders:read` or `products:write`. A request outside the key's scopes is refused with `403 missing_scope`. Give each app or assistant its own key with only the scopes it needs. See [Scopes](https://public-api.dapi.digital/docs/guides/authentication.md#scopes). #### Why do I get `actor_not_allowed`? The endpoint belongs to the other kind of account. Designer and integrator accounts each have their own endpoints, and the reference marks which is which. See [Account kinds](https://public-api.dapi.digital/docs/guides/authentication.md#account-kinds). #### Why can't my key top up the wallet or add a card? Endpoints that move money into or out of your account (billing details, cards, top-ups, auto top-up and withdrawals) only work from your signed-in dashboard, never with an API key. They answer a key with `credential_not_allowed`. ### Requests, errors and limits #### What are the rate limits? 500 requests per minute per key, plus a tighter 60 per minute for creating quotes, uploads and orders, cancelling orders and money operations. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. Past a limit you get `429 rate_limited` with a `Retry-After` header. See [Rate limits](https://public-api.dapi.digital/docs/guides/rate-limits.md). #### How should I handle errors? Every error has the same body. Branch on its `code`, never on the message. When the fix is in your dashboard (billing details, compliance, your plan), `details.fix_url` links to the page. See [Errors](https://public-api.dapi.digital/docs/guides/errors.md). #### What should I send support when a request fails? The `Request-Id` response header, also in `details.request_id`. Requests are kept in your logs for 30 days. #### How does pagination work? Lists use cursors. Pass `limit` (1 to 100, default 20), then pass `next_cursor` back as `cursor` while `has_more` is true. Do not edit or build cursors yourself. See [Pagination](https://public-api.dapi.digital/docs/guides/pagination.md). #### Can I safely retry a request that timed out? Yes, if you send an `Idempotency-Key` header. A retry with the same key within 24 hours returns the first response instead of creating a second order, quote or upload. Reusing a key with a different body is refused. See [Idempotency](https://public-api.dapi.digital/docs/guides/idempotency.md). #### Can I get related objects in one request? Yes. Add `expand[]=` with the field path, up to three levels deep. The key needs read access to the expanded object, otherwise you get the plain reference back. See [Expanding](https://public-api.dapi.digital/docs/guides/expanding.md). ### Files and webhooks #### How do I send a file? In three steps: create an upload with `POST /v2/uploads`, PUT the file to the `upload_url` it returns, then pass the upload id in your request. Files never go in a JSON body. Upload ids expire after 24 hours if unused. See [Uploads](https://public-api.dapi.digital/docs/guides/uploads.md). #### How large can files be? Up to 25 MB for images, attachments and compliance documents, 150 MB for design files, 250 MiB for quote files (`.stl`, `.3mf`, `.obj`, `.step`, `.stp`) and 1 GiB for order files. See [Upload purposes](https://public-api.dapi.digital/docs/guides/uploads.md#purposes). #### How do I know a webhook really came from 3DAPI? Each delivery is signed with HMAC-SHA256 in the `X-Dapi-Webhook-Signature` header. Check the signature against the raw body and reject timestamps more than 5 minutes old. See [Signatures](https://public-api.dapi.digital/docs/guides/webhooks.md#signatures). #### What happens if my endpoint is down? Answer with a 2xx within 10 seconds. Otherwise the delivery is retried with growing gaps for 24 hours, so the same event can arrive more than once: deduplicate on `X-Dapi-Event-Id`. Events stay in your log for 30 days and can be sent again. See [Delivery](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Integrators: approval #### Can I use my seller account as an integrator? No. Sign up as an integrator with an email that has no 3DAPI seller account. A seller account cannot be converted, and one account cannot be both. See [Your account](https://public-api.dapi.digital/docs/guides/integrator-business.md#accounts). #### How do I get approved? Quote your files, then send 10 ready quotes for review. People check each file, usually within 24 to 48 hours, and you get an email with the result. See [File requirements](https://public-api.dapi.digital/docs/guides/file-requirements.md). #### What happens if some files are rejected? Approved files stay approved. Each rejected file comes with a reason, a new round starts, and you only send replacements for the files that were rejected. #### Are there limits before approval? Yes. You can upload 25 files per round and a set number of quotes per day, reset at midnight UTC. Once you are approved, quotes are unlimited. See [Quotes](https://public-api.dapi.digital/docs/guides/integrator-business.md#quotes). ### Integrators: pricing, wallet and VAT #### What does it cost? Quoting is free, and there is no monthly fee or minimum quantity. A quote's `price` is the production price of one unit. In wallet mode you pay that plus shipping. In checkout mode your customer pays your sales price plus shipping on a 3DAPI payment page, and you earn the sales price minus the production price and the card fee. See the [Business guide](https://public-api.dapi.digital/docs/guides/integrator-business.md). #### How do I fund my wallet? From the dashboard: add your billing details, save a card, then top up between $1.00 and $100,000.00. When an order needs more than your balance, the difference is charged to your saved card. Auto top-up does this for you. #### Why do I need billing details? They appear on your invoices and decide the VAT on your top-ups. Until they are saved, you cannot place orders, add a card or top up. #### Do I pay VAT on top-ups? Businesses in the EU and UK pay VAT on top-ups unless they have a confirmed VAT number. EU VAT numbers are checked with VIES when you save your billing details: a confirmed number means reverse charge, so no VAT. A number VIES cannot confirm goes to manual review by our team, and VAT is charged until it is approved. Businesses outside the EU and UK pay no VAT. #### What is the sample credit? $15 added when your account is approved, valid for 30 days. Use it on a wallet order shipped to your own country, with `use_sample_credit: true`. See [Orders you pay](https://public-api.dapi.digital/docs/guides/integrator-business.md#wallet-orders). #### How do I withdraw my earnings? Checkout earnings reach your wallet when the order is completed. Request a withdrawal from the dashboard with a USD invoice or payment link, at most once every 14 days. The amount is held until it is paid out, and returned if the request is cancelled or rejected. ### Integrators: orders and shipping #### Where do you ship, and how long does it take? Worldwide, except Russia, Belarus, Iran and Syria. Production takes 3 to 5 business days, then delivery takes 1 to 3 business days locally or 5 to 10 internationally. Estimate shipping before ordering with the shipping endpoints. See [Shipping](https://public-api.dapi.digital/docs/guides/integrator-business.md#shipping). #### Do I get tracking? Yes. Shipped orders carry the carrier and tracking number, and the `order.shipped` webhook tells you when that happens. #### Do I need an EU responsible person? Only for checkout-mode orders shipped to the EU or UK when your business is outside the EU and UK. Add one in the dashboard. See [Compliance](https://public-api.dapi.digital/docs/guides/integrator-business.md#compliance). #### Can I cancel an order? Yes, while it is `paid` (or before a checkout order is paid), for a full refund: to your wallet, or to the card within 5 to 10 business days. After production starts, email [contact@dapi.digital](mailto:contact@dapi.digital). Lost parcels are reprinted. See [Refunds](https://public-api.dapi.digital/docs/guides/integrator-business.md#refunds). ### Designers: what the API does #### What can I automate as a designer? Products, variants and designs, attachments, stock and stock purchases, extras, orders from every channel, quality-control tickets, compliance documents, webhooks and a read-only view of your wallet. See [Account kinds](https://public-api.dapi.digital/docs/guides/authentication.md#account-kinds). #### Can I place orders through the API? Yes. `create_order` orders prints of your own variants at cost (production, shipping and VAT where it applies), paid from your wallet, with any shortfall charged to your saved card. You can cancel an order while it is `paid`, for a full refund. #### Can I buy stock through the API? Yes, if your plan includes prepaid stock. Stock purchases are paid from your wallet balance only. #### Why won't my product publish? Read `publishing.blockers` on the product. It lists everything still in the way, in the order to fix it: unfinished onboarding, a store not registered as a business or not public, a missing or unapproved design, a missing category, or missing compliance documents. Each public product counts toward your plan's limit. #### Can an AI assistant sync orders from my other shops? Yes. An assistant connected to your account can place orders from other platforms by SKU. See [Orders from any platform](https://public-api.dapi.digital/docs/guides/orders-from-any-platform.md). ### AI assistants #### Can I use 3DAPI from Claude, ChatGPT or Grok? Yes. Add `https://mcp.dapi.digital/mcp` as a connector in the app and sign in to 3DAPI. No API key or install needed. See [Connect Claude, ChatGPT or Grok](https://public-api.dapi.digital/docs/guides/connect-ai-apps.md). #### Can an assistant spend my money? Only if you tick orders and purchases when you connect it. Even then, each order or purchase shows you the cost first and needs your confirmation. ChatGPT never gets orders and purchases. See [Orders and purchases](https://public-api.dapi.digital/docs/guides/connect-ai-apps.md#money). #### Can I run the MCP server myself? Yes. Run `npx -y @dapi-digital/mcp` with an API key, or install the Claude Desktop extension. Set `DAPI_ALLOW_WRITES=false` for read only, or `DAPI_ALLOW_MONEY=false` to block orders and purchases. See [Connect an AI assistant](https://public-api.dapi.digital/docs/guides/mcp.md). #### How do I disconnect an app? On the API keys page of your dashboard, under Connected apps. Access ends at once. See [Disconnect an app](https://public-api.dapi.digital/docs/guides/connect-ai-apps.md#disconnect). ### Support #### How do I contact support? Email [contact@dapi.digital](mailto:contact@dapi.digital). Include the `Request-Id` of any failing request and, for an order, its number. --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/guides/faq. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## API reference Every resource of the 3DAPI API, one page each: the object, then every endpoint that works with it. Designers and integrators use API v2 (`https://public-api.dapi.digital/v2/...`, version 2.0.0); print farms use the print farm API (`/v1/print-farm/...`, version 1.0.0). Machine-readable: [OpenAPI 3.1 for v2](https://public-api.dapi.digital/docs/openapi.json), [OpenAPI 3.0 for the print farm API](https://public-api.dapi.digital/docs/print-farm.openapi.json). ### Production - [Orders](https://public-api.dapi.digital/docs/reference/print-farm-orders.md): Orders allocated to your farm, and moving them through their production statuses. For print farms. Operations: `listPrintFarmOrders`, `getPrintFarmOrder`, `updatePrintFarmOrderStatus`. - [SKUs](https://public-api.dapi.digital/docs/reference/print-farm-skus.md): Products in your allocated orders or in stocks you hold, with their designs, extras and stock. For print farms. Operations: `listPrintFarmSkus`, `getPrintFarmSku`. - [Designs](https://public-api.dapi.digital/docs/reference/print-farm-designs.md): Approved print files your SKUs use, with short-lived download links. For print farms. Operations: `listPrintFarmDesigns`, `getPrintFarmDesign`. - [Extras](https://public-api.dapi.digital/docs/reference/print-farm-extras.md): Approved bought-in parts that your SKUs ship with. For print farms. Operations: `listPrintFarmExtras`, `getPrintFarmExtra`. - [Materials](https://public-api.dapi.digital/docs/reference/print-farm-materials.md): Materials your SKUs' designs are printed in. For print farms. Operations: `listPrintFarmMaterials`, `getPrintFarmMaterial`. - [Stock levels](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md): Stock batches ordered from your farm, and reporting the units you have printed. For print farms. Operations: `listPrintFarmStockLevels`, `getPrintFarmStockLevel`, `addPrintFarmStockLevelItemsMade`. - [Stocks](https://public-api.dapi.digital/docs/reference/print-farm-stocks.md): Ready-made stock products with at least one batch at your farm. For print farms. Operations: `listPrintFarmStocks`, `getPrintFarmStock`. - [Courier options](https://public-api.dapi.digital/docs/reference/print-farm-courier-options.md): Couriers you can name when you mark an order as shipping. For print farms. Operations: `listPrintFarmCourierOptions`. ### Catalog - [Products](https://public-api.dapi.digital/docs/reference/products.md): What you sell and its variants. For designers. Operations: `list_products`, `create_product`, `get_product`, `update_product`, `delete_product`, `publish_product`, `unpublish_product`, `create_variant`, `update_variant`, `delete_variant`, `upload_compliance_document`, `delete_compliance_document`, `get_product_compliance`. - [Designs](https://public-api.dapi.digital/docs/reference/designs.md): Printable model files. For designers. Operations: `add_design`, `get_design`, `update_design`, `delete_design`. - [Attachments](https://public-api.dapi.digital/docs/reference/attachments.md): Production documents. For designers. Operations: `get_attachment`. - [Uploads](https://public-api.dapi.digital/docs/reference/uploads.md): Sending files: photos, design files and documents. For designers and integrators. Operations: `create_upload`. - [Materials](https://public-api.dapi.digital/docs/reference/materials.md): The material catalog. For designers and integrators. Operations: `list_materials`, `get_material`. - [Categories](https://public-api.dapi.digital/docs/reference/categories.md): Product categories and their safety requirements. For designers and integrators. Operations: `list_categories`, `get_category`. ### Stock - [Stocks](https://public-api.dapi.digital/docs/reference/stocks.md): Ready-made units bought in batches. For designers. Operations: `list_stocks`, `create_stock`, `get_stock`, `update_stock`, `add_stock_design`, `set_stock_restock`, `list_all_stock_batches`, `list_stock_batch_usage`, `list_stock_batches`, `get_stock_batch`, `create_stock_purchase`, `get_region`. - [Extras](https://public-api.dapi.digital/docs/reference/extras.md): Bought-in parts shipped with products (designers) or with order lines (integrators). For designers and integrators. Operations: `list_extras`, `create_extra`, `get_extra`, `update_extra`. ### Orders - [Orders](https://public-api.dapi.digital/docs/reference/orders.md): Orders for your products, from every channel. For designers. Operations: `list_orders`, `create_order`, `cancel_order`, `get_order`, `list_import_issues`, `get_import_issue`. - [Quality control](https://public-api.dapi.digital/docs/reference/quality-control.md): Quality checks, partner questions and issue reports on orders. For designers. Operations: `review_qc_ticket`, `send_qc_message`, `list_qc_tickets`, `create_qc_ticket`, `get_qc_ticket`. ### Money - [Wallet](https://public-api.dapi.digital/docs/reference/wallet.md): Your balance and money history. For designers and integrators. Operations: `get_wallet`, `get_billing_details`, `save_billing_details`, `list_cards`, `start_card_setup`, `complete_card_setup`, `make_card_default`, `remove_card`, `start_top_up`, `get_wallet_settings`, `update_wallet_settings`, `list_withdrawals`, `create_withdrawal`, `get_withdrawal_eligibility`, `cancel_withdrawal`, `get_payout_details`, `save_payout_details`, `list_transactions`, `get_transaction_summary`. - [Shipping](https://public-api.dapi.digital/docs/reference/shipping.md): Shipping zones and prices. For designers and integrators. Operations: `get_shipping_rates`, `get_shipping_quote`. ### Platform - [Integrator orders](https://public-api.dapi.digital/docs/reference/integrator-orders.md): Orders integrators place for their own customers, paid from the wallet or through a hosted checkout. For integrators. Operations: `list_integrator_orders`, `create_integrator_order`, `estimate_integrator_order_shipping`, `get_integrator_order`, `cancel_integrator_order`. - [Webhooks](https://public-api.dapi.digital/docs/reference/webhooks.md): Events sent to your endpoints, and the events log. For designers and integrators. Operations: `list_events`, `get_event`, `create_webhook_endpoint`, `update_webhook_endpoint`, `delete_webhook_endpoint`, `rotate_webhook_endpoint_secret`, `send_test_webhook_event`, `list_webhook_endpoint_deliveries`, `get_event_deliveries`, `resend_event`, `list_webhook_endpoints`. - [Quotes](https://public-api.dapi.digital/docs/reference/quotes.md): Prices for printing model files. For integrators. Operations: `list_quotes`, `create_quote`, `get_quote`. - [Integrator onboarding](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md): Signing up as an integrator and getting the account approved. For integrators. Operations: `create_integrator_account`, `resend_integrator_confirmation`, `get_integrator_onboarding`, `list_approval_requests`, `create_approval_request`, `get_approval_request`. - [Integrator account](https://public-api.dapi.digital/docs/reference/integrator-account.md): Your integrator account: names, sign-in email and password, and your EU responsible person. For integrators. Operations: `get_integrator_account`, `update_integrator_account`, `change_integrator_password`, `request_integrator_email_change`, `get_eu_responsible_person`, `set_eu_responsible_person`, `remove_eu_responsible_person`. - [Analytics](https://public-api.dapi.digital/docs/reference/analytics.md): Figures about your account over time: quote volume, value and reviews. For integrators. Operations: `get_integrator_analytics`. - [Logs](https://public-api.dapi.digital/docs/reference/logs.md): The requests you made in the last 30 days, with bodies and the webhooks they caused. For integrators. Operations: `list_api_requests`, `get_api_request`. - [API keys](https://public-api.dapi.digital/docs/reference/api-keys.md): Keys for calling the API from your servers. For integrators. Operations: `list_api_keys`, `create_api_key`, `revoke_api_key`. - [Identity](https://public-api.dapi.digital/docs/reference/identity.md): Who the credentials belong to. For designers and integrators. Operations: `get_me`. - [Health](https://public-api.dapi.digital/docs/reference/health.md): Service status. For designers and integrators. Operations: `get_health`. ### Webhook events - [order.created](https://public-api.dapi.digital/docs/reference/events/order.created.md): Order created - [order.paid](https://public-api.dapi.digital/docs/reference/events/order.paid.md): Order paid - [order.assigned](https://public-api.dapi.digital/docs/reference/events/order.assigned.md): Order assigned - [order.in_production](https://public-api.dapi.digital/docs/reference/events/order.in_production.md): Order in production - [order.shipped](https://public-api.dapi.digital/docs/reference/events/order.shipped.md): Order shipped - [order.completed](https://public-api.dapi.digital/docs/reference/events/order.completed.md): Order completed - [order.on_hold](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md): Order on hold - [order.rejected](https://public-api.dapi.digital/docs/reference/events/order.rejected.md): Order rejected - [order.returned](https://public-api.dapi.digital/docs/reference/events/order.returned.md): Order returned - [order.cancelled](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md): Order cancelled - [checkout.expired](https://public-api.dapi.digital/docs/reference/events/checkout.expired.md): Checkout link expired - [qc_ticket.needs_your_action](https://public-api.dapi.digital/docs/reference/events/qc_ticket.needs_your_action.md): QC ticket needs your action - [qc_ticket.resolved](https://public-api.dapi.digital/docs/reference/events/qc_ticket.resolved.md): QC ticket resolved - [product.approved](https://public-api.dapi.digital/docs/reference/events/product.approved.md): Product approved - [product.rejected](https://public-api.dapi.digital/docs/reference/events/product.rejected.md): Product rejected - [stock_batch.purchased](https://public-api.dapi.digital/docs/reference/events/stock_batch.purchased.md): Stock batch purchased - [stock_batch.completed](https://public-api.dapi.digital/docs/reference/events/stock_batch.completed.md): Stock batch completed - [stock.low](https://public-api.dapi.digital/docs/reference/events/stock.low.md): Stock running low - [quote.ready](https://public-api.dapi.digital/docs/reference/events/quote.ready.md): Quote ready - [quote.failed](https://public-api.dapi.digital/docs/reference/events/quote.failed.md): Quote failed - [quote.approved](https://public-api.dapi.digital/docs/reference/events/quote.approved.md): Quote approved - [quote.rejected](https://public-api.dapi.digital/docs/reference/events/quote.rejected.md): Quote rejected - [approval_request.approved](https://public-api.dapi.digital/docs/reference/events/approval_request.approved.md): Account approved - [approval_request.changes_requested](https://public-api.dapi.digital/docs/reference/events/approval_request.changes_requested.md): Changes requested --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Products What you sell and its variants. This page covers [the product object](https://public-api.dapi.digital/docs/reference/products.md#product_object), [the variant object](https://public-api.dapi.digital/docs/reference/products.md#variant_object) and [the product compliance object](https://public-api.dapi.digital/docs/reference/products.md#product_compliance_object). ### Endpoints - [GET `/v2/products`](https://public-api.dapi.digital/docs/reference/products.md#list_products) - [POST `/v2/products`](https://public-api.dapi.digital/docs/reference/products.md#create_product) - [GET `/v2/products/{id}`](https://public-api.dapi.digital/docs/reference/products.md#get_product) - [PATCH `/v2/products/{id}`](https://public-api.dapi.digital/docs/reference/products.md#update_product) - [DELETE `/v2/products/{id}`](https://public-api.dapi.digital/docs/reference/products.md#delete_product) - [POST `/v2/products/{id}/publish`](https://public-api.dapi.digital/docs/reference/products.md#publish_product) - [POST `/v2/products/{id}/unpublish`](https://public-api.dapi.digital/docs/reference/products.md#unpublish_product) - [POST `/v2/products/{id}/variants`](https://public-api.dapi.digital/docs/reference/products.md#create_variant) - [PATCH `/v2/variants/{id}`](https://public-api.dapi.digital/docs/reference/products.md#update_variant) - [DELETE `/v2/variants/{id}`](https://public-api.dapi.digital/docs/reference/products.md#delete_variant) - [POST `/v2/products/{id}/compliance/documents`](https://public-api.dapi.digital/docs/reference/products.md#upload_compliance_document) - [DELETE `/v2/compliance-documents/{id}`](https://public-api.dapi.digital/docs/reference/products.md#delete_compliance_document) - [GET `/v2/products/{id}/compliance`](https://public-api.dapi.digital/docs/reference/products.md#get_product_compliance) ### The product object Something you sell: its variants, what they are made of, their prices and margins, and its storefront and review state. #### Attributes - `id` (string): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `product`. - `name` (string): Display name. - `slug` (string): URL-safe name used in the storefront address. - `category` (object or null): The product category, which decides its safety requirements. Null when none is selected. - Shape **Reference** (default): Reference to a category. Pass the matching `expand[]` path to receive the full category instead. - `id` (string): Unique identifier of the category, prefixed with `cat_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `category`. - `name` (string): Display name of the category. - Shape **Category** (expanded): [the category object](https://public-api.dapi.digital/docs/reference/categories.md#category_object). - `review` (ProductReview): Review of the product as a whole: approved once every design and extra in it is approved, rejected if any is rejected. - `status` (ReviewStatus): Where 3DAPI stands on reviewing this object: - `pending`: waiting for review by 3DAPI. Nothing to do on your side. - `approved`: reviewed and accepted. - `rejected`: reviewed and refused. `reason` says why; fix it and save again to resubmit. - `reason` (string or null): Why it was rejected. Null unless `status` is `rejected`. - `publishing` (ProductPublishing): Storefront visibility. - `is_public` (boolean): Whether the product is listed on your storefront. A public product can only be ordered once `review.status` is `approved`. - `unpublished_by` (string or null): Who made a private product private. `platform` means 3DAPI unpublished it, for example after a plan downgrade put you over your public product limit; upgrading can restore it. Null while public. Possible values: `seller`, `platform`. - `can_publish` (boolean): True when nothing blocks making the product public. - `blockers` (array of PublishBlocker): Everything that currently blocks publishing, in the order to fix them. Empty when `can_publish` is true. - `code` (string): Why the product cannot be made public: - `onboarding_incomplete`: store onboarding (billing and store details) is not finished. - `not_registered_business`: products can only be sold by a registered business; update your billing details. - `public_store_disabled`: your public store is turned off in your store settings. - `no_design`: the product has no design file. - `files_not_approved`: 3DAPI has not approved the design files yet. - `category_required`: the product needs a category. - `compliance_documents_missing`: a document required by the category is missing or not approved. - `message` (string): What to do about it, ready to show to a person. - `variant_count` (integer): Number of variants. Range at least 0. - `price_range` (object or null): Lowest and highest variant price. Null without variants. - `min` (object): Lowest variant price. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `max` (object): Highest variant price. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `images` (array of Image): Product photos. - `url` (string): Public image URL. - `primary` (boolean): True for the main image, shown first. At most one. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): Point in time, ISO 8601 in UTC. - `description` (string or null): Product description shown on the storefront. - `options` (array of object): The choices a buyer makes, in display order. Each variant has one value per option. - `name` (string): Option name. - `values` (array of string): Possible values, in display order. - `variants` (array of Variant): Every variant. Described in [the variant object](https://public-api.dapi.digital/docs/reference/products.md#variant_object). - `attachments` (array of objects): Production documents sent to the production partner with every order. - Shape **Reference** (default): Reference to a attachment. Pass the matching `expand[]` path to receive the full attachment instead. - `id` (string): Unique identifier of the attachment, prefixed with `att_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `attachment`. - `name` (string): Display name of the attachment. - Shape **Attachment** (expanded): [the attachment object](https://public-api.dapi.digital/docs/reference/attachments.md#attachment_object). - `storefront` (object): How the product appears on your storefront. - `url` (string or null): Public product page. Null while your store is not public. - `show_compliance_labels` (boolean): Whether the category safety labels (warnings, age restriction, risk level, CE mark) are shown on the product page. - `disclaimers` (array of object): Your disclaimers shown on the product page. - `title` (string): Heading of the disclaimer. - `text` (string): The disclaimer text. - `custom_label_url` (string or null): Your custom label image, printed by the production partner and shipped with the product. Null when none. - `compliance` (object): Safety documents at a glance. With `expand[]=compliance` it is the full view, identical to what the product compliance endpoint returns. - Shape **ProductComplianceSummary** (expanded): Compliance at a glance. Pass `expand[]=compliance` for every requirement and document. - `object` (string): Names the type of this object. Always `product_compliance`. - `enforced` (boolean): Whether missing documents block publishing this product right now. Only EU/UK sellers are held to it, and only while document enforcement is switched on by 3DAPI; when true, the product `publishing.blockers` include `compliance_documents_missing` until `complete` is true. - `complete` (boolean): True when every requirement is approved. - `missing` (integer): Requirements without an approved document. Range at least 0. - Shape **ProductCompliance** (expanded): [the product compliance object](https://public-api.dapi.digital/docs/reference/products.md#product_compliance_object). **The product object** ```json { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "PR Tracker", "slug": "pr-tracker", "category": { "id": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Desk accessories" }, "review": { "status": "approved", "reason": null }, "publishing": { "is_public": true, "unpublished_by": null, "can_publish": true, "blockers": [] }, "variant_count": 1, "price_range": { "min": { "amount": 5000, "currency": "usd" }, "max": { "amount": 5000, "currency": "usd" } }, "images": [ { "url": "https://cdn.example.com/tracker.png", "primary": true } ], "created_at": "2026-04-21T07:34:06Z", "updated_at": "2026-10-02T11:12:40Z", "description": "A desk tracker for your personal records.", "options": [ { "name": "Color", "values": [ "Black", "Blue" ] } ], "variants": [ { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "sku": "TRACKER-BLUE", "name": "PR Tracker Blue", "status": "active", "options": [ { "name": "Color", "value": "Blue" } ], "category": null, "pricing": { "price": { "amount": 5000, "currency": "usd" }, "prices_include_vat": true, "costs": { "manufacturing": { "amount": 332, "currency": "usd" }, "extra_parts": { "amount": 40, "currency": "usd" }, "platform_fee": { "amount": 250, "currency": "usd" } }, "earnings": { "amount": 4378, "currency": "usd" } }, "shipping": { "tier": "medium", "determined_by": "volume", "chargeable_weight_grams": 820, "extra_small": false }, "contents": [ { "type": "design", "quantity": 1, "design": { "id": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design", "name": "tracker.3mf" }, "materials": [ { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false } ] }, { "type": "extra", "quantity": 4, "unit_price": { "amount": 10, "currency": "usd" }, "extra": { "id": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "extra", "name": "M3 screw" } } ], "image": null } ], "attachments": [ { "id": "att_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "attachment", "name": "assembly-guide.pdf" } ], "storefront": { "url": "https://dapi.digital/store/acme/pr-tracker", "show_compliance_labels": true, "disclaimers": [ { "title": "Production safety", "text": "Keep away from heat." } ] }, "custom_label_url": null, "compliance": { "object": "product_compliance", "enforced": false, "complete": false, "missing": 1 } } ``` ### List products GET `/v2/products` - **Credentials**: An API key with the `products:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `list_products` Lists your products, newest first by default. Items leave out variants and storefront details to stay small; get the product for everything, or pass `expand[]=variants`. Designers only. #### Query parameters - `review_status` (array of ReviewStatus): Only products in these review states. Repeat for several, for example `review_status=pending&review_status=rejected`. Same shape as `ReviewStatus` above. - `is_public` (string): Only public (`true`) or private (`false`) products. - `category` (string): Only products in this category. - `search` (string): Only products whose name contains this text, ignoring case. - `sku` (string): Only the product with a variant whose `sku` is exactly this, ignoring case. Use it to match a line from another platform (Etsy, Shopify, WooCommerce) to your variant; find the variant in `expand[]=variants`. - `updated_after` (timestamp): Only products changed after this time. Use it to sync changes since your last poll. - `sort` (string): Order of results. A leading `-` means descending. `position` is your own order from the dashboard. `name` sorts alphabetically in a language-aware collation, which compares letters before spaces and case (`test slicer` comes after `testing warnings`); do not expect byte order. Possible values: `-created_at`, `created_at`, `-updated_at`, `name`, `position`. Defaults to "-created\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. - `expand[]` (array of string): Replace references with full objects. Repeat the parameter for several paths, for example `expand[]=variants`. Unknown paths are rejected with `invalid_expand`. An expanded object from another resource needs the read scope of that resource on your API key; without it the reference `{ id, object, name }` is returned instead, with no error. Here `variants.contents.extra` needs `extras:read`, `variants.contents.stock` needs `stocks:read`. Possible values: `variants`, `category`, `variants.category`, `variants.contents.design`, `variants.contents.stock`, `variants.contents.extra`, `variants.contents.materials`. #### Returns 200 OK A page of products. Response attributes (ProductList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of ProductSummary): The page of results. - `id` (string): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `product`. - `name` (string): Display name. - `slug` (string): URL-safe name used in the storefront address. - `category` (object or null): The product category, which decides its safety requirements. Null when none is selected. - Shape **Reference** (default): Same shape as `CategoryReference` above. - Shape **Category** (expanded): [the category object](https://public-api.dapi.digital/docs/reference/categories.md#category_object). - `review` (ProductReview): Same shape as `ProductReview` above. - `publishing` (ProductPublishing): Same shape as `ProductPublishing` above. - `variant_count` (integer): Number of variants. Range at least 0. - `price_range` (object or null): Lowest and highest variant price. Null without variants. - `min` (object): Lowest variant price. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `max` (object): Highest variant price. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `images` (array of Image): Product photos. Same shape as `Image` above. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): Point in time, ISO 8601 in UTC. - `variants` (array of Variant, optional): Only present with `expand[]=variants`. Described in [the variant object](https://public-api.dapi.digital/docs/reference/products.md#variant_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of products. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/products" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "PR Tracker", "slug": "pr-tracker", "category": { "id": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Desk accessories" }, "review": { "status": "approved", "reason": null }, "publishing": { "is_public": true, "unpublished_by": null, "can_publish": true, "blockers": [] }, "variant_count": 1, "price_range": { "min": { "amount": 5000, "currency": "usd" }, "max": { "amount": 5000, "currency": "usd" } }, "images": [ { "url": "https://cdn.example.com/tracker.png", "primary": true } ], "created_at": "2026-04-21T07:34:06Z", "updated_at": "2026-10-02T11:12:40Z" } ], "has_more": false, "next_cursor": null } ``` ### Create a product POST `/v2/products` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `create_product` Creates a product with its design files, and optionally its images, attachments and variants, in one request. It is private and its designs are pending review by 3DAPI; publish it once it is approved. Upload files first (purposes `design_file`, `product_image`, `attachment`). Counts toward your plan product limit. Designers only. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `name` (string, required): Display name, shown on the storefront. - `slug` (string): URL-safe name for the storefront address, unique across your products. Generated from the name when omitted. - `description` (string or null): Product description shown on the storefront. Null for none. - `category` (string or null): The product category, which decides its safety requirements. - `prices_include_vat` (boolean or null): For EU and UK buyers: `true` prices include VAT, `false` VAT is added on top, `null` inherits your store setting. - `options` (array of object): The choices buyers make, in display order. - `name` (string, required): Option name. - `values` (array of string, required): Possible values, in display order. Removing a value a variant still uses is refused (`option_in_use`). - `disclaimers` (array of object): Your disclaimers shown on the product page. - `title` (string, required): Heading of the disclaimer. - `text` (string, required): The disclaimer text. An entry whose text is blank once trimmed is dropped. - `show_compliance_labels` (boolean): Whether the category safety labels (warnings, age restriction, risk level, CE mark) are shown on the product page. `true` when omitted on create. - `images` (array of objects): Product photos, in display order. The list replaces the current images: entries not sent are deleted. - Shape **object**: - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - `primary` (boolean): Makes this the main image. At most one entry may be marked. Without a marked entry, a kept main image stays main; otherwise one is chosen for you. - Shape **object**: - `url` (string, required): The URL of an image this product or stock already has, to keep it. - `primary` (boolean): Makes this the main image. At most one entry may be marked. Without a marked entry, a kept main image stays main; otherwise one is chosen for you. - `custom_label` (object or null): A label the production partner prints and ships with the product: new (`upload`, purpose `product_image`) or kept (`url`). Null removes it. - Shape **Reference** (default): - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - Shape **object**: - `url` (string, required): The URL of the label the product already has. - `attachments` (array of objects): Production documents for the farm: new (`upload`, purpose `attachment`) or kept (`id`). - Shape **Reference** (default): Same shape as `UploadReference` above. - Shape **object**: - `id` (string, required): An attachment to keep. - `manufacturing` (object): How the product is produced. Applies to every design. - `assembly_required` (boolean, required): Whether the printed parts must be assembled before shipping. Turning it on or off sends every design back to review. - `farm_instructions` (string or null): Notes for the production partner, for example assembly steps. Omitted keeps the current notes; null or blank clears them. - `designs` (array of object, required): The model files of the product. - `key` (string, required): Your name for this design within the request, for variants to reference it. - `file` (object, required): The model file, uploaded first with purpose `design_file`. - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - `name` (string or null): Display name. The file name when omitted. - `materials` (object, required) - Shape **mode: single**: - `mode` (string, required): `single`: the design prints in one material, and each variant picks one from `allowed`. - `allowed` (array of objects, required): Materials variants may print this design in; each variant picks one. - Shape **string**: Unique identifier of the material, prefixed with `mat_`. Treat it as an opaque string: store it and compare it, never parse it. - Shape **CustomMaterialInput** (expanded): - `custom` (string, required): A filament not in the catalog, by name. Reviewed by 3DAPI. - Shape **mode: multicolor**: - `mode` (string, required): `multicolor`: the design prints in several color slots, and each variant picks one of the `combinations`. - `combinations` (array of object, required): Color combinations variants may print this design in. Every combination has the same number of slots; each variant picks one by sending its slot materials in order. - `name` (string or null): Display name. Built from the slot materials when omitted. - `slots` (array of objects, required): One material per color slot, in the order the file uses them. Same shape as `MaterialInput` above. - `variants` (array of CreateVariantRequest): Variants to create with the product. Up to 200 per product. - `sku` (string, required): Your SKU code, unique across your active variants. - `name` (string or null): Display name of the variant. Null for none. - `options` (array of object): One value per product option, using the product option names and values. - `name` (string, required): An option name of the product. - `value` (string, required): One of the values of that option. - `price` (object, required): What the buyer pays, at most $100,000.00. Not below the minimum, which covers production, a platform fee of up to 10% and the card fee at its highest rate (2.9% + $0.30, the buyer is not known yet): minimum = (manufacturing + extra parts + $0.30) / (0.90 - 0.029), rounded up to the cent, or no minimum while nothing has a production price yet. A lower price is refused with `price_below_minimum`, with the minimum in `details.minimum`. Checked when the price or the contents change, so variants saved before this rule keep their price until edited. - `amount` (integer, required): Amount in cents, at most 10000000 ($100,000.00). 5000 means $50.00. Range at most 10000000. - `currency` (string, required): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `prices_include_vat` (boolean or null): For EU and UK buyers: `true` the price includes VAT, `false` VAT is added on top, `null` inherits from the product, then your store setting. - `category` (string or null): Overrides the product category for this variant. Null uses the product category. - `contents` (array of objects, required): What each unit is made of: at least one design or one stock. - Shape **type: design**: - `type` (string, required): `design`: a design of this product, printed for the variant. - `design` (string, required): A design id (`dsg_...`), or, inside `create_product`, the `key` of a design created in the same request. - `quantity` (integer, required): Copies of the design in one unit of the variant. Range 1 to 100. - `materials` (array of objects, required): One material for a single-material design, or one per color slot for a multicolor design, in slot order. Each must be allowed by the design. Same shape as `MaterialInput` above. - Shape **type: extra**: - `type` (string, required): `extra`: one of your extras, packed with the variant. - `extra` (string, required): One of your extras. An extra still pending review is accepted and sends the product designs back to review; a rejected one is refused (`extra_not_approved`). - `quantity` (integer, required): Units of the extra in one unit of the variant. Range 1 to 100. - Shape **type: stock**: - `type` (string, required): `stock`: one of your approved stocks. - `stock` (string, required): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `quantity` (integer, required): Stock units used by one unit of the variant. Range 1 to 100. - `consumes_stock` (boolean): Ship this variant from the stock. Defaults to true. - `image` (object or null): A variant image, new (`upload`) or kept (`url`). Null for none. - Shape **Reference** (default): Same shape as `UploadReference` above. - Shape **object**: - `url` (string, required): The URL of one of the product images, to use as the variant image. #### Returns 201 Created The new product, private and pending review. Returns [the product object](https://public-api.dapi.digital/docs/reference/products.md#product_object). #### Responses - `201`: The new product, private and pending review. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: Your plan product limit is reached (`plan_limit_reached`); `details.fix_url` points at upgrading. - `409`: The slug or a SKU is already used (`slug_taken`, `sku_already_used`). - `422`: A variant breaks a product rule: `option_mismatch`, `material_not_allowed`, `material_not_found`, `extra_not_found`, `extra_not_approved` (a rejected extra), `stock_not_found`, `stock_not_approved`, `category_not_found`, `variant_needs_design_or_stock`, `price_below_minimum` (minimum in `details.minimum`), `currency_not_supported`, `unknown_design_key`, `duplicate_design_key`, `design_not_in_product`, `too_many_variants`; a design names a combination with the wrong slot count (`combination_slots_mismatch`); an image or attachment to keep is not the product (`image_not_found`, `attachment_not_found`, `custom_label_not_found`, `too_many_primary_images`); or an upload cannot be used: `unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing` (an upload id whose file was never sent), `upload_already_used` (an upload id already used once; each works once). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/products" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "PR Tracker", "description": "A desk tracker for your personal records.", "category": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "options": [ { "name": "Color", "values": [ "Black", "Blue" ] } ], "images": [ { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "primary": true } ], "manufacturing": { "assembly_required": true, "farm_instructions": null }, "designs": [ { "key": "body", "file": { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" }, "name": "Tracker body", "materials": { "mode": "single", "allowed": [ "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ] } } ], "variants": [ { "sku": "TRACKER-BLUE", "name": "PR Tracker Blue", "options": [ { "name": "Color", "value": "Blue" } ], "price": { "amount": 5000, "currency": "usd" }, "contents": [ { "type": "design", "design": "body", "quantity": 1, "materials": [ "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ] } ] } ] }' ``` ### Get a product GET `/v2/products/{id}` - **Credentials**: An API key with the `products:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_product` Returns one product with every variant, its contents, pricing and margins, shipping tier, and what blocks publishing. Related designs, stocks, extras, materials, categories and attachments are references; expand them with `expand[]`. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Query parameters - `expand[]` (array of string): Replace references with full objects. Repeat the parameter for several paths, for example `expand[]=category`. Unknown paths are rejected with `invalid_expand`. An expanded object from another resource needs the read scope of that resource on your API key; without it the reference `{ id, object, name }` is returned instead, with no error. Here `variants.contents.extra` needs `extras:read`, `variants.contents.stock` needs `stocks:read`. Possible values: `category`, `variants.category`, `variants.contents.design`, `variants.contents.stock`, `variants.contents.extra`, `variants.contents.materials`, `attachments`, `compliance`. #### Returns 200 OK The product. Returns [the product object](https://public-api.dapi.digital/docs/reference/products.md#product_object). #### Responses - `200`: The product. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no product with this id (`product_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Update a product PATCH `/v2/products/{id}` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `update_product` Changes the product fields you send. Sends designs back to review by 3DAPI: a new design file; turning assembly on or off (every design); a newly added extra that is not approved yet (every design); and, per design, a change to its custom materials, single or multicolor mode, color count or multi-material (AMS) requirement. Nothing else does. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Request body - `name` (string): Display name, shown on the storefront. - `slug` (string): URL-safe name for the storefront address, unique across your products. Generated from the name when omitted. - `description` (string or null): Product description shown on the storefront. Null for none. - `category` (string or null): The product category, which decides its safety requirements. - `prices_include_vat` (boolean or null): For EU and UK buyers: `true` prices include VAT, `false` VAT is added on top, `null` inherits your store setting. - `options` (array of object): The choices buyers make, in display order. - `name` (string, required): Option name. - `values` (array of string, required): Possible values, in display order. Removing a value a variant still uses is refused (`option_in_use`). - `disclaimers` (array of object): Your disclaimers shown on the product page. - `title` (string, required): Heading of the disclaimer. - `text` (string, required): The disclaimer text. An entry whose text is blank once trimmed is dropped. - `show_compliance_labels` (boolean): Whether the category safety labels (warnings, age restriction, risk level, CE mark) are shown on the product page. `true` when omitted on create. - `images` (array of objects): Product photos, in display order. The list replaces the current images: entries not sent are deleted. Same shape as `ImageInput` above. - `custom_label` (object or null): A label the production partner prints and ships with the product: new (`upload`, purpose `product_image`) or kept (`url`). Null removes it. - Shape **Reference** (default): Same shape as `UploadReference` above. - Shape **object**: - `url` (string, required): The URL of the label the product already has. - `attachments` (array of objects): Production documents for the farm: new (`upload`, purpose `attachment`) or kept (`id`). - Shape **Reference** (default): Same shape as `UploadReference` above. - Shape **object**: - `id` (string, required): An attachment to keep. - `manufacturing` (object): How the product is produced. Applies to every design. - `assembly_required` (boolean, required): Whether the printed parts must be assembled before shipping. Turning it on or off sends every design back to review. - `farm_instructions` (string or null): Notes for the production partner, for example assembly steps. Omitted keeps the current notes; null or blank clears them. #### Returns 200 OK The updated product. Returns [the product object](https://public-api.dapi.digital/docs/reference/products.md#product_object). #### Responses - `200`: The updated product. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no product with this id (`product_not_found`). - `409`: The slug is already used (`slug_taken`). - `422`: Removing an option value a variant still uses (`option_in_use`); `category_not_found`; an image or attachment to keep is not the product (`image_not_found`, `attachment_not_found`, `custom_label_not_found`, `too_many_primary_images`); or an upload cannot be used: `unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing` (an upload id whose file was never sent), `upload_already_used` (an upload id already used once; each works once). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "PR Tracker v2", "category": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "manufacturing": { "assembly_required": false, "farm_instructions": "Print the lid with the logo facing up." } }' ``` ### Delete a product DELETE `/v2/products/{id}` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `delete_product` Deletes a product, its designs, images and unused variants, as the dashboard does. Variants that orders reference are kept (marked deleted), and orders keep their own frozen copy of the product, so order history is never lost. Cannot be undone. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The product was deleted. Response attributes (object): - `id` (string): The id of the deleted product. - `object` (string): Always `product`. - `deleted` (boolean): Always `true`: the deletion succeeded. #### Responses - `200`: The product was deleted. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no product with this id (`product_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "deleted": true } ``` ### Publish a product POST `/v2/products/{id}/publish` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `publish_product` Makes the product public on your storefront. Refused while anything in `publishing.blockers` remains, which includes an inactive store: you must be registered as a business and have your public store turned on. Counts toward your plan limit of public products. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Returns 200 OK The product, now public. Returns [the product object](https://public-api.dapi.digital/docs/reference/products.md#product_object). #### Responses - `200`: The product, now public. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: Your plan limit of public products is reached (`plan_limit_reached`); `details.fix_url` points at upgrading. - `404`: You have no product with this id (`product_not_found`). - `409`: Something blocks publishing (`cannot_publish`); `details.blockers` lists every blocker with its code and what to do, the same list as `publishing.blockers`. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/publish" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Unpublish a product POST `/v2/products/{id}/unpublish` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `unpublish_product` Takes the product off your storefront. Always allowed. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Returns 200 OK The product, now private. Returns [the product object](https://public-api.dapi.digital/docs/reference/products.md#product_object). #### Responses - `200`: The product, now private. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no product with this id (`product_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/unpublish" \ -H "x-api-key: $DAPI_API_KEY" ``` ### The variant object An orderable version of a product with its own SKU, price and contents, for example one color. #### Attributes - `id` (string): Unique identifier of the variant, prefixed with `var_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `variant`. - `sku` (string): Your SKU code, unique across your active variants. - `name` (string or null): Display name of the variant. - `status` (string): `active` variants can be ordered; `inactive` ones are kept but not sold. - `options` (array of object): Option values, in the product option order. - `name` (string): Option name, matching one in the product `options`. - `value` (string): The value this variant has for that option. - `category` (object or null): A category that overrides the product category for this variant only. Null when the variant uses the product category. - Shape **Reference** (default): Same shape as `CategoryReference` above. - Shape **Category** (expanded): [the category object](https://public-api.dapi.digital/docs/reference/categories.md#category_object). - `pricing` (object): Price and margin for one unit. - `price` (object): What the buyer pays. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `prices_include_vat` (boolean): Whether `price` already includes VAT. Resolved from the variant, then the product, then your store setting. - `costs` (object or null): What it costs to fulfil one unit. Null until 3DAPI has priced every part of the variant. - `manufacturing` (object): Printing and production, extras excluded. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `extra_parts` (object): The extras in the variant. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `platform_fee` (object): 3DAPI commission, at your plan rate. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `earnings` (object or null): What you earn per unit sold: `price` minus every cost. Null until the variant is priced. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `shipping` (object): How one unit is charged for shipping. Prices per tier and zone come from the shipping rates. - `tier` (string or null): Shipping tier: `small` up to 600 g, `medium` 600 g to 2 kg, `large` above 2 kg. Null until every design in the variant has been measured. - `determined_by` (string or null): Whether weight or size put the variant in its tier. Carriers charge for whichever is greater, so a bulky, light print can ship in a bigger tier. Null when `tier` is null. Possible values: `weight`, `volume`. - `chargeable_weight_grams` (number or null): The weight the tier is based on: the greater of actual and volumetric weight. Null when `tier` is null. - `extra_small` (boolean): True when the variant is light enough (under 100 g) that extra units in the same order ship without the additional-item charge. - `contents` (array of objects): What each unit of the variant is made of. - Shape **type: design**: - `type` (string): A printed part. - `quantity` (integer): Copies of the design in one unit of the variant. Range at least 1. - `design` (object): A design reference by default. With `expand[]=variants.contents.design` it is the full design, identical to what its own GET returns, when your API key has the read scope that GET needs; otherwise it stays a reference. - Shape **Reference** (default): Reference to a design. Pass the matching `expand[]` path to receive the full design instead. - `id` (string): Unique identifier of the design, prefixed with `dsg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `design`. - `name` (string): Display name of the design. - Shape **Design** (expanded): [the design object](https://public-api.dapi.digital/docs/reference/designs.md#design_object). - `materials` (array of objects): Materials this variant prints the design in: one for a single-material design, one per color slot for a multicolor design. - Shape **Reference** (default): Reference to a material. Catalog materials can be expanded to the full material; custom materials have no id and nothing more to expand. - `id` (string or null): Unique identifier of a catalog material, prefixed with `mat_`. Null for a custom material. - `object` (string): Names the type of this object. Always `material`. - `name` (string): Display name, for example `PLA Black`. For custom materials, exactly what the seller typed. - `custom` (boolean): True for a seller-specified material that is not in the catalog. Custom materials need manual review before production. - Shape **Material** (expanded): [the material object](https://public-api.dapi.digital/docs/reference/materials.md#material_object). - Shape **type: stock**: - `type` (string): Ready-made units taken from a stock. - `quantity` (integer): Stock units used by one unit of the variant. Range at least 1. - `consumes_stock` (boolean): True when the variant ships from this stock. False when the stock is linked but not used for fulfilment. - `stock` (object): A stock reference by default. With `expand[]=variants.contents.stock` it is the full stock, identical to what its own GET returns, when your API key has the read scope that GET needs; otherwise it stays a reference. - Shape **Reference** (default): Reference to a stock. Pass the matching `expand[]` path to receive the full stock instead. - `id` (string): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `stock`. - `name` (string): Display name of the stock. - Shape **Stock** (expanded): [the stock object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_object). - Shape **type: extra**: - `type` (string): A bought-in part. - `quantity` (integer): Units of the extra in one unit of the variant. Range at least 1. - `unit_price` (object or null): What one unit of the extra adds to the variant cost. Null until the extra is priced. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `extra` (object): A extra reference by default. With `expand[]=variants.contents.extra` it is the full extra, identical to what its own GET returns, when your API key has the read scope that GET needs; otherwise it stays a reference. - Shape **Reference** (default): Reference to a extra. Pass the matching `expand[]` path to receive the full extra instead. - `id` (string): Unique identifier of the extra, prefixed with `xtr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `extra`. - `name` (string): Display name of the extra. - Shape **Extra** (expanded): [the extra object](https://public-api.dapi.digital/docs/reference/extras.md#extra_object). - `image` (object or null): Image specific to this variant, if any. - `url` (string): Public image URL. **The variant object** ```json { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "sku": "TRACKER-BLUE", "name": "PR Tracker Blue", "status": "active", "options": [ { "name": "Color", "value": "Blue" } ], "category": null, "pricing": { "price": { "amount": 5000, "currency": "usd" }, "prices_include_vat": true, "costs": { "manufacturing": { "amount": 332, "currency": "usd" }, "extra_parts": { "amount": 40, "currency": "usd" }, "platform_fee": { "amount": 250, "currency": "usd" } }, "earnings": { "amount": 4378, "currency": "usd" } }, "shipping": { "tier": "medium", "determined_by": "volume", "chargeable_weight_grams": 820, "extra_small": false }, "contents": [ { "type": "design", "quantity": 1, "design": { "id": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design", "name": "tracker.3mf" }, "materials": [ { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false } ] }, { "type": "extra", "quantity": 4, "unit_price": { "amount": 10, "currency": "usd" }, "extra": { "id": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "extra", "name": "M3 screw" } } ], "image": null } ``` ### Add a variant POST `/v2/products/{id}/variants` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `create_variant` Adds an orderable variant to a product: its SKU, option values, price and what it is made of. A newly added extra that is not approved yet sends the product designs back to review. Up to 200 variants per product. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `sku` (string, required): Your SKU code, unique across your active variants. - `name` (string or null): Display name of the variant. Null for none. - `options` (array of object): One value per product option, using the product option names and values. - `name` (string, required): An option name of the product. - `value` (string, required): One of the values of that option. - `price` (object, required): What the buyer pays, at most $100,000.00. Not below the minimum, which covers production, a platform fee of up to 10% and the card fee at its highest rate (2.9% + $0.30, the buyer is not known yet): minimum = (manufacturing + extra parts + $0.30) / (0.90 - 0.029), rounded up to the cent, or no minimum while nothing has a production price yet. A lower price is refused with `price_below_minimum`, with the minimum in `details.minimum`. Checked when the price or the contents change, so variants saved before this rule keep their price until edited. - `amount` (integer, required): Amount in cents, at most 10000000 ($100,000.00). 5000 means $50.00. Range at most 10000000. - `currency` (string, required): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `prices_include_vat` (boolean or null): For EU and UK buyers: `true` the price includes VAT, `false` VAT is added on top, `null` inherits from the product, then your store setting. - `category` (string or null): Overrides the product category for this variant. Null uses the product category. - `contents` (array of objects, required): What each unit is made of: at least one design or one stock. Same shape as `VariantContentInput` above. - `image` (object or null): A variant image, new (`upload`) or kept (`url`). Null for none. - Shape **Reference** (default): Same shape as `UploadReference` above. - Shape **object**: - `url` (string, required): The URL of one of the product images, to use as the variant image. #### Returns 201 Created The new variant. Returns [the variant object](https://public-api.dapi.digital/docs/reference/products.md#variant_object). #### Responses - `201`: The new variant. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no product with this id (`product_not_found`). - `409`: The SKU is already used (`sku_already_used`). - `422`: `option_mismatch`, `material_not_allowed`, `material_not_found`, `extra_not_found`, `extra_not_approved` (a rejected extra), `stock_not_found`, `stock_not_approved`, `category_not_found`, `variant_needs_design_or_stock`, `price_below_minimum` (minimum in `details.minimum`), `currency_not_supported`, `design_not_in_product` or `too_many_variants`; or the image upload cannot be used: `unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing` (an upload id whose file was never sent), `upload_already_used` (an upload id already used once; each works once). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/variants" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "sku": "TRACKER-BLACK", "name": "PR Tracker Black", "options": [ { "name": "Color", "value": "Black" } ], "price": { "amount": 5000, "currency": "usd" }, "contents": [ { "type": "design", "design": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "quantity": 1, "materials": [ "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ] }, { "type": "extra", "extra": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "quantity": 4 } ] }' ``` ### Update a variant PATCH `/v2/variants/{id}` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `update_variant` Changes the variant fields you send. Set `status: inactive` to stop selling it without deleting it. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the variant, prefixed with `var_`. Treat it as an opaque string: store it and compare it, never parse it. #### Request body - `sku` (string): Your SKU code, unique across your active variants. - `name` (string or null): Display name of the variant. Null for none. - `options` (array of object): One value per product option, using the product option names and values. - `name` (string, required): An option name of the product. - `value` (string, required): One of the values of that option. - `price` (object): What the buyer pays, at most $100,000.00. Not below the minimum, which covers production, a platform fee of up to 10% and the card fee at its highest rate (2.9% + $0.30, the buyer is not known yet): minimum = (manufacturing + extra parts + $0.30) / (0.90 - 0.029), rounded up to the cent, or no minimum while nothing has a production price yet. A lower price is refused with `price_below_minimum`, with the minimum in `details.minimum`. Checked when the price or the contents change, so variants saved before this rule keep their price until edited. - `amount` (integer, required): Amount in cents, at most 10000000 ($100,000.00). 5000 means $50.00. Range at most 10000000. - `currency` (string, required): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `prices_include_vat` (boolean or null): For EU and UK buyers: `true` the price includes VAT, `false` VAT is added on top, `null` inherits from the product, then your store setting. - `category` (string or null): Overrides the product category for this variant. Null uses the product category. - `contents` (array of objects): What each unit is made of: at least one design or one stock. Same shape as `VariantContentInput` above. - `image` (object or null): A variant image, new (`upload`) or kept (`url`). Null for none. - Shape **Reference** (default): Same shape as `UploadReference` above. - Shape **object**: - `url` (string, required): The URL of one of the product images, to use as the variant image. - `status` (string): `inactive` keeps the variant but stops selling it. Possible values: `active`, `inactive`. #### Returns 200 OK The updated variant. Returns [the variant object](https://public-api.dapi.digital/docs/reference/products.md#variant_object). #### Responses - `200`: The updated variant. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no variant with this id (`variant_not_found`). - `409`: The SKU is already used (`sku_already_used`), or the variant was imported from a sales channel that owns its SKU and price (`variant_managed_by_channel`). - `422`: `option_mismatch`, `material_not_allowed`, `material_not_found`, `extra_not_found`, `extra_not_approved` (a rejected extra), `stock_not_found`, `stock_not_approved`, `category_not_found`, `variant_needs_design_or_stock`, `price_below_minimum` (minimum in `details.minimum`), `currency_not_supported` or `design_not_in_product`. The price floor is only checked when the price or the contents change. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v2/variants/var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "price": { "amount": 5500, "currency": "usd" }, "status": "active" }' ``` ### Delete a variant DELETE `/v2/variants/{id}` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `delete_variant` Removes a variant, as the dashboard does: kept and marked deleted when orders reference it (so order history stays intact), removed otherwise. Either way it stops being sold and no longer appears on the product. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the variant, prefixed with `var_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The variant was deleted. Response attributes (object): - `id` (string): The id of the deleted variant. - `object` (string): Always `variant`. - `deleted` (boolean): Always `true`: the deletion succeeded. #### Responses - `200`: The variant was deleted. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no variant with this id (`variant_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v2/variants/var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "deleted": true } ``` ### The product compliance object The EU/UK product safety documents a product needs, what you uploaded for each, and whether they are approved. #### Attributes - `object` (string): Names the type of this object. Always `product_compliance`. - `product` (ProductReference or null): Reference to a product. Pass the matching `expand[]` path to receive the full product instead. - `id` (string): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `product`. - `name` (string): Display name of the product. - `enforced` (boolean): Whether missing documents block publishing this product right now. Only EU/UK sellers are held to it, and only while document enforcement is switched on by 3DAPI; when true, the product `publishing.blockers` include `compliance_documents_missing` until `complete` is true. - `complete` (boolean): True when every requirement is approved. - `requirements` (array of ComplianceRequirement): Every document the product categories require, in category order. - `key` (string): Stable identifier of the requirement, as listed on the category. - `name` (string): Name of the required document, as the category lists it. - `status` (ComplianceRequirementStatus): Where a requirement stands: - `approved`: an approved document covers it. - `pending_review`: a document is uploaded and waiting for review by 3DAPI. - `rejected`: every document uploaded for it was rejected; see each `review.reason`. - `missing`: nothing is uploaded for it yet. - `required_by` (array of CategoryReference): The categories that ask for this document: the product category and any variant category overrides. Same shape as `CategoryReference` above. - `documents` (array of ComplianceDocument): Documents uploaded for this requirement, newest first. - `id` (string): Unique identifier of the compliance document, prefixed with `cdc_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `compliance_document`. - `name` (string): File name. - `format` (string or null): File extension, lowercase. - `size_bytes` (integer or null): File size in bytes. - `url` (string): Signed URL to download the document. Valid for 15 minutes; get the compliance view again for a fresh one. - `review` (Review): Review by 3DAPI. Anything that will be manufactured is reviewed before it can be sold or produced. - `status` (ReviewStatus): Same shape as `ReviewStatus` above. - `reason` (string or null): Why it was rejected. Null unless `status` is `rejected`. - `reviewed_at` (timestamp or null): When the latest review decision was made. Null while pending. - `uploaded_at` (timestamp): Point in time, ISO 8601 in UTC. - `other_documents` (array of ComplianceDocument): Documents uploaded for requirements that no longer apply, for example after a category change. Kept so nothing you uploaded disappears. Same shape as `ComplianceDocument` above. **The product compliance object** ```json { "object": "product_compliance", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Action Figure" }, "enforced": false, "complete": false, "requirements": [ { "key": "material-toxicity-assessment", "name": "Material Toxicity Assessment", "status": "approved", "required_by": [ { "id": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Action Figures & Dolls" } ], "documents": [ { "id": "cdc_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "compliance_document", "name": "toxicity-report.pdf", "format": "pdf", "size_bytes": 182344, "url": "https://files.example.com/compliance/toxicity-report.pdf?signature=abc", "review": { "status": "approved", "reason": null, "reviewed_at": "2026-10-02T10:00:00Z" }, "uploaded_at": "2026-10-01T08:00:00Z" } ] }, { "key": "technical-file-and-risk-assessment", "name": "Technical File & Risk Assessment", "status": "missing", "required_by": [ { "id": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Action Figures & Dolls" } ], "documents": [] } ], "other_documents": [] } ``` ### Upload a compliance document POST `/v2/products/{id}/compliance/documents` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `upload_compliance_document` Adds a document for one requirement of the product. It is pending review by 3DAPI, and the requirement shows `pending_review` until then. To replace a document, upload the new one and delete the old one. Returns the whole compliance view. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `requirement` (string, required): The `key` of the requirement this document covers, from the product compliance view or the category. - `file` (object, required): The document, uploaded first with purpose `compliance_document`. - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. #### Returns 201 Created The compliance view with the new document. Returns [the product compliance object](https://public-api.dapi.digital/docs/reference/products.md#product_compliance_object). #### Responses - `201`: The compliance view with the new document. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no product with this id (`product_not_found`). - `422`: The requirement does not apply to this product (`unknown_requirement`); `details.requirements` lists the valid keys. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/compliance/documents" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "requirement": "material-toxicity-assessment", "file": { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" } }' ``` ### Delete a compliance document DELETE `/v2/compliance-documents/{id}` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `delete_compliance_document` Removes a document you uploaded. Returns the compliance view of its product, so you see which requirements it leaves missing. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the compliance document, prefixed with `cdc_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The compliance view without the document. Returns [the product compliance object](https://public-api.dapi.digital/docs/reference/products.md#product_compliance_object). #### Responses - `200`: The compliance view without the document. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no compliance document with this id (`compliance_document_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v2/compliance-documents/cdc_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Get product compliance GET `/v2/products/{id}/compliance` - **Credentials**: An API key with the `products:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_product_compliance` Returns every safety document the product categories require, the documents you uploaded for each and their review status. Use it to see what is still missing before publishing to EU/UK buyers. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The compliance view. Returns [the product compliance object](https://public-api.dapi.digital/docs/reference/products.md#product_compliance_object). #### Responses - `200`: The compliance view. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no product with this id (`product_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/compliance" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/products. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Orders Orders for your products, from every channel. This page covers [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object) and [the import issue object](https://public-api.dapi.digital/docs/reference/orders.md#import_issue_object). ### Endpoints - [GET `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#list_orders) - [POST `/v2/orders`](https://public-api.dapi.digital/docs/reference/orders.md#create_order) - [POST `/v2/orders/{id}/cancel`](https://public-api.dapi.digital/docs/reference/orders.md#cancel_order) - [GET `/v2/orders/{id}`](https://public-api.dapi.digital/docs/reference/orders.md#get_order) - [GET `/v2/import-issues`](https://public-api.dapi.digital/docs/reference/orders.md#list_import_issues) - [GET `/v2/import-issues/{id}`](https://public-api.dapi.digital/docs/reference/orders.md#get_import_issue) ### The order object An order for your products, from any channel: what was ordered, where it ships, its status, what was charged and what you earn. #### Attributes - `id` (string): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order`. - `number` (string): Human-readable order number, the one your customers and 3DAPI support use. - `channel` (OrderChannel): Where the order came from: - `storefront`: a buyer checked out on your 3DAPI store and paid by card. - `shopify`: imported from your Shopify store. - `shipstation`: imported from ShipStation. - `api`: created through the API. - `manual`: placed by you from the dashboard, charged at cost. - `replacement`: a reprint after a quality issue; `charges.paid_by` says who paid for it. - `status` (OrderStatus): Where the order is: - `awaiting_payment`: you still have to pay for it. - `paid`: paid, waiting to be assigned to a production partner. - `assigned`: a production partner has it; production has not started. - `in_production`: being made. - `shipped`: on its way to the customer. `shipping` has the tracking details. - `completed`: delivered and settled. - `on_hold`: there is not enough stock to fulfil it. - `rejected`: the production partner refused it. - `returned`: sent back after shipping. - `cancelled`: cancelled, usually after a full refund. - `customer` (OrderCustomer or null): Who ordered. Personal data: null unless the API key has the `orders:read_customer` scope. - `name` (string): Customer full name. - `email` (string or null): Customer email. - `phone` (string or null): Customer phone. - `company` (object or null): Set when the buyer bought as a business. - `name` (string or null): Company name. - `tax_id` (string or null): VAT or tax number the buyer entered. - `tax_id_validated` (boolean or null): True when VIES confirmed the EU VAT number, so the sale was zero-rated. False when it did not. Null when not applicable. - `shipping_address` (OrderShippingAddress): Where the order ships. The country is always shown because it decides shipping and VAT; the rest is personal data. - `formatted` (string or null): The full address as one line. Null without the `orders:read_customer` scope. - `city` (string or null): City. Null without the `orders:read_customer` scope. - `country` (string or null): Country name. Always present when known. - `country_code` (string or null): ISO 3166-1 alpha-2 country code. Always present when known. - `charges` (OrderCharges): What the payer was charged for the order. - `paid_by` (string): `buyer` when a customer paid 3DAPI (storefront orders), `you` when you paid for the order (manual, imported and API orders, and replacements you were responsible for), `dapi` when 3DAPI covers it (a replacement for a production partner mistake; you were not charged, and the charges show what the replacement cost). `earnings` is null unless `buyer`. - `items` (object): Items total. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `shipping` (object): Shipping charged. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `vat` (object): VAT on the order. Zero outside the EU and UK. - `amount` (object): VAT charged. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `rate` (number): VAT rate as a fraction, for example 0.21. 0 when none. Range 0 to 1. - `included` (boolean): True when VAT is carved out of the prices; false when it was added on top. - `country` (string or null): Country whose rate applied, ISO alpha-2. Null when none. - `sample_credit` (object or null): Sample credit that covered part of the charge. Null when none was used. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `total` (object): The full charge, VAT included, before any sample credit. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `earnings` (OrderEarnings or null): What you earn from a buyer-paid order and what was taken off it. Null when you paid for the order yourself. - `manufacturing` (object): Paid to the production partner for this order. 0 on an order fulfilled from prepaid stock: that manufacturing was paid when you bought the stock batch. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `platform_fee` (object): 3DAPI commission, at your plan rate. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `payment_processing` (object): Card processing fee taken from your earnings on the buyer payment. Kept by the card processor even when the order is refunded. 0 on older orders whose payout was made without deducting it. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `refunded` (object): What completed refunds took off your earnings. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `net` (object): What you keep. Never rounded up to 0: minimum prices include the card fee, so it is not negative on sales made at or above them, but a price set before that rule can show a negative amount here. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `shipping` (OrderShipping): Shipping details. - `tier` (string or null): Shipping tier the order was priced at, frozen at placement: `small`, `medium` or `large`, the weight bands a variant's `shipping.tier` describes. Null when it was priced at the flat rate. - `carrier` (string or null): Carrier, once shipped. - `tracking_number` (string or null): Tracking number, once shipped. - `shipped_at` (timestamp or null): When the order shipped. Null before shipping, and for some orders that shipped before this was recorded. - `external` (object or null): The original order in the sales channel, for Shopify and ShipStation orders. Null otherwise. - `channel_order_id` (string or null): The order id in Shopify or ShipStation. - `channel_total` (object or null): What the customer paid in that channel, when known. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `customer_notes` (string or null): Notes the customer left at checkout. Null without the `orders:read_customer` scope, since buyers often write personal details here. - `qc` (object): Quality control on this order. List QC tickets with `order` for the details. - `open_tickets` (integer): QC tickets on this order that are not approved, closed or cancelled. Range at least 0. - `blocks_shipping` (boolean): True when an open quality check holds the order back from shipping. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): Point in time, ISO 8601 in UTC. - `item_count` (integer): Units ordered across all lines. Range at least 0. - `items` (array of OrderItem): The order lines. - `id` (string): Unique identifier of the order item, prefixed with `itm_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order_item`. - `product` (object or null): The product, as named when ordered. - `id` (string): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `product`. - `name` (string): Display name of the product. - `variant` (object): The variant ordered, as named when ordered. - `id` (string): Unique identifier of the variant, prefixed with `var_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `variant`. - `name` (string): Display name of the variant. - `sku` (string or null): The variant SKU at the time of the order. - `quantity` (integer): Units ordered on this line. Range at least 1. - `unit_price` (object): What the payer paid per unit: the sales price when a buyer paid, manufacturing plus platform fee when you paid. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `total` (object): `unit_price` times `quantity`. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `stock_used` (array of object): The stock batches this line took units from, and how many. Empty when nothing came from stock. - `batch` (StockBatchReference): Reference to a stock batch. Pass the matching `expand[]` path to receive the full stock batch instead. - `id` (string): Unique identifier of the stock batch, prefixed with `bat_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `stock_batch`. - `name` (string): Display name of the stock batch. - `units` (integer): Units this line took from that batch. Range at least 1. - `custom_file` (object or null): The custom file printed on this line instead of the design, when the order sent one. Null otherwise. - `name` (string): File name. - `size_bytes` (integer): File size in bytes. Range at least 0. - `fulfilled_from_stock` (boolean): True when at least part of this line ships from your ready-made stock instead of being printed. Its manufacturing was paid when you bought the stock batch, so it is not charged again on this order; an order fulfilled from prepaid stock shows `earnings.manufacturing` as 0. - `refunds` (array of OrderRefund): Completed refunds, oldest first. Empty when none. - `id` (string): Unique identifier of the refund, prefixed with `rfd_`. Treat it as an opaque string: store it and compare it, never parse it. - `amount` (object): Total refunded, VAT included. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. **The order object** ```json { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "in_production", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] } ``` ### List orders GET `/v2/orders` - **Credentials**: An API key with the `orders:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `list_orders` Lists orders for your products from every channel, newest first. Items and refunds are left out to stay small; get the order for them, or pass `expand[]=items`. Customer details need the `orders:read_customer` scope. Designers only. #### Query parameters - `status` (array of OrderStatus): Only orders in these states. Repeat for several, for example `status=paid&status=assigned`. Same shape as `OrderStatus` above. - `channel` (array of OrderChannel): Only orders from these channels. Same shape as `OrderChannel` above. - `search` (string): Matches the order number, or the customer name or email when the key has `orders:read_customer`. - `reference` (string): Exact match on your own order id, the `reference` you sent with create\_order. Use it to check whether an order from another platform was already placed. - `created_after` (timestamp): Only orders placed after this time. - `created_before` (timestamp): Only orders placed before this time. - `updated_after` (timestamp): Only orders changed after this time. Use it to sync status changes since your last poll. - `sort` (string): Order of results. A leading `-` means descending. Possible values: `-created_at`, `created_at`, `-updated_at`. Defaults to "-created\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. - `expand[]` (array of string): Replace references with full objects. Repeat the parameter for several paths, for example `expand[]=items`. Unknown paths are rejected with `invalid_expand`. #### Returns 200 OK A page of orders. Response attributes (OrderList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of OrderSummary): The page of results. - `id` (string): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order`. - `number` (string): Human-readable order number, the one your customers and 3DAPI support use. - `channel` (OrderChannel): Same shape as `OrderChannel` above. - `status` (OrderStatus): Same shape as `OrderStatus` above. - `customer` (OrderCustomer or null): Same shape as `OrderCustomer` above. - `shipping_address` (OrderShippingAddress): Same shape as `OrderShippingAddress` above. - `charges` (OrderCharges): Same shape as `OrderCharges` above. - `earnings` (OrderEarnings or null): Same shape as `OrderEarnings` above. - `shipping` (OrderShipping): Same shape as `OrderShipping` above. - `external` (object or null): The original order in the sales channel, for Shopify and ShipStation orders. Null otherwise. - `channel_order_id` (string or null): The order id in Shopify or ShipStation. - `channel_total` (object or null): What the customer paid in that channel, when known. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `customer_notes` (string or null): Notes the customer left at checkout. Null without the `orders:read_customer` scope, since buyers often write personal details here. - `qc` (object): Quality control on this order. List QC tickets with `order` for the details. - `open_tickets` (integer): QC tickets on this order that are not approved, closed or cancelled. Range at least 0. - `blocks_shipping` (boolean): True when an open quality check holds the order back from shipping. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): Point in time, ISO 8601 in UTC. - `item_count` (integer): Units ordered across all lines. Range at least 0. - `items` (array of OrderItem, optional): Only present with `expand[]=items`. Same shape as `OrderItem` above. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of orders. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/orders" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "in_production", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1 } ], "has_more": false, "next_cursor": null } ``` ### Create an order POST `/v2/orders` - **Credentials**: An API key with the `orders:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `create_order` Orders your own variants for a customer, for example a sale on your own website. You pay at cost (production price, shipping and VAT) from your wallet; if the balance is short, the difference is charged to your saved card. The order comes back paid, numbered `2AP...`, with `channel: api`, and goes to production. If payment fails, no order is created. With custom files turned on for your account, a line can print your own .3mf or .stl instead of the design of the variant (`items[].file`, for example a keychain with a different name for every customer); see the Order with a custom file recipe. Designers only. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `items` (array of object, required): What to produce and ship: 1 to 100 lines of 1 to 1000 units each. - `variant` (string, required): One of your variants. Its product must be approved. - `quantity` (integer, required): Units of this variant to produce and ship, 1 to 1000. Range 1 to 1000. - `file` (object or null): A custom file printed on this line instead of the variant's design, for example a keychain with a different name each time: an upload with purpose `order_file` (.3mf or .stl). Custom files are turned on per account by 3DAPI: ask [contact@dapi.digital](mailto:contact@dapi.digital) (`custom_files_not_enabled`, 403, otherwise). The variant must be a single design. The file is not reviewed or re-sliced: the line is charged the variant's production price, so it should weigh about the same as the design it replaces. Omit or null to print the variant as it is. - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - `customer` (object, required): Who receives the order. - `name` (string, required): Full name of the person receiving the order. - `email` (string, required): Email of the person receiving the order. - `phone` (string or null): Phone number with country prefix, for the carrier. - `shipping_address` (object, required): Where to ship. Stored as one formatted line plus the country, which the order returns as `shipping_address.formatted`. - `line1` (string, required): Street and number. - `line2` (string or null): Apartment, suite, floor or building. Omit or send null when there is none. - `city` (string, required): City or town. - `state` (string or null): State, province, county or region, where the address uses one. Omit or send null otherwise. - `postal_code` (string or null): Postal or ZIP code. Omit or send null where the country has none. - `country_code` (string, required): ISO 3166-1 alpha-2, uppercase. A code that is not a real country is refused with `validation_failed`. - `reference` (string or null): Your own order id, for matching. Letters, digits, `-` and `_`. Returned as `external.channel_order_id`; find the order again with `list_orders?reference=`. Unique among your orders that are not cancelled: a second order with the same reference is refused with `reference_in_use` (409, the existing order in `details.order`) and nothing is charged, so retrying an order from another platform never places it twice. - `customer_notes` (string or null): Free-text notes for the order, up to 2000 characters. Returned as `customer_notes`, which is only shown to keys with the `orders:read_customer` scope. - `discount_code` (string or null): A discount code from 3DAPI. - `use_sample_credit` (boolean): Spend your sample credit on this order first. How much applies is decided by 3DAPI and shown in `charges.sample_credit`. Defaults to false. #### Returns 201 Created The order, paid. Returns [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). #### Responses - `201`: The order, paid. - `400`: The request is invalid (`validation_failed`), or a discount code is unknown (`invalid_discount_code`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `402`: Payment failed: no saved card to cover the shortfall, or the card was declined (`payment_failed`). No order was created. - `403`: A line sends a `file`, but custom files are not turned on for your account (`custom_files_not_enabled`); ask [contact@dapi.digital](mailto:contact@dapi.digital) to turn them on. - `409`: Another of your orders that is not cancelled already has this `reference` (`reference_in_use`; `details.order` is that order, `{ id, number }`), or production is paused (`production_unavailable`). Nothing was placed or charged. - `422`: A variant is not orderable: unknown, inactive, its product is not approved, or a line with a `file` names a variant made of several designs (`variant_not_orderable`); the file upload is unknown, expired, used or of another purpose (`unknown_upload`, `upload_expired`, `upload_already_used`, `upload_purpose_mismatch`, `upload_missing`), or its contents are not a .3mf or .stl (`invalid_file`); or 3DAPI does not deliver to the country (`shipping_destination_not_served`: Russia, Belarus, Iran or Syria). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/orders" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "variant": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "quantity": 2 } ], "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": "+40712345678" }, "shipping_address": { "line1": "Str. Test 1", "city": "Cluj-Napoca", "postal_code": "400001", "country_code": "RO" }, "reference": "SHOP-10023" }' ``` ### Cancel an order POST `/v2/orders/{id}/cancel` - **Credentials**: An API key with the `orders:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `cancel_order` Cancels one of your orders while it is still `paid` (no production partner has started) and refunds it in full to where it was paid from. Wallet-paid orders come back `cancelled` at once; card-paid orders stay `paid` until the card refund completes, then become `cancelled` and `order.cancelled` is sent. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Returns 200 OK The order, cancelled or with its refund on the way. Returns [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). #### Responses - `200`: The order, cancelled or with its refund on the way. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no order with this id (`order_not_found`). - `409`: The order cannot be cancelled here (`order_not_cancellable`): it is past `paid` (contact support), a refund on it is already on the way, it is not an order you paid for yourself (API and manual orders only), it was created through API v1 (cancel those from the dashboard or contact support), it was paid by card and card refunds are unavailable, or the card refund was refused. The message says which; the order and your money are unchanged. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/orders/ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/cancel" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Get an order GET `/v2/orders/{id}` - **Credentials**: An API key with the `orders:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_order` Returns one order with its items, charges, earnings, shipping and refunds. Customer details need the `orders:read_customer` scope. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The order. Returns [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). #### Responses - `200`: The order. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no order with this id (`order_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/orders/ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### The import issue object An order from a connected sales channel that could not be imported, and why. Retry or dismiss it from the dashboard; once the order imports, the issue disappears from this list. #### Attributes - `id` (string): Unique identifier of the import issue, prefixed with `imp_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `import_issue`. - `channel` (ImportChannel): The sales channel the order came from. Only `shipstation` today; `shopify` joins when the Shopify integration ships. - `channel_order_id` (string): The order id in the sales channel. - `channel_order_number` (string or null): The order number your customer sees in the sales channel. - `ordered_at` (timestamp or null): When the customer placed the order in the sales channel. - `reason` (ImportIssueReason): Why the order could not be imported: - `unknown_sku`: at least one item has a SKU that matches none of your variants. Give a variant that SKU, then import the order again. - `no_items`: the order arrived with no items to make, or only lines such as shipping or discounts. Add the products in the sales channel, then import it again. - `variant_not_found`: an item's SKU is linked to a variant that no longer exists. Link the SKU to a current variant, then import the order again. - `multiple_sellers`: the order's SKUs are linked to products of more than one seller, and an order is made for one seller only. Link every SKU to your own variants or split the order, then import it again. - `message` (string): What went wrong and how to fix it, ready to show to a person. - `unmatched_items` (array of object): The items that matched none of your variants. Filled for `unknown_sku` only; empty for the other reasons. - `sku` (string or null): The SKU as it arrived from the channel. - `name` (string or null): The item name in the channel. - `quantity` (integer): Units of this item in the channel order. Range at least 1. - `created_at` (timestamp): When the import failed. **The import issue object** ```json { "id": "imp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "import_issue", "channel": "shipstation", "channel_order_id": "193554871", "channel_order_number": "3002", "ordered_at": "2026-10-07T14:20:54Z", "reason": "unknown_sku", "message": "1 item has a SKU that matches none of your variants. Give the variant this SKU, then import the order again.", "unmatched_items": [ { "sku": "PR-TRACKERV2-465KG", "name": "PR Tracker V2 - 465 Kilograms (kg) Plates", "quantity": 1 } ], "created_at": "2026-10-07T14:21:10Z" } ``` ### List import issues GET `/v2/import-issues` - **Credentials**: An API key with the `orders:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `list_import_issues` Lists orders from your connected sales channels that could not be imported, newest first, with what to fix. Filter on `sku` to find every order one missing SKU mapping blocks. Designers only. #### Query parameters - `channel` (string): Only this channel. - `reason` (string): Only this reason. Possible values: `unknown_sku`, `no_items`, `variant_not_found`, `multiple_sellers`. - `sku` (string): Only issues with an unmatched item of exactly this SKU. Use it to find every order one missing mapping is blocking. - `ordered_after` (timestamp): Only orders placed after this time. - `ordered_before` (timestamp): Only orders placed before this time. - `sort` (string): Order of results. A leading `-` means newest first. Possible values: `-ordered_at`, `ordered_at`, `-created_at`. Defaults to "-ordered\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of import issues. Response attributes (ImportIssueList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of ImportIssue): The page of results. Described in [the import issue object](https://public-api.dapi.digital/docs/reference/orders.md#import_issue_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of import issues. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/import-issues" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "imp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "import_issue", "channel": "shipstation", "channel_order_id": "193554871", "channel_order_number": "3002", "ordered_at": "2026-10-07T14:20:54Z", "reason": "unknown_sku", "message": "1 item has a SKU that matches none of your variants. Give the variant this SKU, then import the order again.", "unmatched_items": [ { "sku": "PR-TRACKERV2-465KG", "name": "PR Tracker V2 - 465 Kilograms (kg) Plates", "quantity": 1 } ], "created_at": "2026-10-07T14:21:10Z" } ], "has_more": false, "next_cursor": null } ``` ### Get an import issue GET `/v2/import-issues/{id}` - **Credentials**: An API key with the `orders:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_import_issue` Returns one order that could not be imported. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the import issue, prefixed with `imp_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The import issue. Returns [the import issue object](https://public-api.dapi.digital/docs/reference/orders.md#import_issue_object). #### Responses - `200`: The import issue. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no import issue with this id (`import_issue_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/import-issues/imp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/orders. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Integrator orders Orders integrators place for their own customers, paid from the wallet or through a hosted checkout. Integrators only. ### Endpoints - [GET `/v2/integrator/orders`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#list_integrator_orders) - [POST `/v2/integrator/orders`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#create_integrator_order) - [POST `/v2/integrator/orders/shipping-estimate`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#estimate_integrator_order_shipping) - [GET `/v2/integrator/orders/{id}`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#get_integrator_order) - [POST `/v2/integrator/orders/{id}/cancel`](https://public-api.dapi.digital/docs/reference/integrator-orders.md#cancel_integrator_order) ### The integrator order object An order for prints of your quotes: what was ordered, where it ships, its status, what was charged and, in `checkout` mode, what you earn. #### Attributes - `id` (string): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order`. - `number` (string): Human-readable order number, the one your customers and 3DAPI support use. - `channel` (string): Which money flow the order follows. Possible values: `integrator_checkout`, `integrator_wallet`. - `status` (OrderStatus): Where the order is: - `awaiting_payment`: you still have to pay for it. - `paid`: paid, waiting to be assigned to a production partner. - `assigned`: a production partner has it; production has not started. - `in_production`: being made. - `shipped`: on its way to the customer. `shipping` has the tracking details. - `completed`: delivered and settled. - `on_hold`: there is not enough stock to fulfil it. - `rejected`: the production partner refused it. - `returned`: sent back after shipping. - `cancelled`: cancelled, usually after a full refund. - `customer` (OrderCustomer or null): Who ordered. Personal data: null unless the API key has the `orders:read_customer` scope. - `name` (string): Customer full name. - `email` (string or null): Customer email. - `phone` (string or null): Customer phone. - `company` (object or null): Set when the buyer bought as a business. - `name` (string or null): Company name. - `tax_id` (string or null): VAT or tax number the buyer entered. - `tax_id_validated` (boolean or null): True when VIES confirmed the EU VAT number, so the sale was zero-rated. False when it did not. Null when not applicable. - `shipping_address` (OrderShippingAddress): Where the order ships. The country is always shown because it decides shipping and VAT; the rest is personal data. - `formatted` (string or null): The full address as one line. Null without the `orders:read_customer` scope. - `city` (string or null): City. Null without the `orders:read_customer` scope. - `country` (string or null): Country name. Always present when known. - `country_code` (string or null): ISO 3166-1 alpha-2 country code. Always present when known. - `charges` (OrderCharges): What the payer was charged for the order. - `paid_by` (string): `buyer` when a customer paid 3DAPI (storefront orders), `you` when you paid for the order (manual, imported and API orders, and replacements you were responsible for), `dapi` when 3DAPI covers it (a replacement for a production partner mistake; you were not charged, and the charges show what the replacement cost). `earnings` is null unless `buyer`. - `items` (object): Items total. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `shipping` (object): Shipping charged. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `vat` (object): VAT on the order. Zero outside the EU and UK. - `amount` (object): VAT charged. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `rate` (number): VAT rate as a fraction, for example 0.21. 0 when none. Range 0 to 1. - `included` (boolean): True when VAT is carved out of the prices; false when it was added on top. - `country` (string or null): Country whose rate applied, ISO alpha-2. Null when none. - `sample_credit` (object or null): Sample credit that covered part of the charge. Null when none was used. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `total` (object): The full charge, VAT included, before any sample credit. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `earnings` (OrderEarnings or null): What you earn from a buyer-paid order and what was taken off it. Null when you paid for the order yourself. - `manufacturing` (object): Paid to the production partner for this order. 0 on an order fulfilled from prepaid stock: that manufacturing was paid when you bought the stock batch. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `platform_fee` (object): 3DAPI commission, at your plan rate. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `payment_processing` (object): Card processing fee taken from your earnings on the buyer payment. Kept by the card processor even when the order is refunded. 0 on older orders whose payout was made without deducting it. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `refunded` (object): What completed refunds took off your earnings. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `net` (object): What you keep. Never rounded up to 0: minimum prices include the card fee, so it is not negative on sales made at or above them, but a price set before that rule can show a negative amount here. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `shipping` (OrderShipping): Shipping details. - `tier` (string or null): Shipping tier the order was priced at, frozen at placement: `small`, `medium` or `large`, the weight bands a variant's `shipping.tier` describes. Null when it was priced at the flat rate. - `carrier` (string or null): Carrier, once shipped. - `tracking_number` (string or null): Tracking number, once shipped. - `shipped_at` (timestamp or null): When the order shipped. Null before shipping, and for some orders that shipped before this was recorded. - `customer_notes` (string or null): Notes the customer left at checkout. Null without the `orders:read_customer` scope, since buyers often write personal details here. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): Point in time, ISO 8601 in UTC. - `mode` (string): `wallet`: you pay the production price plus shipping from your wallet (a shortfall is charged to your saved card). `checkout`: your customer pays the sales price you set through a hosted 3DAPI checkout and you earn the difference. - `checkout` (object or null): The hosted checkout link in `checkout` mode, null in `wallet` mode. - `object` (string): Names the type of this object. Always `checkout_link`. - `url` (string): Send your customer here to pay. - `status` (string): `open` until paid or closed; `completed` once the buyer paid; `expired` when the link timed out unpaid, which cancels the order (`checkout.expired`); `cancelled` when you cancelled the unpaid order (`order.cancelled`). - `expires_at` (timestamp): Point in time, ISO 8601 in UTC. - `item_count` (integer): Units ordered across all lines. Range at least 0. - `items` (array of IntegratorOrderItem, optional): The order lines. In lists only present with `expand[]=items`. - `id` (string): Unique identifier of the order item, prefixed with `itm_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order_item`. - `quote` (object): The quote this line prints, as named when ordered. - `id` (string): Unique identifier of the quote, prefixed with `qte_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `quote`. - `name` (string): Display name of the quote. - `materials` (array of CatalogMaterialReference): The materials loaded, in slot order. `material_slots` says which slot each one goes in. - `id` (string): Unique identifier of the material, prefixed with `mat_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `material`. - `name` (string): Display name of the material. - `material_slots` (array of MaterialSlot): Which material goes in which extruder slot, by slot. Slots the file does not use are left out. - `slot` (integer): Extruder slot (filament number) in the 3MF, from 1, as `suggested_materials[].slot` on the quote lists them. Range 1 to 16. - `material` (CatalogMaterialReference): Same shape as `CatalogMaterialReference` above. - `quantity` (integer): Copies of the quote printed on this line. Range at least 1. - `unit_price` (object): What the payer paid per unit: the production price in `wallet` mode, your sales price in `checkout` mode. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `production_unit_price` (object): The quote price per unit at this quantity (it falls as a plate fills), plus the price of the extras shipped with each unit: what you pay in `wallet` mode, your cost in `checkout` mode. It already includes the platform fee: `earnings.manufacturing` plus `earnings.platform_fee` equal this price times the quantity, summed over the lines. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `extras` (array of object): Extras shipped with every unit of this line, as ordered. Empty when none. - `extra` (ExtraReference): Reference to a extra. Pass the matching `expand[]` path to receive the full extra instead. - `id` (string): Unique identifier of the extra, prefixed with `xtr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `extra`. - `name` (string): Display name of the extra. - `quantity_per_unit` (integer): How many of this extra ship with each printed unit of the line. Range at least 1. - `total` (object): `unit_price` times `quantity`. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `refunds` (array of object): Completed refunds, oldest first, in lists too. Empty when none. - `id` (string): Unique identifier of the refund, prefixed with `rfd_`. Treat it as an opaque string: store it and compare it, never parse it. - `amount` (object): Total refunded, VAT included. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `reference` (string or null): Your own order id, as you sent it. **The integrator order object** ```json { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "2AP7K2M9X", "channel": "integrator_wallet", "status": "paid", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "you", "items": { "amount": 5000, "currency": "usd" }, "shipping": { "amount": 800, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 5800, "currency": "usd" } }, "earnings": null, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "customer_notes": null, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 10, "mode": "wallet", "checkout": null, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "quote": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "phone-stand.stl" }, "materials": [ { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Black" } ], "material_slots": [ { "slot": 1, "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Black" } } ], "quantity": 10, "unit_price": { "amount": 500, "currency": "usd" }, "production_unit_price": { "amount": 500, "currency": "usd" }, "extras": [], "total": { "amount": 5000, "currency": "usd" } } ], "refunds": [], "reference": "SHOP-1042" } ``` ### List your orders GET `/v2/integrator/orders` - **Credentials**: An API key with the `orders:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `list_integrator_orders` Your orders, newest first, without their lines unless `expand[]=items`. Integrators only. #### Query parameters - `status` (array of OrderStatus): Only orders in these statuses (repeatable). Same shape as `OrderStatus` above. - `mode` (string): `wallet`: you pay the production price plus shipping from your wallet (a shortfall is charged to your saved card). `checkout`: your customer pays the sales price you set through a hosted 3DAPI checkout and you earn the difference. - `created_after` (timestamp): Only orders placed after this time. - `created_before` (timestamp): Only orders placed before this time. - `reference` (string): Exact match on your own order id. - `quote` (string): Only orders with a line from this quote. - `search` (string): Part of the order `number` or of your `reference`, case-insensitive. For example `7K2M` finds `2AP7K2M9X`, and `1042` finds `SHOP-1042`. - `expand[]` (array of string): `items` adds the order lines. - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of orders. Response attributes (IntegratorOrderList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of IntegratorOrder): The page of results. Described in [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of orders. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/integrator/orders" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ [ { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "2AP7K2M9X", "channel": "integrator_wallet", "status": "paid", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "you", "items": { "amount": 5000, "currency": "usd" }, "shipping": { "amount": 800, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 5800, "currency": "usd" } }, "earnings": null, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "customer_notes": null, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 10, "mode": "wallet", "checkout": null, "refunds": [], "reference": "SHOP-1042" } ] ], "has_more": false, "next_cursor": null } ``` ### Order prints of your quotes POST `/v2/integrator/orders` - **Credentials**: An API key with the `orders:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `create_integrator_order` Orders prints of your own `ready` quotes once your account is approved. In `wallet` mode you pay the production price plus shipping from your wallet; a shortfall is charged to your saved card with VAT on the top-up, as for every wallet top-up. The order comes back paid, numbered `2AP...`, and goes to production. If payment fails, no order is created. In `checkout` mode your customer pays your `unit_sales_price` plus shipping, and VAT when they ship to the EU or UK, on a hosted 3DAPI checkout: the order comes back `awaiting_payment`, numbered `2AC...`, with `checkout.url` to send them to, and `order.created` is sent. The link stays open 24 hours; unpaid, the order is then cancelled and `checkout.expired` is sent. Cancelling it yourself before it is paid sends `order.cancelled` instead. Once the order is completed you earn the sales price less the production price and the card fee, credited to your wallet. A line may carry approved extras (`items[].extras`): their price per unit is added to the line's production price in both modes. Integrators only. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `mode` (string, required): `wallet`: you pay the production price plus shipping from your wallet (a shortfall is charged to your saved card). `checkout`: your customer pays the sales price you set through a hosted 3DAPI checkout and you earn the difference. - `items` (array of object, required): What to print and ship, 1 to 100 lines. - `quote` (string, required): One of your quotes with status `ready`. - `quantity` (integer, required): Copies of this quote to print and ship, 1 to 10000 per line (an order has up to 100 lines). The production price per unit depends on it. Designer orders (create\_order) allow 1 to 1000 units per line instead, also with up to 100 lines. Range 1 to 10000. - `materials` (one of): Which catalog material (list\_materials) goes in which extruder slot of the quote's file. Either a list of `{ slot, material }`, one for each slot in the quote's `suggested_materials` and no others, or a plain list of material ids for slots 1, 2, 3... in order, which only works when the quote uses slots from 1 without gaps. Slots that do not match are refused with `material_slots_mismatch` (`details.expected_slots`). Send this or `use_suggested_materials`, not both. Quotes without `suggested_materials` (created before suggestions) take materials for slots 1 to n, n no more than the quote prints with (`material_not_allowed`, `details.slots`). - Shape **array**: - Shape **array**: - `use_suggested_materials` (boolean): Print with the quote's `suggested_materials`: the catalog material closest to each filament colour in your file, in the slot it uses. Send this or `materials`, not both. Refused with `suggestions_unavailable` when the quote has no suggestions. - `unit_sales_price` (object or null): Required in `checkout` mode, forbidden in `wallet` mode: what your customer pays per unit, net of VAT, in `usd` (another currency is refused with `currency_not_supported`). Not below the minimum, which covers the production unit price (the quote price plus the extras on this line) and this unit's share of the card fee checkout takes, so a sale at the minimum never loses money. With k = fee percent / 100 x (1 + the VAT rate the buyer pays on top) and the fee of the destination (EU 1.5% + $0.30, UK 2.5% + $0.30, elsewhere 2.9% + $0.30): minimum = (production\_unit\_price + (k x shipping + $0.30) / units in the order) / (1 - k), rounded up to the cent. A lower price is refused with `sales_price_below_production`, with `details.minimum`, `details.production_unit_price` and `details.formula`. - `amount` (integer, required): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string, required): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `extras` (array of object): Bought-in parts shipped with every unit of this line, for example magnets or screws. Each extra's approved `price` times `quantity_per_unit` is added to the production price of every unit: you pay it in `wallet` mode, and in `checkout` mode it raises the minimum `unit_sales_price` and comes out of your earnings. They also count toward the parcel's shipping weight, as on designer orders. The production partner gets them with the order. - `extra` (string, required): One of your extras, approved by 3DAPI (list\_extras). - `quantity_per_unit` (integer, required): How many of the extra ship with each unit. Range 1 to 100. - `shipping_address` (object, required): Where to ship, in both modes. In `checkout` mode it also decides the buyer's VAT (EU and UK consumers pay their country's rate on top) and the payment account. - `line1` (string, required): Street and number. - `line2` (string or null): Apartment, suite, floor or building. Omit or send null when there is none. - `city` (string, required): City or town. - `state` (string or null): State, province, county or region, where the address uses one. Omit or send null otherwise. - `postal_code` (string or null): Postal or ZIP code. Omit or send null where the country has none. - `country_code` (string, required): ISO 3166-1 alpha-2, uppercase. A code that is not a real country is refused with `validation_failed`. - `customer` (object, required): Who receives the order. In `checkout` mode this is your customer, who gets the order confirmation and shipping emails from 3DAPI naming you as the seller. - `name` (string, required): Full name of the person receiving the order. - `email` (string, required): Email of the person receiving the order. - `phone` (string or null): Phone number with country prefix. Omit or send null when you have none. - `company` (object or null): `checkout` mode only: set when your customer buys as a business. Returned as `customer.company`, with `tax_id_validated` once VIES has checked the number. - `name` (string, required): The business name, printed on the invoice. - `tax_id` (string or null): The business VAT number. For an EU shipping country it is checked with VIES when the order is created: a confirmed number pays no VAT (reverse charge), a number VIES rejects is refused (`vat_number_invalid`), and when VIES cannot be reached VAT is charged. Numbers for other countries, the UK included, are not checked and VAT follows the normal rules. - `checkout` (object or null): Required in `checkout` mode, forbidden in `wallet` mode. - `success_url` (string, required): Where the hosted page sends your customer after paying. Must be https; plain http is accepted only for localhost and 127.0.0.1. Anything else is refused with `validation_failed`. - `cancel_url` (string, required): Where the hosted page sends your customer if they leave without paying. Same rules as `success_url`. - `reference` (string or null): Your own order id, for matching. - `customer_notes` (string or null): Free-text notes for the order, up to 2000 characters. Returned as `customer_notes`, which is only shown to keys with the `orders:read_customer` scope. - `use_sample_credit` (boolean): `wallet` mode only (forbidden in `checkout` mode): spend your sample credit on this order before the wallet balance. It applies only when the order ships to your own country (your billing or sign-up country); otherwise the order is placed at full price. What applied is shown in `charges.sample_credit`. Default false. #### Returns 201 Created The order: paid in \`wallet\` mode, \`awaiting\_payment\` with its checkout link in \`checkout\` mode. Returns [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). #### Responses - `201`: The order: paid in `wallet` mode, `awaiting_payment` with its checkout link in `checkout` mode. - `400`: The request is invalid (`validation_failed`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `402`: Payment failed: the card was declined (`payment_failed`), or the wallet is short and there is no saved card (`insufficient_balance`). No order was created. - `403`: Your account cannot order yet: add your business billing details, or, to sell to EU or UK customers from outside the EU and UK, an active EU responsible person (`compliance_blocked`, `details.requirements`; `details.fix_url` links to the dashboard page that fixes it). - `404`: A quote is not one of yours (`quote_not_found`). - `409`: Production is paused (`production_unavailable`). - `422`: A quote is not ready (`quote_not_ready`) or was rejected in review (`quote_rejected`), an extra is not one of yours (`extra_not_found`) or not approved (`extra_not_approved`), your account is not approved yet (`quote_not_approved`), a material is unknown or there are more materials than the quote prints with (`material_not_allowed`), the slots sent are not the slots the quote's file uses (`material_slots_mismatch`, `details.expected_slots`), the suggested materials were asked for on a quote that has none (`suggestions_unavailable`), a sales price is not in usd (`currency_not_supported`) or is below the minimum (`sales_price_below_production`, `details.minimum`), we do not deliver to the country (`shipping_destination_not_served`: 3DAPI does not deliver to Russia, Belarus, Iran or Syria), or VIES did not confirm the business buyer's EU VAT number (`vat_number_invalid`, `details.tax_id` and `details.country_code`; nothing is created). The request is checked in full before the account compliance gate (403), so these come first. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Card payments are not available right now (`card_payments_unavailable`); no order was created. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/integrator/orders" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "mode": "wallet", "items": [ { "quote": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "quantity": 10, "materials": [ "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ] } ], "shipping_address": { "line1": "Hauptstrasse 12", "city": "Berlin", "postal_code": "10115", "country_code": "DE" }, "customer": { "name": "Jane Buyer", "email": "jane@example.com" }, "reference": "SHOP-1042" }' ``` ### Estimate the shipping of an order POST `/v2/integrator/orders/shipping-estimate` - **Credentials**: An API key with the `orders:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `estimate_integrator_order_shipping` What `create_integrator_order` would charge for shipping these lines to this country, computed by the same code the order is charged with: the parcel takes the tier of its heaviest item, every other item (extra-small ones excluded) adds the zone's per-item price, and extras count toward the weight. Nothing is created, and your account does not need to be approved yet. The total is without VAT: in `checkout` mode, buyers in the EU or UK pay VAT on top. It can change if the rate card changes before you order; the order charges the rate card at the time it is placed. Send the same `items` (quote, quantity, extras) and the destination you would order with. Integrators only. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `country` (string, required): Destination country, ISO 3166-1 alpha-2, uppercase: the `shipping_address.country_code` you would order with. A code that is not a real country is refused with `validation_failed`. - `items` (array of object, required): The lines of the order you would place, as `create_integrator_order` takes them. Materials and prices do not change shipping, so they are not sent. - `quote` (string, required): One of your quotes with status `ready`. - `quantity` (integer, required): Copies of this quote to print and ship, 1 to 10000 per line (an order has up to 100 lines). The production price per unit depends on it. Designer orders (create\_order) allow 1 to 1000 units per line instead, also with up to 100 lines. Range 1 to 10000. - `extras` (array of object): The extras you would ship with every unit of this line, as on `create_integrator_order`. They count toward the shipping weight. - `extra` (string, required): One of your extras, approved by 3DAPI (list\_extras). - `quantity_per_unit` (integer, required): How many of the extra ship with each unit. Range 1 to 100. #### Returns 200 OK The shipping the order would be charged. Response attributes (ShippingEstimate): - `object` (string): Names the type of this object. Always `shipping_estimate`. - `country_code` (string): Destination country, as sent. - `zone` (object or null): The zone that serves the country. Null when the order cannot be weighed yet and the flat rate applies. - `code` (string): Stable identifier of the zone, for example `eu-core`. Zones are platform configuration, so they have a readable code instead of an opaque id. - `name` (string): Display name of the zone. - `tier` (string or null): Tier of the heaviest item in the parcel, which the parcel is priced at. Null with the flat rate. Possible values: `small`, `medium`, `large`. - `additional_items` (integer): Items charged on top of the heaviest one. Extra-small items ship free and are not counted. Range at least 0. - `total` (object): What the order would be charged for shipping, without VAT. In `checkout` mode buyers in the EU or UK pay VAT on top. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. #### Responses - `200`: The shipping the order would be charged. - `400`: The request is invalid (`validation_failed`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: A quote is not one of yours (`quote_not_found`). - `422`: A quote is not ready (`quote_not_ready`) or was rejected in review (`quote_rejected`), an extra is not one of yours (`extra_not_found`) or not approved (`extra_not_approved`), or we do not deliver to the country (`shipping_destination_not_served`: 3DAPI does not deliver to Russia, Belarus, Iran or Syria). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/integrator/orders/shipping-estimate" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "country": "DE", "items": [ { "quote": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "quantity": 2 }, { "quote": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "quantity": 2, "extras": [ { "extra": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "quantity_per_unit": 1 } ] } ] }' ``` **Response 200** ```json { "object": "shipping_estimate", "country_code": "DE", "zone": { "code": "eu-core", "name": "EU Core" }, "tier": "medium", "additional_items": 3, "total": { "amount": 1099, "currency": "usd" } } ``` ### Get an order GET `/v2/integrator/orders/{id}` - **Credentials**: An API key with the `orders:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `get_integrator_order` One of your orders, with its lines and refunds. Integrators only. #### Path parameters - `id` (string, required): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The order. Returns [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). #### Responses - `200`: The order. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no order with this id (`order_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/integrator/orders/ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Cancel an order POST `/v2/integrator/orders/{id}/cancel` - **Credentials**: An API key with the `orders:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `cancel_integrator_order` Cancels an order. An unpaid `checkout` order (`awaiting_payment`) has its link closed and is cancelled. A `paid` order a production partner has not started is refunded in full: to your wallet for `wallet` orders, to your customer's card for `checkout` orders. Integrators only. #### Path parameters - `id` (string, required): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Returns 200 OK The order, cancelled. Returns [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). #### Responses - `200`: The order, cancelled. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no order with this id (`order_not_found`). - `409`: The order cannot be cancelled (`order_not_cancellable`): it is already cancelled, or past `paid` (a production partner started it; contact support). Unpaid checkout orders (`awaiting_payment`) and `paid` orders can be cancelled; the message says which case applies. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/integrator/orders/ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/cancel" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/integrator-orders. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Designs Printable model files. ### Endpoints - [POST `/v2/products/{id}/designs`](https://public-api.dapi.digital/docs/reference/designs.md#add_design) - [GET `/v2/designs/{id}`](https://public-api.dapi.digital/docs/reference/designs.md#get_design) - [PATCH `/v2/designs/{id}`](https://public-api.dapi.digital/docs/reference/designs.md#update_design) - [DELETE `/v2/designs/{id}`](https://public-api.dapi.digital/docs/reference/designs.md#delete_design) ### The design object A printable model: its files, the materials it can be printed in and how it is produced. Every design is reviewed by 3DAPI before it can be manufactured. #### Attributes - `id` (string): Unique identifier of the design, prefixed with `dsg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `design`. - `name` (string): Display name, usually the name of the uploaded file. - `owner` (object): The product or stock this design belongs to. A design always belongs to exactly one of them; check `object`. - Shape **Reference** (default): Reference to a product. Pass the matching `expand[]` path to receive the full product instead. - `id` (string): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `product`. - `name` (string): Display name of the product. - Shape **Reference** (default): Reference to a stock. Pass the matching `expand[]` path to receive the full stock instead. - `id` (string): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `stock`. - `name` (string): Display name of the stock. - `review` (Review): Review by 3DAPI. Anything that will be manufactured is reviewed before it can be sold or produced. - `status` (ReviewStatus): Where 3DAPI stands on reviewing this object: - `pending`: waiting for review by 3DAPI. Nothing to do on your side. - `approved`: reviewed and accepted. - `rejected`: reviewed and refused. `reason` says why; fix it and save again to resubmit. - `reason` (string or null): Why it was rejected. Null unless `status` is `rejected`. - `reviewed_at` (timestamp or null): When the latest review decision was made. Null while pending. - `files` (array of DesignFile): The model files of this design. Usually exactly one. - `name` (string): File name. - `format` (string): File format. Possible values: `3mf`, `stl`. - `size_bytes` (integer or null): File size in bytes. Null only when the size cannot be read from storage. - `download_url` (string): Signed URL to download the file. Valid for 15 minutes; fetch the design again for a fresh one. - `id` (string): Unique identifier of the design file, prefixed with `dfl_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `design_file`. - `uploaded_at` (timestamp): When the file was uploaded. - `production_version` (object or null): The copy 3DAPI adapted to the production printer (printer, process and filament settings written in). This is the file that gets printed. Null when your upload is printed as it is. - `name` (string): File name. - `format` (string): File format. Possible values: `3mf`, `stl`. - `size_bytes` (integer or null): File size in bytes. Null only when the size cannot be read from storage. - `download_url` (string): Signed URL to download the file. Valid for 15 minutes; fetch the design again for a fresh one. - `prepared_at` (timestamp): When 3DAPI prepared this version. - `materials` (object): Which materials the design may be printed in. `mode` tells the two shapes apart. - Shape **mode: single**: - `mode` (string): The whole design prints in one material. - `allowed` (array of MaterialReference): Materials buyers or variants may choose from. Each variant picks one. - `id` (string or null): Unique identifier of a catalog material, prefixed with `mat_`. Null for a custom material. - `object` (string): Names the type of this object. Always `material`. - `name` (string): Display name, for example `PLA Black`. For custom materials, exactly what the seller typed. - `custom` (boolean): True for a seller-specified material that is not in the catalog. Custom materials need manual review before production. - Shape **mode: multicolor**: - `mode` (string): The design prints in several materials at once. - `combinations` (array of object): Saved material combinations a variant can use. - `id` (string): Identifier of the combination, unique within the design. - `name` (string): Display name listing the materials in slot order. - `slots` (array of MaterialReference): One material per color slot, in the order the file uses them. Same shape as `MaterialReference` above. - `manufacturing` (object): How the design is produced. - `colors` (integer): How many colors the print uses at once, 1 to 8. Range 1 to 8. - `requires_ams` (boolean): Whether printing needs an automatic material system (several filaments loaded at once). - `assembly_required` (boolean): Whether the printed parts must be assembled before shipping. - `farm_instructions` (string or null): Notes for the production partner, for example assembly steps. - `extra_parts_note` (string or null): Free-text description of extra parts, kept for reference. The extras that are priced and shipped are the ones in each variant `contents`. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): Point in time, ISO 8601 in UTC. **The design object** ```json { "id": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design", "name": "tracker.3mf", "owner": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "PR Tracker" }, "review": { "status": "approved", "reason": null, "reviewed_at": "2026-04-21T09:10:00Z" }, "files": [ { "id": "dfl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design_file", "name": "tracker.3mf", "format": "3mf", "size_bytes": 2758723, "download_url": "https://files.example.com/tracker.3mf?signature=abc", "uploaded_at": "2026-04-21T07:34:06Z", "production_version": { "name": "farm-settings-tracker.3mf", "format": "3mf", "size_bytes": 2761090, "download_url": "https://files.example.com/farm-settings-tracker.3mf?signature=def", "prepared_at": "2026-04-21T07:36:40Z" } } ], "materials": { "mode": "single", "allowed": [ { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Black", "custom": false }, { "id": null, "object": "material", "name": "PETG Matte", "custom": true } ] }, "manufacturing": { "colors": 1, "requires_ams": false, "assembly_required": true, "farm_instructions": null, "extra_parts_note": "Two M2 screws" }, "created_at": "2026-04-21T07:34:06Z", "updated_at": "2026-04-21T09:10:00Z" } ``` ### Add a design to a product POST `/v2/products/{id}/designs` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `add_design` Adds a model file to a product, with the materials it may be printed in. The new design is pending review by 3DAPI, so the product is too until it is approved. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `file` (object, required): The model file, uploaded first with purpose `design_file`. - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - `name` (string or null): Display name. The file name when omitted. - `materials` (object, required) - Shape **mode: single**: - `mode` (string, required): `single`: the design prints in one material, and each variant picks one from `allowed`. - `allowed` (array of objects, required): Materials variants may print this design in; each variant picks one. - Shape **string**: Unique identifier of the material, prefixed with `mat_`. Treat it as an opaque string: store it and compare it, never parse it. - Shape **CustomMaterialInput** (expanded): - `custom` (string, required): A filament not in the catalog, by name. Reviewed by 3DAPI. - Shape **mode: multicolor**: - `mode` (string, required): `multicolor`: the design prints in several color slots, and each variant picks one of the `combinations`. - `combinations` (array of object, required): Color combinations variants may print this design in. Every combination has the same number of slots; each variant picks one by sending its slot materials in order. - `name` (string or null): Display name. Built from the slot materials when omitted. - `slots` (array of objects, required): One material per color slot, in the order the file uses them. Same shape as `MaterialInput` above. #### Returns 201 Created The new design, pending review. Returns [the design object](https://public-api.dapi.digital/docs/reference/designs.md#design_object). #### Responses - `201`: The new design, pending review. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no product with this id (`product_not_found`). - `422`: `material_not_found`, `combination_slots_mismatch`, or the file upload cannot be used: `unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing`, `upload_already_used`. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/products/prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/designs" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "file": { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" }, "name": "Tracker lid", "materials": { "mode": "single", "allowed": [ "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ] } }' ``` ### Get a design GET `/v2/designs/{id}` - **Credentials**: An API key with the `products:read` or `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_design` Returns one of your designs: its files with download links, allowed materials, production settings and review status. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the design, prefixed with `dsg_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The design. Returns [the design object](https://public-api.dapi.digital/docs/reference/designs.md#design_object). #### Responses - `200`: The design. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no design with this id (`design_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/designs/dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Update a design PATCH `/v2/designs/{id}` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `update_design` Changes a design name or its allowed materials. Sends designs back to review by 3DAPI: a new design file; turning assembly on or off (every design); a newly added extra that is not approved yet (every design); and, per design, a change to its custom materials, single or multicolor mode, color count or multi-material (AMS) requirement. Nothing else does. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the design, prefixed with `dsg_`. Treat it as an opaque string: store it and compare it, never parse it. #### Request body - `name` (string or null): Display name. The file name when omitted. - `materials` (object): Same shape as `DesignMaterialsInput` above. #### Returns 200 OK The updated design. Returns [the design object](https://public-api.dapi.digital/docs/reference/designs.md#design_object). #### Responses - `200`: The updated design. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no design with this id (`design_not_found`). - `409`: The design belongs to a stock (`design_belongs_to_stock`); stock designs are changed from the dashboard for now. - `422`: A material a variant still uses was removed (`material_in_use`), `material_not_found` or `combination_slots_mismatch`. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v2/designs/dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "materials": { "mode": "single", "allowed": [ "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", { "custom": "Silk white PLA" } ] } }' ``` ### Delete a design DELETE `/v2/designs/{id}` - **Credentials**: An API key with the `products:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `delete_design` Removes a design from its product. Not possible while a variant uses it: change or delete those variants first. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the design, prefixed with `dsg_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The design was deleted. Response attributes (object): - `id` (string): The id of the deleted design. - `object` (string): Always `design`. - `deleted` (boolean): Always `true`: the deletion succeeded. #### Responses - `200`: The design was deleted. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no design with this id (`design_not_found`). - `409`: A variant still uses this design (`design_in_use`), or the design belongs to a stock (`design_belongs_to_stock`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v2/designs/dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design", "deleted": true } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/designs. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Stocks Ready-made units bought in batches. This page covers [the stock object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_object), [the stock batch object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_batch_object), [the stock purchase object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_purchase_object) and [the region object](https://public-api.dapi.digital/docs/reference/stocks.md#region_object). ### Endpoints - [GET `/v2/stocks`](https://public-api.dapi.digital/docs/reference/stocks.md#list_stocks) - [POST `/v2/stocks`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock) - [GET `/v2/stocks/{id}`](https://public-api.dapi.digital/docs/reference/stocks.md#get_stock) - [PATCH `/v2/stocks/{id}`](https://public-api.dapi.digital/docs/reference/stocks.md#update_stock) - [POST `/v2/stocks/{id}/designs`](https://public-api.dapi.digital/docs/reference/stocks.md#add_stock_design) - [PUT `/v2/stocks/{id}/restock/{region_id}`](https://public-api.dapi.digital/docs/reference/stocks.md#set_stock_restock) - [GET `/v2/stock-batches`](https://public-api.dapi.digital/docs/reference/stocks.md#list_all_stock_batches) - [GET `/v2/stocks/{id}/batches/{batch_id}/usage`](https://public-api.dapi.digital/docs/reference/stocks.md#list_stock_batch_usage) - [GET `/v2/stocks/{id}/batches`](https://public-api.dapi.digital/docs/reference/stocks.md#list_stock_batches) - [GET `/v2/stocks/{id}/batches/{batch_id}`](https://public-api.dapi.digital/docs/reference/stocks.md#get_stock_batch) - [POST `/v2/stock-purchases`](https://public-api.dapi.digital/docs/reference/stocks.md#create_stock_purchase) - [GET `/v2/regions/{id}`](https://public-api.dapi.digital/docs/reference/stocks.md#get_region) ### The stock object Ready-made units you buy in batches ahead of time and that are kept in storage until orders use them. A variant can ship from a stock instead of being printed on demand. #### Attributes - `id` (string): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `stock`. - `name` (string): Display name. - `description` (string or null): Longer description, when provided. - `review` (Review): Review by 3DAPI. Anything that will be manufactured is reviewed before it can be sold or produced. - `status` (ReviewStatus): Where 3DAPI stands on reviewing this object: - `pending`: waiting for review by 3DAPI. Nothing to do on your side. - `approved`: reviewed and accepted. - `rejected`: reviewed and refused. `reason` says why; fix it and save again to resubmit. - `reason` (string or null): Why it was rejected. Null unless `status` is `rejected`. - `reviewed_at` (timestamp or null): When the latest review decision was made. Null while pending. - `units_per_batch` (integer): How many units one purchased batch contains. Range at least 0. - `batch_price` (object or null): What you pay for one batch, the same in every region. Set by 3DAPI when the stock is approved; null until then. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `unit_price` (object or null): What one unit costs you: `batch_price` divided by `units_per_batch`. Null until the stock is priced. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `contents` (array of objects): What every unit of the stock is made of. - Shape **type: design**: - `type` (string): A printed part. - `design` (object): A design reference by default. With `expand[]=contents.design` it is the full design, identical to what its own GET returns, when your API key has the read scope that GET needs; otherwise it stays a reference. - Shape **Reference** (default): Reference to a design. Pass the matching `expand[]` path to receive the full design instead. - `id` (string): Unique identifier of the design, prefixed with `dsg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `design`. - `name` (string): Display name of the design. - Shape **Design** (expanded): [the design object](https://public-api.dapi.digital/docs/reference/designs.md#design_object). - Shape **type: extra**: - `type` (string): A bought-in part. - `extra` (object): A extra reference by default. With `expand[]=contents.extra` it is the full extra, identical to what its own GET returns, when your API key has the read scope that GET needs; otherwise it stays a reference. - Shape **Reference** (default): Reference to a extra. Pass the matching `expand[]` path to receive the full extra instead. - `id` (string): Unique identifier of the extra, prefixed with `xtr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `extra`. - `name` (string): Display name of the extra. - Shape **Extra** (expanded): [the extra object](https://public-api.dapi.digital/docs/reference/extras.md#extra_object). - `inventory` (object): Units across every batch you bought. - `available` (integer): Units made and ready to ship. Range at least 0. - `in_production` (integer): Units paid for and not yet made. Range at least 0. - `by_region` (array of object): The same counts per production region. Orders are filled from a region that ships to the buyer. - `region` (RegionReference): Reference to a region. Pass the matching `expand[]` path to receive the full region instead. - `id` (string): Unique identifier of the region, prefixed with `reg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `region`. - `name` (string): Display name of the region. - `available` (integer): Units made and ready to ship. Range at least 0. - `in_production` (integer): Units paid for and not yet made. Range at least 0. - `restock` (array of object): Restock rule for each region the stock can be produced in. The regions are chosen by 3DAPI at approval. - `region` (RegionReference): Same shape as `RegionReference` above. - `mode` (string): What happens when this region reaches `when_available_below`: - `off`: nothing. - `notify`: you get a low-stock email. - `auto_buy`: batches for `reorder_units` are bought from your wallet, when auto-reorder is enabled on your account and the balance covers them; otherwise you get the email. - `when_available_below` (integer or null): Threshold in units. The rule is checked each time an order draws units from this stock (when the order is assigned for production), not continuously. It counts the units paid for minus the units used in this region, across every batch and including units still in production (so not `available`), and triggers when that count is at or below this threshold. Null when `mode` is `off`. Range at least 1. - `reorder_units` (integer or null): Units to buy per automatic purchase, returned as set. Purchases round up to whole batches: an automatic purchase buys `reorder_units` divided by `units_per_batch`, rounded up (at least one batch), at `batch_price` each, and the batch it creates holds exactly those batches times `units_per_batch` units. A multiple of `units_per_batch` buys exactly what you ask for. Only set when `mode` is `auto_buy`. Range at least 1. - `images` (array of Image): Photos of the stock. - `url` (string): Public image URL. - `primary` (boolean): True for the main image, shown first. At most one. - `attachments` (array of objects): Production documents for this stock. - Shape **Reference** (default): Reference to a attachment. Pass the matching `expand[]` path to receive the full attachment instead. - `id` (string): Unique identifier of the attachment, prefixed with `att_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `attachment`. - `name` (string): Display name of the attachment. - Shape **Attachment** (expanded): [the attachment object](https://public-api.dapi.digital/docs/reference/attachments.md#attachment_object). - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): Point in time, ISO 8601 in UTC. **The stock object** ```json { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack", "description": "Pre-assembled clickers, bagged.", "review": { "status": "approved", "reason": null, "reviewed_at": "2026-05-02T10:00:00Z" }, "units_per_batch": 50, "batch_price": { "amount": 30000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "contents": [ { "type": "design", "design": { "id": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design", "name": "clicker.3mf" } }, { "type": "extra", "extra": { "id": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "extra", "name": "M3 screw" } } ], "inventory": { "available": 32, "in_production": 18, "by_region": [ { "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "available": 32, "in_production": 18 } ] }, "restock": [ { "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "mode": "auto_buy", "when_available_below": 10, "reorder_units": 50 } ], "images": [ { "url": "https://cdn.example.com/clicker.png", "primary": true } ], "attachments": [ { "id": "att_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "attachment", "name": "packing-guide.pdf" } ], "created_at": "2026-04-30T12:00:00Z", "updated_at": "2026-05-02T10:00:00Z" } ``` ### List stocks GET `/v2/stocks` - **Credentials**: An API key with the `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `list_stocks` Lists your stocks, newest first, with how many units are available and in production. Filter on `in_stock=true` to see what can ship now. Designers only. #### Query parameters - `review_status` (array of ReviewStatus): Only stocks in these review states. Same shape as `ReviewStatus` above. - `in_stock` (string): Only stocks with (or without) units available to ship. Possible values: `true`, `false`. - `search` (string): Only stocks whose name contains this text, ignoring case. - `sort` (string): Order of results. A leading `-` means descending. `name` sorts alphabetically in a language-aware collation, which compares letters before spaces and case (`test slicer` comes after `testing warnings`); do not expect byte order. Possible values: `-created_at`, `created_at`, `name`. Defaults to "-created\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of stocks. Response attributes (StockList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of StockSummary): The page of results. - `id` (string): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `stock`. - `name` (string): Display name. - `review` (Review): Same shape as `Review` above. - `units_per_batch` (integer): How many units one purchased batch contains. Range at least 0. - `batch_price` (object or null): What you pay for one batch, the same in every region. Set by 3DAPI when the stock is approved; null until then. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `unit_price` (object or null): What one unit costs you: `batch_price` divided by `units_per_batch`. Null until the stock is priced. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `images` (array of Image): Photos of the stock. Same shape as `Image` above. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): Point in time, ISO 8601 in UTC. - `inventory` (object): Units across every batch you bought. - `available` (integer): Units made and ready to ship, across regions. Range at least 0. - `in_production` (integer): Units paid for and not yet made, across regions. Range at least 0. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of stocks. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/stocks" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack", "review": { "status": "approved", "reason": null, "reviewed_at": "2026-05-02T10:00:00Z" }, "units_per_batch": 50, "batch_price": { "amount": 30000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "inventory": { "available": 32, "in_production": 18 }, "images": [ { "url": "https://cdn.example.com/clicker.png", "primary": true } ], "created_at": "2026-04-30T12:00:00Z", "updated_at": "2026-05-02T10:00:00Z" } ], "has_more": false, "next_cursor": null } ``` ### Create a stock POST `/v2/stocks` - **Credentials**: An API key with the `stocks:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `create_stock` Creates a stock (ready-made units you buy in batches) and submits it for review. It comes back pending, without a price or regions: 3DAPI sets the batch price and the production regions when approving it. Upload design files first with purpose `design_file`. Your plan must include prepaid stock. Designers only. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `name` (string, required): Display name. - `description` (string or null): Longer description. Null for none. - `units_per_batch` (integer, required): How many units one batch contains. Range 1 to 100000. - `extras` (array of string): Your extras packed into every unit. Each counts once per unit. An extra still pending review is accepted and is reviewed with the stock; a rejected one is refused (`extra_not_approved`). - `manufacturing` (object): How the stock is produced. Applies to every design. - `assembly_required` (boolean, required): Whether the printed parts must be assembled before shipping. `false` when `manufacturing` is omitted on create. - `farm_instructions` (string or null): Notes for the production partner, for example packing steps. Omitted keeps the current notes; null or blank clears them. A change sends the stock back to review. - `images` (array of objects): Stock photos, in display order. On create, every entry is a new `upload`. On update the list replaces the current images: entries not sent are deleted, and kept ones use the `url` the stock returns. - Shape **object**: - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - `primary` (boolean): Makes this the main image. At most one entry may be marked. Without a marked entry, a kept main image stays main; otherwise one is chosen for you. - Shape **object**: - `url` (string, required): The URL of an image this product or stock already has, to keep it. - `primary` (boolean): Makes this the main image. At most one entry may be marked. Without a marked entry, a kept main image stays main; otherwise one is chosen for you. - `attachments` (array of objects): Production documents for the farm: new (`upload`, purpose `attachment`) or kept (`id`, update only). On update the list replaces the current attachments. - Shape **Reference** (default): - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - Shape **object**: - `id` (string, required): An attachment of this stock to keep. - `designs` (array of object, required): The model files of the stock. Add more later with `add_stock_design`, which sends the stock back to review. - `file` (object, required): The model file, uploaded with purpose `design_file`. - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - `name` (string or null): Display name. The file name when omitted. - `materials` (object, required) - Shape **mode: single**: - `mode` (string, required): `single`: the design prints in one material, and each variant picks one from `allowed`. - `allowed` (array of objects, required): Materials variants may print this design in; each variant picks one. - Shape **string**: Unique identifier of the material, prefixed with `mat_`. Treat it as an opaque string: store it and compare it, never parse it. - Shape **CustomMaterialInput** (expanded): - `custom` (string, required): A filament not in the catalog, by name. Reviewed by 3DAPI. - Shape **mode: multicolor**: - `mode` (string, required): `multicolor`: the design prints in several color slots, and each variant picks one of the `combinations`. - `combinations` (array of object, required): Color combinations variants may print this design in. Every combination has the same number of slots; each variant picks one by sending its slot materials in order. - `name` (string or null): Display name. Built from the slot materials when omitted. - `slots` (array of objects, required): One material per color slot, in the order the file uses them. Same shape as `MaterialInput` above. #### Returns 201 Created The new stock, pending review. Returns [the stock object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_object). #### Responses - `201`: The new stock, pending review. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: Your plan does not include prepaid stock, which stocks are part of (`plan_limit_reached`); `details.fix_url` points at upgrading. - `422`: An extra id is not one of yours (`extra_not_found`) or names an extra 3DAPI rejected (`extra_not_approved`, its name in `details.extra_name`), a material id is not in the catalog (`material_not_found`), multicolor combinations have different slot counts (`slot_count_mismatch`), more than one image is primary (`too_many_primary_images`), an image or attachment is sent as one to keep although a new stock has none yet (`unknown_image`, `unknown_attachment`; send `{ "upload": "upl_..." }`), or an upload id is unknown, expired or for another purpose (`unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing` when the file was never sent, `upload_already_used` when the upload id was already used once). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/stocks" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Clicker 50 pack", "units_per_batch": 50, "designs": [ { "file": { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" }, "name": "Clicker", "materials": { "mode": "single", "allowed": [ "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ] } } ], "extras": [ "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ], "manufacturing": { "assembly_required": true, "farm_instructions": "Bag in tens." } }' ``` ### Get a stock GET `/v2/stocks/{id}` - **Credentials**: An API key with the `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_stock` Returns one of your stocks: its price, contents, inventory per region and restock rules. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. #### Query parameters - `expand[]` (array of string): Replace references with full objects. Repeat the parameter for several paths, for example `expand[]=contents.design`. Unknown paths are rejected with `invalid_expand`. An expanded object from another resource needs the read scope of that resource on your API key; without it the reference `{ id, object, name }` is returned instead, with no error. Here `contents.extra` needs `extras:read`. Possible values: `contents.design`, `contents.extra`, `attachments`. #### Returns 200 OK The stock. Returns [the stock object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_object). #### Responses - `200`: The stock. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no stock with this id (`stock_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/stocks/stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Update a stock PATCH `/v2/stocks/{id}` - **Credentials**: An API key with the `stocks:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `update_stock` Changes the fields you send. Changing `units_per_batch` or the farm instructions sends the stock back to review; it cannot be bought until approved again. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. #### Request body - `name` (string): Display name. - `description` (string or null): Longer description. Null for none. - `units_per_batch` (integer): How many units one batch contains. Range 1 to 100000. - `extras` (array of string): Your extras packed into every unit. Each counts once per unit. An extra still pending review is accepted and is reviewed with the stock; a rejected one is refused (`extra_not_approved`). - `manufacturing` (object): How the stock is produced. Applies to every design. - `assembly_required` (boolean, required): Whether the printed parts must be assembled before shipping. `false` when `manufacturing` is omitted on create. - `farm_instructions` (string or null): Notes for the production partner, for example packing steps. Omitted keeps the current notes; null or blank clears them. A change sends the stock back to review. - `images` (array of objects): Stock photos, in display order. On create, every entry is a new `upload`. On update the list replaces the current images: entries not sent are deleted, and kept ones use the `url` the stock returns. Same shape as `ImageInput` above. - `attachments` (array of objects): Production documents for the farm: new (`upload`, purpose `attachment`) or kept (`id`, update only). On update the list replaces the current attachments. - Shape **Reference** (default): Same shape as `UploadReference` above. - Shape **object**: - `id` (string, required): An attachment of this stock to keep. #### Returns 200 OK The updated stock. Returns [the stock object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_object). #### Responses - `200`: The updated stock. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no stock with this id (`stock_not_found`). - `422`: An extra id is not one of yours (`extra_not_found`) or names an extra 3DAPI rejected (`extra_not_approved`, its name in `details.extra_name`), an image `url` or attachment `id` to keep is not one of the stock's (`unknown_image`, `unknown_attachment`), more than one image is primary (`too_many_primary_images`), or an upload id is unknown, expired or for another purpose. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v2/stocks/stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "units_per_batch": 50, "manufacturing": { "assembly_required": true, "farm_instructions": "Pack each unit in its own bag." } }' ``` ### Add a design to a stock POST `/v2/stocks/{id}/designs` - **Credentials**: An API key with the `stocks:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `add_stock_design` Adds a model file to a stock. Sends the stock back to review. Edit or remove designs with the design operations. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `file` (object, required): The model file, uploaded first with purpose `design_file`. - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - `name` (string or null): Display name. The file name when omitted. - `materials` (object, required): Same shape as `DesignMaterialsInput` above. #### Returns 201 Created The new design, pending review. Returns [the design object](https://public-api.dapi.digital/docs/reference/designs.md#design_object). #### Responses - `201`: The new design, pending review. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no stock with this id (`stock_not_found`). - `422`: A material id is not in the catalog (`material_not_found`), multicolor combinations have different slot counts (`slot_count_mismatch`), or the upload id is unknown, expired or for another purpose. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/stocks/stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/designs" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "file": { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" }, "name": "Tracker lid", "materials": { "mode": "single", "allowed": [ "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ] } }' ``` ### Set a restock rule PUT `/v2/stocks/{id}/restock/{region_id}` - **Credentials**: An API key with the `stocks:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `set_stock_restock` Sets what happens when one region runs low (see `when_available_below` for exactly what is counted). Auto-reorder buys from the same wallet: when a region reaches its restock threshold and auto-reorder is on in your wallet settings, batches are bought automatically (`origin: auto_reorder`), so keep enough balance for both. Returns the stock with its updated `restock` list. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `region_id` (string, required): Unique identifier of the region, prefixed with `reg_`. Treat it as an opaque string: store it and compare it, never parse it. #### Request body - `mode` (string, required): `off` does nothing, `notify` emails you when the region runs low, `auto_buy` buys `reorder_units` from your wallet (when auto-reorder is on in your wallet settings; otherwise it emails). - `when_available_below` (integer or null): Threshold in units. The rule is checked each time an order draws units from this stock (when the order is assigned for production), not continuously. It counts the units paid for minus the units used in this region, across every batch and including units still in production (so not `available`), and triggers when that count is at or below this threshold. Required unless `mode` is `off`. Range 1 to 100000. - `reorder_units` (integer or null): Units to buy per automatic purchase, returned as set. Purchases round up to whole batches: an automatic purchase buys `reorder_units` divided by `units_per_batch`, rounded up (at least one batch), at `batch_price` each, and the batch it creates holds exactly those batches times `units_per_batch` units. A multiple of `units_per_batch` buys exactly what you ask for. Required for `auto_buy`. Range 1 to 100000. #### Returns 200 OK The stock with the new rule. Returns [the stock object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_object). #### Responses - `200`: The stock with the new rule. - `400`: The request is invalid, including a field the mode needs that is missing or one that does not apply to it (`validation_failed`, `details.errors`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: `auto_buy` buys stock, so your plan must include prepaid stock (`plan_limit_reached`); `details.fix_url` points at upgrading. - `404`: You have no stock with this id (`stock_not_found`). - `422`: The region is not one of the stock regions (`region_not_available`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PUT "https://public-api.dapi.digital/v2/stocks/stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/restock/reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "mode": "auto_buy", "when_available_below": 10, "reorder_units": 50 }' ``` ### The stock batch object One purchase of a stock in one region: how many units were bought, how many are made and how many orders have used. #### Attributes - `id` (string): Unique identifier of the stock batch, prefixed with `bat_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `stock_batch`. - `stock` (object): The stock this batch is of. - `id` (string): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `stock`. - `name` (string): Display name of the stock. - `region` (object): Production region holding the units. Orders use units from a region that ships to the buyer. - `id` (string): Unique identifier of the region, prefixed with `reg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `region`. - `name` (string): Display name of the region. - `status` (StockBatchStatus): Where the batch is: - `queued`: paid for; production has not started. - `in_production`: the production partner is making the units. Units already made can be used by orders. - `completed`: every unit has been made. - `used_up`: orders have used every unit. - `batches` (integer): How many batches were bought in this purchase line, at least one. Each holds the stock `units_per_batch`. An `auto_reorder` purchase rounds `reorder_units` up to whole batches. Range at least 1. - `units` (object): Unit counts for this batch. - `purchased` (integer): Units bought in this purchase line: `batches` times units per batch. Range at least 0. - `made` (integer): Units the production partner has made so far. Range at least 0. - `used` (integer): Units orders have used. Range at least 0. - `available` (integer): Units ready to ship: `made` minus `used`. Range at least 0. - `price_paid` (object): What you paid for this purchase line, all batches included. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `unit_price` (object): What one unit cost you. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `purchase_reference` (string or null): Reference of the checkout this batch was bought in, shared by every batch bought together and shown on the wallet charge. - `origin` (string): How the batch was bought: `manual` by you (dashboard or API), `auto_reorder` automatically from your wallet when a region reached its restock threshold. - `purchased_at` (timestamp): When the batch was bought. - `completed_at` (timestamp or null): When every unit was made. Null until then. **The stock batch object** ```json { "id": "bat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock_batch", "stock": { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack" }, "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "status": "in_production", "batches": 2, "units": { "purchased": 100, "made": 60, "used": 20, "available": 40 }, "price_paid": { "amount": 60000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "purchase_reference": "ST-8KD2X", "origin": "manual", "purchased_at": "2026-09-30T10:00:00Z", "completed_at": null } ``` ### List batches across stocks GET `/v2/stock-batches` - **Credentials**: An API key with the `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `list_all_stock_batches` Lists every batch you bought, of any stock, newest first. Use it to see everything in production at once, or every batch bought in one checkout with `purchase_reference`. Designers only. #### Query parameters - `status` (array of StockBatchStatus): Only batches in these states. Repeat for several, for example `status=queued&status=in_production`. Same shape as `StockBatchStatus` above. - `region` (string): Only batches held in this region. - `sort` (string): Order of results. A leading `-` means newest first. Possible values: `-purchased_at`, `purchased_at`. Defaults to "-purchased\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. - `stock` (string): Only batches of this stock. - `purchased_after` (timestamp): Only batches bought after this time. - `purchased_before` (timestamp): Only batches bought before this time. - `origin` (string): Only batches you bought (`manual`) or auto-reorder bought. Possible values: `manual`, `auto_reorder`. - `purchase_reference` (string): Only batches bought in this checkout, for example `ST-8KD2X`. #### Returns 200 OK A page of batches. Response attributes (StockBatchList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of StockBatch): The page of results. Described in [the stock batch object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_batch_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of batches. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/stock-batches" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "bat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock_batch", "stock": { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack" }, "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "status": "in_production", "batches": 2, "units": { "purchased": 100, "made": 60, "used": 20, "available": 40 }, "price_paid": { "amount": 60000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "purchase_reference": "ST-8KD2X", "origin": "manual", "purchased_at": "2026-09-30T10:00:00Z", "completed_at": null } ], "has_more": false, "next_cursor": null } ``` ### List what used a batch GET `/v2/stocks/{id}/batches/{batch_id}/usage` - **Credentials**: An API key with the `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `list_stock_batch_usage` Lists the orders that took units from one batch, newest first. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `batch_id` (string, required): Unique identifier of the stock batch, prefixed with `bat_`. Treat it as an opaque string: store it and compare it, never parse it. #### Query parameters - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of usage lines. Response attributes (StockBatchUsageList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of StockBatchUsage): The page of results. - `order` (object): The order that used the units. - `id` (string): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order`. - `name` (string): Display name of the order. - `variant` (object): The variant ordered. - `id` (string): Unique identifier of the variant, prefixed with `var_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `variant`. - `name` (string): Display name of the variant. - `units` (integer): Units this order line took from the batch. Range at least 1. - `used_at` (timestamp): When the order was placed. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of usage lines. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no such stock, or the batch is not one of its batches (`stock_not_found`, `stock_batch_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/stocks/stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/batches/bat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/usage" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "order": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "name": "SSG2M9S9" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "units": 2, "used_at": "2026-10-11T08:00:00Z" } ], "has_more": false, "next_cursor": null } ``` ### List the batches of a stock GET `/v2/stocks/{id}/batches` - **Credentials**: An API key with the `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `list_stock_batches` Lists every batch you bought of one stock, newest first, with how many units are made, used and still available. Use it to follow production and see where your inventory is. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. #### Query parameters - `status` (array of StockBatchStatus): Only batches in these states. Repeat for several, for example `status=queued&status=in_production`. Same shape as `StockBatchStatus` above. - `region` (string): Only batches held in this region. - `sort` (string): Order of results. A leading `-` means newest first. Possible values: `-purchased_at`, `purchased_at`. Defaults to "-purchased\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of batches. Response attributes (StockBatchList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of StockBatch): The page of results. Described in [the stock batch object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_batch_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of batches. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no stock with this id (`stock_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/stocks/stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/batches" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "bat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock_batch", "stock": { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack" }, "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "status": "in_production", "batches": 2, "units": { "purchased": 100, "made": 60, "used": 20, "available": 40 }, "price_paid": { "amount": 60000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "purchase_reference": "ST-8KD2X", "origin": "manual", "purchased_at": "2026-09-30T10:00:00Z", "completed_at": null } ], "has_more": false, "next_cursor": null } ``` ### Get a stock batch GET `/v2/stocks/{id}/batches/{batch_id}` - **Credentials**: An API key with the `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_stock_batch` Returns one batch of a stock with its production progress. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `batch_id` (string, required): Unique identifier of the stock batch, prefixed with `bat_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The batch. Returns [the stock batch object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_batch_object). #### Responses - `200`: The batch. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no such stock, or the batch is not one of its batches (`stock_not_found`, `stock_batch_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/stocks/stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/batches/bat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### The stock purchase object One checkout of stock batches. #### Attributes - `object` (string): Names the type of this object. Always `stock_purchase`. - `purchase_reference` (string): Reference shared by every batch bought in this checkout. - `total` (object): What was taken from your wallet. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `batches` (array of StockBatch): The batches bought, one per item. Described in [the stock batch object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_batch_object). **The stock purchase object** ```json { "object": "stock_purchase", "purchase_reference": "ST-8KD2X", "total": { "amount": 60000, "currency": "usd" }, "batches": [ { "id": "bat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock_batch", "stock": { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack" }, "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "status": "queued", "batches": 2, "units": { "purchased": 100, "made": 60, "used": 20, "available": 40 }, "price_paid": { "amount": 60000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "purchase_reference": "ST-8KD2X", "origin": "manual", "purchased_at": "2026-09-30T10:00:00Z", "completed_at": null } ] } ``` ### Buy stock batches POST `/v2/stock-purchases` - **Credentials**: An API key with the `stocks:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `create_stock_purchase` Buys batches of one or more approved stocks in one checkout, paid from your wallet. There is no card top-up: if the balance is short, nothing is bought. Each item becomes a batch that the production partner of its region makes. Auto-reorder buys from the same wallet: when a region reaches its restock threshold and auto-reorder is on in your wallet settings, batches are bought automatically (`origin: auto_reorder`), so keep enough balance for both. Your plan must include prepaid stock. Designers only. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `items` (array of object, required): What to buy. Each stock and region pair at most once. - `stock` (string, required): An approved stock of yours. - `region` (string, required): One of the stock regions, from the stock `restock` list. - `batches` (integer, required): How many batches to buy for this region, each of `units_per_batch` units at the stock `batch_price`. Range 1 to 1000. #### Returns 201 Created The purchase and the batches bought. Returns [the stock purchase object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_purchase_object). #### Responses - `201`: The purchase and the batches bought. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `402`: Your wallet balance does not cover the purchase (`insufficient_balance`); `details.required` is the amount needed and `details.balance` what the wallet holds. Nothing was bought. - `403`: Your plan does not include prepaid stock (`plan_limit_reached`); `details.fix_url` points at upgrading. - `409`: A stock is not approved and priced (`stock_not_approved`); `details.items` lists the positions concerned. - `422`: A stock is not one of yours (`stock_not_found`), a region is not one of the stock regions (`region_not_available`), or a stock and region pair appears twice (`duplicate_item`); `details.items` lists the positions concerned. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/stock-purchases" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "stock": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "region": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "batches": 2 } ] }' ``` ### The region object A production region your stock is held in, and the countries it ships to. Orders use stock from a region that ships to the buyer. #### Attributes - `id` (string): Unique identifier of the region, prefixed with `reg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `region`. - `name` (string): Display name, as set by the production partner. - `countries` (array of string): Countries orders can ship to from this region. **The region object** ```json { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe", "countries": [ "DE", "FR", "NL" ] } ``` ### Get a production region GET `/v2/regions/{id}` - **Credentials**: An API key with the `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_region` Returns a region one of your stocks is produced in, with the countries it ships to. Only regions of your own stocks are available. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the region, prefixed with `reg_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The region. Returns [the region object](https://public-api.dapi.digital/docs/reference/stocks.md#region_object). #### Responses - `200`: The region. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: None of your stocks is produced in this region (`region_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/regions/reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/stocks. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Extras Bought-in parts shipped with products (designers) or with order lines (integrators). ### Endpoints - [GET `/v2/extras`](https://public-api.dapi.digital/docs/reference/extras.md#list_extras) - [POST `/v2/extras`](https://public-api.dapi.digital/docs/reference/extras.md#create_extra) - [GET `/v2/extras/{id}`](https://public-api.dapi.digital/docs/reference/extras.md#get_extra) - [PATCH `/v2/extras/{id}`](https://public-api.dapi.digital/docs/reference/extras.md#update_extra) ### The extra object A bought-in part that ships with a product, for example a magnet, screw or battery. Extras belong to the account (designer or integrator) that created them and are reviewed by 3DAPI before use. #### Attributes - `id` (string): Unique identifier of the extra, prefixed with `xtr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `extra`. - `name` (string): Display name of the part. - `description` (string): What the part is, as written by the seller. - `review` (Review): Review by 3DAPI. Anything that will be manufactured is reviewed before it can be sold or produced. - `status` (ReviewStatus): Where 3DAPI stands on reviewing this object: - `pending`: waiting for review by 3DAPI. Nothing to do on your side. - `approved`: reviewed and accepted. - `rejected`: reviewed and refused. `reason` says why; fix it and save again to resubmit. - `reason` (string or null): Why it was rejected. Null unless `status` is `rejected`. - `reviewed_at` (timestamp or null): When the latest review decision was made. Null while pending. - `price` (object or null): What one unit adds to a variant cost, under `costs.extra_parts` (designers), or to the production price of each printed unit of an order line that carries it (integrators, `items[].extras`). Set by 3DAPI when the extra is approved. While an edited extra is back in review this stays the last approved price. Null until the extra is approved, and null again after a rejection: rejecting clears the price even if the extra was approved before. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `purchase_links` (array of object): Where the production partner can buy the part. At least one. - `url` (string): Where the part can be bought: an http:// or https:// URL. Any other link is refused with `validation_failed`. - `label` (string or null): Short label for the link, for example `Datasheet`. - `images` (array of object): Photos of the part. At least one. - `url` (string): Public image URL. - `name` (string): Original file name. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `updated_at` (timestamp): When the extra last changed: created, edited, or approved or rejected by 3DAPI. Extras last changed before this was recorded show the latest of their creation and review decision instead. **The extra object** ```json { "id": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "extra", "name": "Magnet 10mm", "description": "Neodymium magnet, 10mm diameter.", "review": { "status": "approved", "reason": null, "reviewed_at": "2026-07-22T10:05:00Z" }, "price": { "amount": 50, "currency": "usd" }, "purchase_links": [ { "url": "https://example.com/magnet-10mm", "label": "Datasheet" } ], "images": [ { "url": "https://cdn.example.com/magnet.png", "name": "magnet.png" } ], "created_at": "2026-07-22T09:56:30Z", "updated_at": "2026-07-22T10:05:00Z" } ``` ### List extra parts GET `/v2/extras` - **Credentials**: An API key with the `extras:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `list_extras` Lists your extra parts, newest first, with their review status and price. For designers and integrators. #### Query parameters - `review_status` (array of ReviewStatus): Only extras in these review states. Same shape as `ReviewStatus` above. - `search` (string): Only extras whose name contains this text, ignoring case. - `sort` (string): Order of results. A leading `-` means descending. `name` sorts alphabetically in a language-aware collation, which compares letters before spaces and case (`test slicer` comes after `testing warnings`); do not expect byte order. Possible values: `-created_at`, `created_at`, `name`. Defaults to "-created\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of extras. Response attributes (ExtraList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Extra): The page of results. Described in [the extra object](https://public-api.dapi.digital/docs/reference/extras.md#extra_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of extras. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/extras" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "extra", "name": "Magnet 10mm", "description": "Neodymium magnet, 10mm diameter.", "review": { "status": "approved", "reason": null, "reviewed_at": "2026-07-22T10:05:00Z" }, "price": { "amount": 50, "currency": "usd" }, "purchase_links": [ { "url": "https://example.com/magnet-10mm", "label": "Datasheet" } ], "images": [ { "url": "https://cdn.example.com/magnet.png", "name": "magnet.png" } ], "created_at": "2026-07-22T09:56:30Z", "updated_at": "2026-07-22T10:05:00Z" } ], "has_more": false, "next_cursor": null } ``` ### Create an extra part POST `/v2/extras` - **Credentials**: An API key with the `extras:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `create_extra` Adds an extra part and submits it for review by 3DAPI. It comes back with `review.status: pending` and no price; we set the price when we approve it, and only approved extras can be used: in variants (designers) or on order lines (integrators, `items[].extras` of create\_integrator\_order). Upload the photos first with purpose `extra_image`. For designers and integrators. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `name` (string, required): Display name of the part. - `description` (string, required): What the part is, for the production partner and our review. - `purchase_links` (array of object, required): Where the production partner can buy the part. At least one. - `url` (string, required): Where the part can be bought: an http:// or https:// URL. Any other link is refused with `validation_failed`. - `label` (string or null): Short label for the link, for example `Datasheet`. - `images` (array of objects, required): Photos of the part, at least one. Replaces the whole list on update. - Shape **Reference** (default): - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - Shape **Reference** (default): - `url` (string, required): The URL of a photo the extra already has, to keep it. #### Returns 201 Created The extra, pending review. Returns [the extra object](https://public-api.dapi.digital/docs/reference/extras.md#extra_object). #### Responses - `201`: The extra, pending review. - `400`: The request is invalid (`validation_failed`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `422`: An upload is unknown, expired or of the wrong purpose (`unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing` when the file was never sent, `upload_already_used` when the upload id was already used once), an image `url` is given (a new extra has no photos to keep, `unknown_image`), or the same upload is listed twice (`duplicate_image`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/extras" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Magnet 10mm", "description": "Neodymium magnet, 10mm diameter.", "purchase_links": [ { "url": "https://example.com/magnet-10mm", "label": "Store" } ], "images": [ { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" } ] }' ``` ### Get an extra part GET `/v2/extras/{id}` - **Credentials**: An API key with the `extras:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `get_extra` Returns one of your extra parts with its review status and price. For designers and integrators. #### Path parameters - `id` (string, required): Unique identifier of the extra, prefixed with `xtr_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The extra. Returns [the extra object](https://public-api.dapi.digital/docs/reference/extras.md#extra_object). #### Responses - `200`: The extra. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no extra with this id (`extra_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/extras/xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Update an extra part PATCH `/v2/extras/{id}` - **Credentials**: An API key with the `extras:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `update_extra` Changes the fields you send. Sending any field sends the extra back to review by 3DAPI (`review.status: pending`), even if the value is unchanged; a body with no fields changes nothing. Until it is approved again the extra keeps its last approved price. For designers, every product using it goes back to review too (`pending`), which takes it off your store until 3DAPI approves the extra again, exactly as an edit in the dashboard does. For integrators, new orders cannot use it until it is approved again; orders already placed keep it. For designers and integrators. #### Path parameters - `id` (string, required): Unique identifier of the extra, prefixed with `xtr_`. Treat it as an opaque string: store it and compare it, never parse it. #### Request body - `name` (string): Display name of the part. - `description` (string): What the part is, for the production partner and our review. - `purchase_links` (array of object): Where the production partner can buy the part. At least one. - `url` (string, required): Where the part can be bought: an http:// or https:// URL. Any other link is refused with `validation_failed`. - `label` (string or null): Short label for the link, for example `Datasheet`. - `images` (array of objects): Photos of the part, at least one. Replaces the whole list on update. - Shape **Reference** (default): Same shape as `UploadReference` above. - Shape **Reference** (default): Same shape as `ExistingImageReference` above. #### Returns 200 OK The extra, pending review. Returns [the extra object](https://public-api.dapi.digital/docs/reference/extras.md#extra_object). #### Responses - `200`: The extra, pending review. - `400`: The request is invalid (`validation_failed`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no extra with this id (`extra_not_found`). - `422`: An upload is unknown, expired or of the wrong purpose (`unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing` when the file was never sent, `upload_already_used` when the upload id was already used once), an image `url` is not one of the photos this extra has (`unknown_image`), or a photo is listed twice (`duplicate_image`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v2/extras/xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "description": "Neodymium magnet, 10mm diameter, N52 grade.", "images": [ { "url": "https://cdn.example.com/magnet.png" }, { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" } ] }' ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/extras. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Attachments Production documents. ### Endpoints - [GET `/v2/attachments/{id}`](https://public-api.dapi.digital/docs/reference/attachments.md#get_attachment) ### The attachment object A production document, such as assembly instructions or a guide. It is sent to the production partner with every order of its product or stock and is never shown to buyers. #### Attributes - `id` (string): Unique identifier of the attachment, prefixed with `att_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `attachment`. - `name` (string): File name. - `format` (string): File extension, lowercase, for example `pdf` or `mp4`. - `size_bytes` (integer): File size in bytes. - `download_url` (string): Signed URL to download the file. Valid for 15 minutes; fetch the attachment again for a fresh one. - `owner` (object): The product or stock this file belongs to. - Shape **Reference** (default): Reference to a product. Pass the matching `expand[]` path to receive the full product instead. - `id` (string): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `product`. - `name` (string): Display name of the product. - Shape **Reference** (default): Reference to a stock. Pass the matching `expand[]` path to receive the full stock instead. - `id` (string): Unique identifier of the stock, prefixed with `stk_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `stock`. - `name` (string): Display name of the stock. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. **The attachment object** ```json { "id": "att_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "attachment", "name": "assembly-guide.pdf", "format": "pdf", "size_bytes": 482113, "download_url": "https://files.example.com/assembly-guide.pdf?signature=abc", "owner": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "PR Tracker" }, "created_at": "2026-09-30T14:21:07Z" } ``` ### Get an attachment GET `/v2/attachments/{id}` - **Credentials**: An API key with the `products:read` or `stocks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_attachment` Returns one production document with a download link. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the attachment, prefixed with `att_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The attachment. Returns [the attachment object](https://public-api.dapi.digital/docs/reference/attachments.md#attachment_object). #### Responses - `200`: The attachment. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no attachment with this id (`attachment_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/attachments/att_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/attachments. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Quality control Quality checks, partner questions and issue reports on orders. ### Endpoints - [POST `/v2/qc-tickets/{id}/review`](https://public-api.dapi.digital/docs/reference/quality-control.md#review_qc_ticket) - [POST `/v2/qc-tickets/{id}/messages`](https://public-api.dapi.digital/docs/reference/quality-control.md#send_qc_message) - [GET `/v2/qc-tickets`](https://public-api.dapi.digital/docs/reference/quality-control.md#list_qc_tickets) - [POST `/v2/qc-tickets`](https://public-api.dapi.digital/docs/reference/quality-control.md#create_qc_ticket) - [GET `/v2/qc-tickets/{id}`](https://public-api.dapi.digital/docs/reference/quality-control.md#get_qc_ticket) ### The QC ticket object A quality check, a question from the production partner, or an issue you reported on an order. #### Attributes - `id` (string): Unique identifier of the qc ticket, prefixed with `qct_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `qc_ticket`. - `kind` (QcTicketKind): What the ticket is, which also says who opened it: - `quality_check`: 3DAPI asked the production partner for photos of what it made, before shipping. You accept or refuse each product. Opened by 3DAPI, automatically or by our team. - `question`: the production partner needs an answer from you before it prints. Opened by the production partner. - `issue_report`: you reported a defect after delivery and asked for a replacement. Opened by you; 3DAPI decides the replacement, and that decision closes the report. - `reason` (string or null): Why a quality check was raised. Null for questions and issue reports. Possible values: `onboarding`, `spot_check`, `capability`, `suspension`. - `status` (QcTicketStatus): Where the ticket is. Quality checks: - `awaiting_photos`: the production partner owes photos. - `awaiting_your_review`: photos are in; accept or refuse each product. - `refusal_under_review`: you refused a product and 3DAPI is ruling on it. - `reprinting`: a refusal was upheld and the partner is remaking the product. - `approved`: every product was accepted; the order can ship. Questions and issue reports: - `awaiting_answer`: waiting for a reply: from you on a question, from 3DAPI on an issue report. - `answered`: you answered the question; the production partner has the next word. - `closed`: settled. A question is closed by the production partner who asked it; an issue report closes when 3DAPI decides the replacement. Any kind: - `cancelled`: the ticket no longer applies, for example after the order moved to another partner. - `needs_your_action` (boolean): True when the next step is yours: photos are waiting for your review, or a question is waiting for your answer. - `blocks_shipping` (boolean): True when the order cannot ship until this ticket is approved. Questions and issue reports never block. - `order` (object): The order this ticket is about. - `id` (string): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order`. - `name` (string): Display name of the order. - `round` (integer): Current round of photos. Range at least 1. - `replacement` (QcReplacement or null): Only on issue reports: the replacement you asked for and what was decided. - `items` (array of object): What you asked to have replaced. - `variant` (VariantReference): Reference to a variant. Pass the matching `expand[]` path to receive the full variant instead. - `id` (string): Unique identifier of the variant, prefixed with `var_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `variant`. - `name` (string): Display name of the variant. - `quantity` (integer): Units of that variant you asked to have replaced. Range at least 1. - `decision` (string): `pending` until 3DAPI rules, then `reprint` (a replacement order is made), `handled_by_support` (resolved another way, see the conversation) or `declined`. - `paid_by` (string or null): Who pays for the reprint. Null until decided. Possible values: `you`, `production_partner`. - `order` (object or null): The replacement order, once one was made. - `id` (string): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order`. - `name` (string): Display name of the order. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `submitted_at` (timestamp or null): When the production partner last submitted photos. - `resolved_at` (timestamp or null): When the ticket was approved, closed or cancelled. - `items` (array of QcItem): The products on the ticket. A conversation has one container item for its messages. - `id` (string): Unique identifier of the qc item, prefixed with `qci_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `qc_item`. - `title` (string or null): What is being checked, usually the variant name. - `product` (ProductReference or null): Reference to a product. Pass the matching `expand[]` path to receive the full product instead. - `id` (string): Unique identifier of the product, prefixed with `prd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `product`. - `name` (string): Display name of the product. - `variant` (object or null): The variant being checked. Null when the item is not linked to a variant. - `id` (string): Unique identifier of the variant, prefixed with `var_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `variant`. - `name` (string): Display name of the variant. - `status` (string): Where this product stands: photos owed, photos in and waiting for a verdict, your refusal being ruled on by 3DAPI, or accepted. Possible values: `awaiting_photos`, `in_review`, `refusal_under_review`, `accepted`. - `round` (integer): Which round of photos this is. A new round starts after a refusal is upheld and the product is remade. Range at least 1. - `photos` (array of object): Photos the production partner uploaded, every round. - `id` (string): Identifier of the photo, to point at it in a refusal. - `url` (string): Signed URL to the photo. Valid for 15 minutes; get the ticket again for fresh ones. - `round` (integer): The round of photos this one belongs to. Range at least 1. - `uploaded_at` (timestamp): Point in time, ISO 8601 in UTC. - `history` (array of object): Everything that happened to this product, oldest first. - `action` (string): What happened: photos submitted, product accepted or refused, a refusal upheld or overturned by 3DAPI, or a message asked, answered or closed. Possible values: `submitted`, `accepted`, `refused`, `refusal_upheld`, `refusal_overturned`, `asked`, `answered`, `closed`. - `by` (QcActor): Who did it: you, the production partner or the 3DAPI team. Possible values: `you`, `production_partner`, `dapi`. - `round` (integer): The round of photos this happened in. Range at least 1. - `note` (string or null): The message or reason given, when any. - `at` (timestamp): Point in time, ISO 8601 in UTC. **The QC ticket object** ```json { "id": "qct_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "qc_ticket", "kind": "quality_check", "reason": "spot_check", "status": "awaiting_your_review", "needs_your_action": true, "blocks_shipping": true, "order": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "name": "PV-SCN-1701A372" }, "round": 1, "replacement": null, "created_at": "2026-10-09T15:20:00Z", "submitted_at": "2026-10-10T09:01:00Z", "resolved_at": null, "items": [ { "id": "qci_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "qc_item", "title": "Clicker Blue", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "status": "in_review", "round": 1, "photos": [ { "id": "qcp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "url": "https://files.example.com/qc/clicker-front.jpg?signature=abc", "round": 1, "uploaded_at": "2026-10-10T09:00:00Z" } ], "history": [ { "action": "submitted", "by": "production_partner", "round": 1, "note": null, "at": "2026-10-10T09:01:00Z" } ] } ] } ``` ### Review a quality check POST `/v2/qc-tickets/{id}/review` - **Credentials**: An API key with the `qc:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `review_qc_ticket` Accepts or refuses the products on a quality check, all in one request: either every verdict is recorded or none is. Rule on any product whose status is `in_review` (the ticket shows `needs_your_action: true`); this works even while another product on the ticket is already `refusal_under_review`. Accepting every product approves the ticket and lets the order ship. A refusal goes to 3DAPI, which rules on it (`refusal_under_review`); if upheld, the partner reprints the product and sends new photos. Same effect as reviewing in the dashboard. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the qc ticket, prefixed with `qct_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `items` (array of objects, required): One verdict per product you are ruling on. - Shape **verdict: accept**: - `item` (string, required): Unique identifier of the qc item, prefixed with `qci_`. Treat it as an opaque string: store it and compare it, never parse it. - `verdict` (string, required): `accept`: the product is fine as photographed. - `note` (string or null): Optional note for the production partner, kept in the history. - Shape **verdict: refuse**: - `item` (string, required): Unique identifier of the qc item, prefixed with `qci_`. Treat it as an opaque string: store it and compare it, never parse it. - `verdict` (string, required): `refuse`: the product is not acceptable. 3DAPI rules on the refusal. - `reason` (string, required): What is wrong and what to change. Required: 3DAPI rules on it and the partner reprints from it. - `photos` (array of string): The photos that show the problem: `qcp_` ids of this product's photos from its current round. #### Returns 200 OK The ticket after your review. Returns [the QC ticket object](https://public-api.dapi.digital/docs/reference/quality-control.md#qc_ticket_object). #### Responses - `200`: The ticket after your review. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no QC ticket with this id (`qc_ticket_not_found`), or a product is not on it (`qc_item_not_found`, `details.field` names the entry). - `409`: The ticket is not a quality check (`not_a_quality_check`), or it is closed or a product is not in review (`not_awaiting_review`). - `422`: A product is listed twice (`duplicate_item`), or a refusal points at a photo that is not one of that product's current photos (`photo_not_on_item`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/qc-tickets/qct_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/review" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "item": "qci_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "verdict": "accept" }, { "item": "qci_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "verdict": "refuse", "reason": "Layer lines on the front face. Please reprint slower.", "photos": [ "qcp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ] } ] }' ``` ### Reply on a QC conversation POST `/v2/qc-tickets/{id}/messages` - **Credentials**: An API key with the `qc:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `send_qc_message` Answers a question from the production partner (`kind: question`). Turns alternate: you can post only when the partner spoke last (the ticket is `awaiting_answer`). Photos are uploaded first with purpose `qc_photo`. Issue reports take no messages: 3DAPI answers one by deciding the replacement. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the qc ticket, prefixed with `qct_`. Treat it as an opaque string: store it and compare it, never parse it. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `body` (string, required): Your answer to the production partner, up to 5000 characters. Kept in the item history as `answered`. - `photos` (array of UploadReference): Photos to attach, uploaded first with purpose `qc_photo`. - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. #### Returns 200 OK The ticket with your message. Returns [the QC ticket object](https://public-api.dapi.digital/docs/reference/quality-control.md#qc_ticket_object). #### Responses - `200`: The ticket with your message. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no QC ticket with this id (`qc_ticket_not_found`). - `409`: It is not your turn (`not_your_turn`), the ticket is not a question (`not_a_conversation`), or the question is closed (`ticket_closed`). - `422`: An upload is unknown, expired or of the wrong purpose (`unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing` when the file was never sent, `upload_already_used` when the upload id was already used once). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/qc-tickets/qct_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/messages" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "body": "Yes, print it in matte black. The photo shows where the logo goes.", "photos": [ { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" } ] }' ``` ### List QC tickets GET `/v2/qc-tickets` - **Credentials**: An API key with the `qc:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `list_qc_tickets` Lists quality checks, questions from production partners and issues you reported, newest first. Filter on `needs_your_action=true` to find what is waiting on you, or on `blocks_shipping=true` to see what holds orders back. Designers only. #### Query parameters - `kind` (array of QcTicketKind): Only these kinds. Same shape as `QcTicketKind` above. - `status` (array of QcTicketStatus): Only tickets in these states. Same shape as `QcTicketStatus` above. - `needs_your_action` (string): Only tickets that are (or are not) waiting on you. Possible values: `true`, `false`. - `blocks_shipping` (string): Only tickets that are (or are not) holding an order back. Possible values: `true`, `false`. - `order` (string): Only tickets on this order. - `created_after` (timestamp): Only tickets opened after this time. - `sort` (string): Order of results. A leading `-` means newest first. Possible values: `-created_at`, `created_at`. Defaults to "-created\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of tickets. Response attributes (QcTicketList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of QcTicketSummary): The page of results. - `id` (string): Unique identifier of the qc ticket, prefixed with `qct_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `qc_ticket`. - `kind` (QcTicketKind): Same shape as `QcTicketKind` above. - `reason` (string or null): Why a quality check was raised. Null for questions and issue reports. Possible values: `onboarding`, `spot_check`, `capability`, `suspension`. - `status` (QcTicketStatus): Same shape as `QcTicketStatus` above. - `needs_your_action` (boolean): True when the next step is yours: photos are waiting for your review, or a question is waiting for your answer. - `blocks_shipping` (boolean): True when the order cannot ship until this ticket is approved. Questions and issue reports never block. - `order` (object): The order this ticket is about. - `id` (string): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order`. - `name` (string): Display name of the order. - `round` (integer): Current round of photos. Range at least 1. - `replacement` (QcReplacement or null): Same shape as `QcReplacement` above. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `submitted_at` (timestamp or null): When the production partner last submitted photos. - `resolved_at` (timestamp or null): When the ticket was approved, closed or cancelled. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of tickets. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/qc-tickets" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "qct_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "qc_ticket", "kind": "quality_check", "reason": "spot_check", "status": "awaiting_your_review", "needs_your_action": true, "blocks_shipping": true, "order": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "name": "PV-SCN-1701A372" }, "round": 1, "replacement": null, "created_at": "2026-10-09T15:20:00Z", "submitted_at": "2026-10-10T09:01:00Z", "resolved_at": null } ], "has_more": false, "next_cursor": null } ``` ### Report an issue with a delivered order POST `/v2/qc-tickets` - **Credentials**: An API key with the `qc:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `create_qc_ticket` Opens an issue report on a completed order: what came back wrong, how many, and photos (uploaded first with purpose `qc_photo`). 3DAPI reviews it and decides on a replacement and who pays for it (`replacement`); that decision closes the report. The production partner is not part of the report. It never holds an order. Designers only. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `order` (string, required): The delivered order the issue is about. It must be `completed`. - `items` (array of object, required): What came back wrong and needs replacing. - `order_item` (string, required): Unique identifier of the order item, prefixed with `itm_`. Treat it as an opaque string: store it and compare it, never parse it. - `quantity` (integer, required): Units to replace, at most the quantity ordered on that item (more is refused with `quantity_exceeds_ordered`). Range 1 to 1000. - `message` (string, required): What happened, for 3DAPI to rule on. - `photos` (array of UploadReference): Photos to attach, uploaded first with purpose `qc_photo`. Same shape as `UploadReference` above. #### Returns 201 Created The new issue report. Returns [the QC ticket object](https://public-api.dapi.digital/docs/reference/quality-control.md#qc_ticket_object). #### Responses - `201`: The new issue report. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no such order (`order_not_found`), or an item is not on it (`order_item_not_found`, `details.field` names the entry). - `409`: Issues can only be reported on completed orders (`order_not_eligible`). - `422`: An item is listed twice (`duplicate_item`), asks for more units than were ordered (`quantity_exceeds_ordered`, `details.ordered`), or an upload is unknown, expired or of the wrong purpose (`unknown_upload`, `upload_expired`, `upload_purpose_mismatch`, `upload_missing` when the file was never sent, `upload_already_used` when the upload id was already used once). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/qc-tickets" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "order": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "items": [ { "order_item": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "quantity": 1 } ], "message": "The lid arrived cracked along the hinge.", "photos": [ { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" } ] }' ``` ### Get a QC ticket GET `/v2/qc-tickets/{id}` - **Credentials**: An API key with the `qc:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers - **Operation id**: `get_qc_ticket` Returns one ticket with every product on it, its photos and the history of decisions and messages. Designers only. #### Path parameters - `id` (string, required): Unique identifier of the qc ticket, prefixed with `qct_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The ticket. Returns [the QC ticket object](https://public-api.dapi.digital/docs/reference/quality-control.md#qc_ticket_object). #### Responses - `200`: The ticket. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no QC ticket with this id (`qc_ticket_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/qc-tickets/qct_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/quality-control. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Wallet Your balance and money history. Integrators also manage cards, top-ups and withdrawals here. This page covers [the wallet object](https://public-api.dapi.digital/docs/reference/wallet.md#wallet_object) and [the transaction object](https://public-api.dapi.digital/docs/reference/wallet.md#transaction_object). ### Endpoints - [GET `/v2/wallet`](https://public-api.dapi.digital/docs/reference/wallet.md#get_wallet) - [GET `/v2/billing-details`](https://public-api.dapi.digital/docs/reference/wallet.md#get_billing_details) - [PUT `/v2/billing-details`](https://public-api.dapi.digital/docs/reference/wallet.md#save_billing_details) - [GET `/v2/cards`](https://public-api.dapi.digital/docs/reference/wallet.md#list_cards) - [POST `/v2/cards/setup-sessions`](https://public-api.dapi.digital/docs/reference/wallet.md#start_card_setup) - [POST `/v2/cards/setup-sessions/{session_id}/complete`](https://public-api.dapi.digital/docs/reference/wallet.md#complete_card_setup) - [POST `/v2/cards/{id}/make-default`](https://public-api.dapi.digital/docs/reference/wallet.md#make_card_default) - [DELETE `/v2/cards/{id}`](https://public-api.dapi.digital/docs/reference/wallet.md#remove_card) - [POST `/v2/top-ups`](https://public-api.dapi.digital/docs/reference/wallet.md#start_top_up) - [GET `/v2/wallet/settings`](https://public-api.dapi.digital/docs/reference/wallet.md#get_wallet_settings) - [PATCH `/v2/wallet/settings`](https://public-api.dapi.digital/docs/reference/wallet.md#update_wallet_settings) - [GET `/v2/withdrawals`](https://public-api.dapi.digital/docs/reference/wallet.md#list_withdrawals) - [POST `/v2/withdrawals`](https://public-api.dapi.digital/docs/reference/wallet.md#create_withdrawal) - [GET `/v2/withdrawals/eligibility`](https://public-api.dapi.digital/docs/reference/wallet.md#get_withdrawal_eligibility) - [POST `/v2/withdrawals/{id}/cancel`](https://public-api.dapi.digital/docs/reference/wallet.md#cancel_withdrawal) - [GET `/v2/payout-details`](https://public-api.dapi.digital/docs/reference/wallet.md#get_payout_details) - [PUT `/v2/payout-details`](https://public-api.dapi.digital/docs/reference/wallet.md#save_payout_details) - [GET `/v2/transactions`](https://public-api.dapi.digital/docs/reference/wallet.md#list_transactions) - [GET `/v2/transactions/summary`](https://public-api.dapi.digital/docs/reference/wallet.md#get_transaction_summary) ### The wallet object Your 3DAPI balance. Top-ups, withdrawals and wallet settings are managed in the dashboard. #### Attributes - `object` (string): Names the type of this object. Always `wallet`. - `balance` (object): What you can spend: manual, imported and API orders and stock purchases are paid from it. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `sample_credit` (object): Credit for sample orders: an order you pay from the wallet and ship to your own country (your billing or sign-up country). Spent only when the order asks for it (`use_sample_credit`), before the balance; cannot be withdrawn, and expires. Integrators get $15 once, when their account is approved, valid for 30 days. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `sample_credit_expires_at` (timestamp or null): When the soonest-expiring part of `sample_credit` lapses. Null when there is none. - `pending_withdrawals` (object): Withdrawals you requested that are not paid out yet. Already taken off `balance`. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `updated_at` (timestamp): When the balance last changed. **The wallet object** ```json { "object": "wallet", "balance": { "amount": 24310, "currency": "usd" }, "sample_credit": { "amount": 2000, "currency": "usd" }, "sample_credit_expires_at": "2026-11-13T08:02:11Z", "pending_withdrawals": { "amount": 0, "currency": "usd" }, "updated_at": "2026-10-14T08:02:11Z" } ``` ### Get your wallet balance GET `/v2/wallet` - **Credentials**: An API key with the `wallet:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `get_wallet` Returns your balance, sample credit and pending withdrawals. Check it before creating orders that are paid from the wallet. For designers and integrators. #### Returns 200 OK The wallet. Returns [the wallet object](https://public-api.dapi.digital/docs/reference/wallet.md#wallet_object). #### Responses - `200`: The wallet. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/wallet" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Get your billing details GET `/v2/billing-details` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `get_billing_details` Who your invoices are made out to. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Returns 200 OK Your billing details. Response attributes (BillingDetails): - `object` (string): Names the type of this object. Always `billing_details`. - `legal_name` (string): Your company’s registered legal name, as it appears on invoices. - `country` (string): Country of registration, ISO 3166-1 alpha-2. It decides the VAT on top-ups and which of 3DAPI’s payment accounts you pay. - `address_line1` (string): First line of the registered address. - `address_line2` (string or null): Second line of the address. Null when there is none. - `city` (string): City of the registered address. - `postal_code` (string): Postal or ZIP code of the registered address. - `vat_number` (string or null): Your VAT number (EU) or VAT or tax number (UK), or null. - `vat_status` (VatStatus): What 3DAPI knows about `vat_number`: - `none`: no number given. - `validated`: an EU VAT number VIES confirmed, or 3DAPI approved after a manual check. Top-ups carry no VAT (reverse charge). - `in_review`: VIES did not confirm the number, so 3DAPI is checking it by hand. Top-ups are charged VAT until it is approved. - `invalid`: 3DAPI rejected the number after checking it. Top-ups are charged VAT; check the number and save again. - `unverified`: VIES could not confirm the number and no manual check is open. Top-ups are charged VAT. - `not_checked`: a number from outside the EU, which today means a UK VAT or tax number, kept for your invoices. VAT follows your country. - `required_tax_form` (string or null): The IRS form your country needs with every save: `w9` for US businesses; `w8ben_e` for businesses outside the US, EU and UK, which send either a W-8BEN (`w8ben`, a person or sole trader) or a W-8BEN-E (`w8ben_e`, a company or other entity). Null otherwise. - `tax_form` (object or null): The latest tax form on file. Its tax ids are never returned. - `kind` (TaxFormKind): `w9`: IRS Form W-9 (US). `w8ben`: IRS Form W-8BEN (a person or sole trader outside the US). `w8ben_e`: IRS Form W-8BEN-E (a company or other entity outside the US). - `submitted_at` (timestamp): Point in time, ISO 8601 in UTC. - `email` (string or null): Where invoices are addressed: your account email. - `updated_at` (timestamp or null): Point in time, ISO 8601 in UTC. #### Responses - `200`: Your billing details. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have not added billing details yet (`billing_details_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/billing-details" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "billing_details", "legal_name": "Acme Prints Ltd", "country": "DE", "address_line1": "Hauptstrasse 12", "address_line2": null, "city": "Berlin", "postal_code": "10115", "vat_number": "DE123456789", "vat_status": "validated", "required_tax_form": null, "tax_form": null, "email": "billing@acme.example", "updated_at": "2026-10-21T09:30:00Z" } ``` ### Save your billing details PUT `/v2/billing-details` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `save_billing_details` Replaces your billing details. Required before adding a card or topping up. An EU VAT number is checked with VIES: a confirmed number means top-ups carry no VAT (reverse charge). Outside the EU, VAT follows your country, as for every account. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Request body - `legal_name` (string, required): Your company’s registered legal name, as it should appear on invoices. - `country` (string, required): ISO 3166-1 alpha-2. - `address_line1` (string, required): First line of the registered address. - `address_line2` (string or null): Second line of the address. Omit or null for none. - `city` (string, required): City of the registered address. - `postal_code` (string, required): Postal or ZIP code of the registered address. - `vat_number` (string or null): EU VAT number (checked with VIES when you save; one VIES does not confirm goes to a manual check), or a UK VAT or tax number. Refused for US businesses and businesses outside the US, EU and UK, whose tax ids go on the W-9, W-8BEN or W-8BEN-E instead (`validation_failed`). Omit or null for none. - `w9` (object or null): Required for a US business, on every save. - `name` (string, required): Your name as shown on your federal income tax return. - `business_name` (string or null): Business name or disregarded entity name, when it differs from `name`. Omit or null for none. - `federal_tax_classification` (string, required): Your federal tax classification, as ticked on the form: - `individual_sole_proprietor`: individual, sole proprietor or single-member LLC. - `c_corporation`: C corporation. - `s_corporation`: S corporation. - `partnership`: partnership. - `trust_estate`: trust or estate. - `llc`: limited liability company; give its tax treatment in `llc_tax_classification`. - `other`: describe it in `other_classification`. - `llc_tax_classification` (string or null): Only when `federal_tax_classification` is `llc`: how the LLC is taxed. `C`: C corporation, `S`: S corporation, `P`: partnership. Ignored for other classifications. - `other_classification` (string or null): Only when `federal_tax_classification` is `other`: the classification, in your words. Ignored for other classifications. - `exempt_payee_code` (string or null): Exempt payee code from the form’s exemptions box, if any. Omit or null for none. - `fatca_reporting_code` (string or null): Exemption from FATCA reporting code, if any. Omit or null for none. - `address` (string, required): Street address: number, street, and apartment or suite. - `city` (string, required): City of `address`. - `state` (string, required): State of `address`. - `zip_code` (string, required): ZIP code of `address`. - `account_numbers` (string or null): Account number(s) to list on the form, if any. Omit or null for none. - `tin` (string, required): Your taxpayer identification number, of the kind in `tin_type`: exactly 9 digits. Dashes and spaces are allowed and removed before it is stored. Never returned by the API. - `tin_type` (string, required): Which number `tin` is. `ssn`: Social Security Number. `ein`: Employer Identification Number. - `signature_name` (string, required): Your full name, typed as your signature. The IP address and user agent of the request are recorded with the form. - `certified` (boolean, required): You certify the form under penalties of perjury, as on the IRS form. - `w8ben` (object or null): For a business outside the US, EU and UK that is a person or sole trader: required on every save, instead of `w8ben_e`. Send one of the two, never both. - `name` (string, required): Name of the individual who is the beneficial owner of the income: you, or the owner of your sole trade. - `country_of_citizenship` (string, required): Country of citizenship, ISO 3166-1 alpha-2. - `residence_address` (string, required): Permanent residence address: street and number. - `residence_city` (string, required): City of `residence_address`. - `residence_state` (string or null): State or province of `residence_address`, if any. Omit or null for none. - `residence_postal_code` (string, required): Postal code of `residence_address`. - `residence_country` (string, required): Country of `residence_address`, ISO 3166-1 alpha-2. - `mailing_address` (string or null): Mailing address, when different from the residence address. Omit or null for none. - `us_tin` (string or null): US taxpayer identification number (SSN or ITIN), if you have one. Omit or null for none. Never returned by the API. - `foreign_tin` (string or null): Tax identifying number in your country of residence. Required unless `foreign_tin_not_required` is true. Never returned by the API. - `foreign_tin_not_required` (boolean): True when your country does not legally require a foreign tax identifying number. Default false. - `reference_number` (string or null): Reference number(s) to show on the form, if any. Omit or null for none. - `date_of_birth` (string, required): Date of birth, YYYY-MM-DD. - `treaty_country` (string or null): Country, ISO 3166-1 alpha-2, whose income tax treaty with the US you claim benefits under. Omit or null when you claim none. - `treaty_article` (string or null): With `treaty_country`: the article and paragraph of the treaty you claim under. - `treaty_rate` (string or null): With `treaty_country`: the rate of withholding you claim. - `treaty_income_type` (string or null): With `treaty_country`: the type of income. - `signature_name` (string, required): Full name of the person signing, typed as the signature. The IP address and user agent of the request are recorded with the form. - `capacity` (string or null): Capacity in which the signer acts, when not the beneficial owner. Omit or null otherwise. - `certified` (boolean, required): You certify the form under penalties of perjury, as on the IRS form. - `w8ben_e` (object or null): For a business outside the US, EU and UK that is a company or other entity: required on every save, instead of `w8ben`. Send one of the two, never both. - `name` (string, required): Name of the organization that is the beneficial owner of the income. - `country_of_incorporation` (string, required): Country where the organization is incorporated or organized, ISO 3166-1 alpha-2. - `disregarded_entity_name` (string or null): Name of the disregarded entity, if one receives the payment. Omit or null for none. - `chapter3_status` (string, required): Chapter 3 status (entity type), as on the dashboard form. `central_bank` is a central bank of issue. Possible values: `corporation`, `disregarded_entity`, `partnership`, `simple_trust`, `grantor_trust`, `complex_trust`, `estate`, `government`, `central_bank`, `tax_exempt_org`, `private_foundation`, `international_org`, `other`. - `chapter4_status` (string, required): Chapter 4 (FATCA) status, as on the dashboard form. With `other`, describe it in `chapter4_status_other`. Possible values: `active_nffe`, `passive_nffe`, `participating_ffi`, `reporting_model1_ffi`, `reporting_model2_ffi`, `nonparticipating_ffi`, `exempt_beneficial_owner`, `certified_deemed_compliant_ffi`, `other`. - `chapter4_status_other` (string or null): Only when `chapter4_status` is `other`: the FATCA status, in your words. Ignored otherwise. - `residence_address` (string, required): Permanent residence address of the organization: street and number. - `residence_city` (string, required): City of `residence_address`. - `residence_state` (string or null): State or province of `residence_address`, if any. Omit or null for none. - `residence_postal_code` (string, required): Postal code of `residence_address`. - `residence_country` (string, required): Country of `residence_address`, ISO 3166-1 alpha-2. - `us_tin` (string or null): US taxpayer identification number, if the form requires one for you. Omit or null for none. Never returned by the API. - `giin` (string or null): Global Intermediary Identification Number (GIIN), if you have one. Omit or null for none. - `foreign_tin` (string or null): Tax identifying number in your country of residence, if any. Omit or null for none. Never returned by the API. - `reference_number` (string or null): Reference number(s) to show on the form, if any. Omit or null for none. - `treaty_country` (string or null): Country, ISO 3166-1 alpha-2, whose income tax treaty with the US you claim benefits under. Omit or null when you claim none. - `signature_name` (string, required): Full name of the person signing, typed as the signature. The IP address and user agent of the request are recorded with the form. - `capacity` (string or null): Capacity in which the signer acts for the organization, if given. - `certified` (boolean, required): You certify the form under penalties of perjury, as on the IRS form. #### Returns 200 OK The saved details, with the VAT check result. Response attributes (BillingDetails): - `object` (string): Names the type of this object. Always `billing_details`. - `legal_name` (string): Your company’s registered legal name, as it appears on invoices. - `country` (string): Country of registration, ISO 3166-1 alpha-2. It decides the VAT on top-ups and which of 3DAPI’s payment accounts you pay. - `address_line1` (string): First line of the registered address. - `address_line2` (string or null): Second line of the address. Null when there is none. - `city` (string): City of the registered address. - `postal_code` (string): Postal or ZIP code of the registered address. - `vat_number` (string or null): Your VAT number (EU) or VAT or tax number (UK), or null. - `vat_status` (VatStatus): Same shape as `VatStatus` above. - `required_tax_form` (string or null): The IRS form your country needs with every save: `w9` for US businesses; `w8ben_e` for businesses outside the US, EU and UK, which send either a W-8BEN (`w8ben`, a person or sole trader) or a W-8BEN-E (`w8ben_e`, a company or other entity). Null otherwise. - `tax_form` (object or null): The latest tax form on file. Its tax ids are never returned. - `kind` (TaxFormKind): Same shape as `TaxFormKind` above. - `submitted_at` (timestamp): Point in time, ISO 8601 in UTC. - `email` (string or null): Where invoices are addressed: your account email. - `updated_at` (timestamp or null): Point in time, ISO 8601 in UTC. #### Responses - `200`: The saved details, with the VAT check result. - `400`: The request is invalid (`validation_failed`, `details.errors` per field): for example a W-9 `tin` without exactly 9 digits, `llc_tax_classification` or `other_classification` missing for that classification, `chapter4_status_other` missing when `chapter4_status` is `other`, or a `vat_number` from a US business or a business outside the US, EU and UK. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `422`: A US business without `w9`, or a business outside the US, EU and UK without `w8ben` or `w8ben_e` (`tax_form_required`, `details.required`, `details.accepted`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PUT "https://public-api.dapi.digital/v2/billing-details" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "legal_name": "Acme Prints Ltd", "country": "DE", "address_line1": "Hauptstrasse 12", "city": "Berlin", "postal_code": "10115", "vat_number": "DE123456789" }' ``` **Response 200** ```json { "object": "billing_details", "legal_name": "Acme Prints Ltd", "country": "DE", "address_line1": "Hauptstrasse 12", "address_line2": null, "city": "Berlin", "postal_code": "10115", "vat_number": "DE123456789", "vat_status": "validated", "required_tax_form": null, "tax_form": null, "email": "billing@acme.example", "updated_at": "2026-10-21T09:30:00Z" } ``` ### List saved cards GET `/v2/cards` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `list_cards` Your saved cards, the default first. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Returns 200 OK Your cards, all on one page. Response attributes (CardList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Card): The page of results. - `id` (string): Unique identifier of the card, prefixed with `crd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `card`. - `brand` (string or null): Card brand as Stripe reports it, lowercase. Null when it is not known. - `last4` (string or null): Last 4 digits of the card number. Null when it is not known. - `exp_month` (integer or null): Expiry month, 1 to 12. Null when it is not known. - `exp_year` (integer or null): Expiry year, four digits. Null when it is not known. - `is_default` (boolean): The card top-ups and auto top up charge. Exactly one of your cards is the default. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: Your cards, all on one page. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/cards" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "crd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "card", "brand": "visa", "last4": "4242", "exp_month": 12, "exp_year": 2030, "is_default": true, "created_at": "2026-10-21T09:30:00Z" } ], "has_more": false, "next_cursor": null } ``` ### Start adding a card POST `/v2/cards/setup-sessions` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `start_card_setup` Opens a Stripe page that saves a card. Stripe sends the browser back to the wallet page with `session_id`; call `complete_card_setup` with it. The new card becomes the default. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Returns 201 Created The Stripe page to open. Response attributes (CheckoutSession): - `object` (string): Names the type of this object. Always `checkout_session`. - `session_id` (string): Stripe’s id for the page. For a card setup, pass it to `complete_card_setup` after the redirect back. - `url` (string): The Stripe-hosted page to send the browser to. #### Responses - `201`: The Stripe page to open. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `409`: Add billing details first (`billing_details_required`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Card payments are not available on this deployment (`card_payments_unavailable`). Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/cards/setup-sessions" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 201** ```json { "object": "checkout_session", "session_id": "cs_test_a1b2c3", "url": "https://checkout.stripe.com/c/pay/cs_test_a1b2c3" } ``` ### Finish adding a card POST `/v2/cards/setup-sessions/{session_id}/complete` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `complete_card_setup` Saves the card from a finished setup page right away, without waiting for Stripe's notification. Safe to call more than once. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Path parameters - `session_id` (string, required) #### Returns 200 OK Your cards, the new one included. Response attributes (CardList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Card): The page of results. Same shape as `Card` above. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: Your cards, the new one included. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: No card setup with this id was started from your account (`card_setup_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Card payments are not available right now (`card_payments_unavailable`). Try again later. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/cards/setup-sessions/string/complete" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "crd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "card", "brand": "visa", "last4": "4242", "exp_month": 12, "exp_year": 2030, "is_default": true, "created_at": "2026-10-21T09:30:00Z" } ], "has_more": false, "next_cursor": null } ``` ### Make a card the default POST `/v2/cards/{id}/make-default` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `make_card_default` The default card pays for top-ups and auto top up. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Path parameters - `id` (string, required): Unique identifier of the card, prefixed with `crd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The card, now the default. Response attributes (Card): - `id` (string): Unique identifier of the card, prefixed with `crd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `card`. - `brand` (string or null): Card brand as Stripe reports it, lowercase. Null when it is not known. - `last4` (string or null): Last 4 digits of the card number. Null when it is not known. - `exp_month` (integer or null): Expiry month, 1 to 12. Null when it is not known. - `exp_year` (integer or null): Expiry year, four digits. Null when it is not known. - `is_default` (boolean): The card top-ups and auto top up charge. Exactly one of your cards is the default. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. #### Responses - `200`: The card, now the default. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: No such card (`card_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/cards/crd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/make-default" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "crd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "card", "brand": "visa", "last4": "4242", "exp_month": 12, "exp_year": 2030, "is_default": true, "created_at": "2026-10-21T09:30:00Z" } ``` ### Remove a card DELETE `/v2/cards/{id}` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `remove_card` Removes the card from your wallet and from Stripe. A removed default hands the default to your newest other card. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Path parameters - `id` (string, required): Unique identifier of the card, prefixed with `crd_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The card was removed. Response attributes (CardDeleted): - `id` (string): Unique identifier of the card, prefixed with `crd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `card`. - `deleted` (boolean): Always true: the card was removed. #### Responses - `200`: The card was removed. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: No such card (`card_not_found`). - `409`: It is your only card and auto top up is on (`auto_top_up_needs_card`). Turn auto top up off first. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Card payments are not available right now (`card_payments_unavailable`). Try again later. Stripe refused to remove the card (`card_removal_failed`); try again in a moment. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v2/cards/crd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "crd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "card", "deleted": true } ``` ### Top up your wallet POST `/v2/top-ups` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `start_top_up` Opens a Stripe page that charges a card for `amount`, plus VAT when your billing details call for it (EU and UK businesses without a confirmed VAT number). Only `amount` lands in your wallet, once Stripe confirms the payment; a Stripe invoice is issued for the full charge. You need billing details and a saved card first. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Request body - `amount` (object, required): What lands in your wallet, $1.00 to $100,000.00. When VAT applies it is added on top and shown on the Stripe page. - `amount` (integer, required): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string, required): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. #### Returns 201 Created The Stripe page to open. Response attributes (CheckoutSession): - `object` (string): Names the type of this object. Always `checkout_session`. - `session_id` (string): Stripe’s id for the page. For a card setup, pass it to `complete_card_setup` after the redirect back. - `url` (string): The Stripe-hosted page to send the browser to. #### Responses - `201`: The Stripe page to open. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `409`: Add billing details first (`billing_details_required`), or add a card (`no_saved_card`). - `422`: The amount is outside $1.00 to $100,000.00 (`amount_out_of_range`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Card payments are not available right now (`card_payments_unavailable`). Try again later. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/top-ups" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "amount": { "amount": 5000, "currency": "usd" } }' ``` **Response 201** ```json { "object": "checkout_session", "session_id": "cs_test_a1b2c3", "url": "https://checkout.stripe.com/c/pay/cs_test_a1b2c3" } ``` ### Get wallet settings GET `/v2/wallet/settings` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `get_wallet_settings` Auto top up. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Returns 200 OK Your settings. Response attributes (WalletSettings): - `object` (string): Names the type of this object. Always `wallet_settings`. - `auto_top_up` (object): Auto top up: charges your default card when an order needs more than your balance. - `enabled` (boolean): When on, your default card is charged `amount` (plus any VAT) when an order needs more than your balance. - `amount` (object): How much each automatic top-up adds. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. #### Responses - `200`: Your settings. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/wallet/settings" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "wallet_settings", "auto_top_up": { "enabled": false, "amount": { "amount": 5000, "currency": "usd" } } } ``` ### Update wallet settings PATCH `/v2/wallet/settings` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `update_wallet_settings` Turns auto top up on or off and sets its amount. It charges your default card when an order needs more than your balance. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Request body - `auto_top_up` (object, required): Auto top up: charges your default card when an order needs more than your balance. - `enabled` (boolean, required): True turns auto top up on, false turns it off. - `amount` (object): Omit to keep the current amount. - `amount` (integer, required): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string, required): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. #### Returns 200 OK Your settings. Response attributes (WalletSettings): - `object` (string): Names the type of this object. Always `wallet_settings`. - `auto_top_up` (object): Auto top up: charges your default card when an order needs more than your balance. - `enabled` (boolean): When on, your default card is charged `amount` (plus any VAT) when an order needs more than your balance. - `amount` (object): How much each automatic top-up adds. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. #### Responses - `200`: Your settings. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `422`: The auto top up amount is outside $1.00 to $100,000.00 (`amount_out_of_range`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v2/wallet/settings" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "auto_top_up": { "enabled": true, "amount": { "amount": 5000, "currency": "usd" } } }' ``` **Response 200** ```json { "object": "wallet_settings", "auto_top_up": { "enabled": false, "amount": { "amount": 5000, "currency": "usd" } } } ``` ### List withdrawals GET `/v2/withdrawals` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `list_withdrawals` Your withdrawal requests, newest first. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Query parameters - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of requests. Response attributes (WithdrawalList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Withdrawal): The page of results. - `id` (string): Unique identifier of the withdrawal, prefixed with `wdr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `withdrawal`. - `amount` (object): An amount of money. Amounts are integers in the smallest currency unit, so they never need decimal parsing. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `status` (WithdrawalStatus): - `pending`: waiting for 3DAPI to pay it out. The amount is already off your balance. - `completed`: paid out to your payout details. - `cancelled`: you cancelled it; the amount went back to your balance. - `rejected`: 3DAPI refused it (`note` says why); the amount went back to your balance. - `payment_link` (string or null): The payment link you gave, when you gave one. - `invoice_url` (string or null): A short-lived link to the invoice you attached, when you attached one. - `note` (string or null): What 3DAPI wrote when paying or rejecting it. - `processed_at` (timestamp or null): Point in time, ISO 8601 in UTC. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of requests. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/withdrawals" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "wdr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "withdrawal", "amount": { "amount": 25000, "currency": "usd" }, "status": "pending", "payment_link": null, "invoice_url": "https://files.dapi.digital/invoices/acme-1021.pdf?sig=abc", "note": null, "processed_at": null, "created_at": "2026-10-21T09:30:00Z" } ], "has_more": false, "next_cursor": null } ``` ### Request a withdrawal POST `/v2/withdrawals` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `create_withdrawal` Asks 3DAPI to pay out part of your balance to your payout details. The amount leaves your balance now and is held until the payout is made; cancelling or a rejection puts it back. Attach an invoice in USD (an upload with purpose `withdrawal_invoice`) or a payment link. One request every 14 days. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Request body - `amount` (object, required): How much to withdraw. Your whole balance can be withdrawn. - `amount` (integer, required): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string, required): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `payment_link` (string or null): A payment link for this payout, shown to 3DAPI staff with the request. Send it, `invoice`, or both. Omit or null for none. - `invoice` (object or null): Your invoice for the amount. Send it, `payment_link`, or both. Omit or null for none. - `upload` (string, required): An upload id with purpose `withdrawal_invoice`: a PDF invoice in USD. #### Returns 201 Created The pending request. Response attributes (Withdrawal): - `id` (string): Unique identifier of the withdrawal, prefixed with `wdr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `withdrawal`. - `amount` (object): An amount of money. Amounts are integers in the smallest currency unit, so they never need decimal parsing. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `status` (WithdrawalStatus): Same shape as `WithdrawalStatus` above. - `payment_link` (string or null): The payment link you gave, when you gave one. - `invoice_url` (string or null): A short-lived link to the invoice you attached, when you attached one. - `note` (string or null): What 3DAPI wrote when paying or rejecting it. - `processed_at` (timestamp or null): Point in time, ISO 8601 in UTC. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. #### Responses - `201`: The pending request. - `400`: Neither an invoice nor a payment link (`invoice_or_payment_link_required`), or the request is invalid. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `409`: A request is pending (`withdrawal_pending`), or the cooldown has not ended (`withdrawal_cooldown`, `details.next_available_at`). - `422`: The amount is more than your balance (`insufficient_balance`), or the upload is unknown, expired or of another purpose. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/withdrawals" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "amount": { "amount": 25000, "currency": "usd" }, "invoice": { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" } }' ``` **Response 201** ```json { "id": "wdr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "withdrawal", "amount": { "amount": 25000, "currency": "usd" }, "status": "pending", "payment_link": null, "invoice_url": "https://files.dapi.digital/invoices/acme-1021.pdf?sig=abc", "note": null, "processed_at": null, "created_at": "2026-10-21T09:30:00Z" } ``` ### Check whether you can withdraw GET `/v2/withdrawals/eligibility` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `get_withdrawal_eligibility` One withdrawal every 14 days, counted from your last paid-out request; a pending request holds the slot. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Returns 200 OK Whether you can withdraw now. Response attributes (WithdrawalEligibility): - `object` (string): Names the type of this object. Always `withdrawal_eligibility`. - `can_withdraw_now` (boolean): True when no request is pending and the cooldown has ended. It does not check your balance. - `cooldown_days` (integer): Days between paid-out requests: 14 for integrators. - `has_pending` (boolean): A pending request holds the slot until it is processed or cancelled. - `next_available_at` (timestamp or null): When the cooldown after your last paid-out request ends; null when you are not in one. #### Responses - `200`: Whether you can withdraw now. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/withdrawals/eligibility" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "withdrawal_eligibility", "can_withdraw_now": true, "cooldown_days": 14, "has_pending": false, "next_available_at": null } ``` ### Cancel a withdrawal POST `/v2/withdrawals/{id}/cancel` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `cancel_withdrawal` Cancels a pending request; its amount returns to your balance. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Path parameters - `id` (string, required): Unique identifier of the withdrawal, prefixed with `wdr_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The cancelled request. Response attributes (Withdrawal): - `id` (string): Unique identifier of the withdrawal, prefixed with `wdr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `withdrawal`. - `amount` (object): An amount of money. Amounts are integers in the smallest currency unit, so they never need decimal parsing. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `status` (WithdrawalStatus): Same shape as `WithdrawalStatus` above. - `payment_link` (string or null): The payment link you gave, when you gave one. - `invoice_url` (string or null): A short-lived link to the invoice you attached, when you attached one. - `note` (string or null): What 3DAPI wrote when paying or rejecting it. - `processed_at` (timestamp or null): Point in time, ISO 8601 in UTC. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. #### Responses - `200`: The cancelled request. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: No such request (`withdrawal_not_found`). - `409`: It is no longer pending (`withdrawal_not_pending`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/withdrawals/wdr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/cancel" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "wdr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "withdrawal", "amount": { "amount": 25000, "currency": "usd" }, "status": "cancelled", "payment_link": null, "invoice_url": "https://files.dapi.digital/invoices/acme-1021.pdf?sig=abc", "note": null, "processed_at": "2026-10-21T10:00:00Z", "created_at": "2026-10-21T09:30:00Z" } ``` ### Get payout details GET `/v2/payout-details` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `get_payout_details` The bank account withdrawals are paid to. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Returns 200 OK Your payout details. Response attributes (PayoutDetails): - `object` (string): Names the type of this object. Always `payout_details`. - `bank_name` (string): Name of the bank holding the account. - `account_holder_name` (string): Name the account is held in. - `account_number_last4` (string): The last 4 characters of the account number or IBAN. The full number is never returned; send it again in full to change it. - `routing_number` (string): Routing number, sort code or SWIFT/BIC. - `updated_at` (timestamp or null): Point in time, ISO 8601 in UTC. #### Responses - `200`: Your payout details. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have not added payout details yet (`payout_details_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/payout-details" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "payout_details", "bank_name": "Deutsche Bank", "account_holder_name": "Acme Prints Ltd", "account_number_last4": "3000", "routing_number": "COBADEFFXXX", "updated_at": "2026-10-21T09:30:00Z" } ``` ### Save payout details PUT `/v2/payout-details` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `save_payout_details` Replaces the bank account withdrawals are paid to. Bank transfer is the only payout method. Integrators only, from a signed-in dashboard session: an API key cannot manage money (`credential_not_allowed`). #### Request body - `bank_name` (string, required): Name of the bank holding the account. - `account_holder_name` (string, required): Name the account is held in, as the bank has it. - `account_number` (string, required): The full account number or IBAN. - `routing_number` (string, required): Routing number, sort code or SWIFT/BIC of the bank. #### Returns 200 OK The saved details. Response attributes (PayoutDetails): - `object` (string): Names the type of this object. Always `payout_details`. - `bank_name` (string): Name of the bank holding the account. - `account_holder_name` (string): Name the account is held in. - `account_number_last4` (string): The last 4 characters of the account number or IBAN. The full number is never returned; send it again in full to change it. - `routing_number` (string): Routing number, sort code or SWIFT/BIC. - `updated_at` (timestamp or null): Point in time, ISO 8601 in UTC. #### Responses - `200`: The saved details. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PUT "https://public-api.dapi.digital/v2/payout-details" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "bank_name": "Deutsche Bank", "account_holder_name": "Acme Prints Ltd", "account_number": "DE89370400440532013000", "routing_number": "COBADEFFXXX" }' ``` **Response 200** ```json { "object": "payout_details", "bank_name": "Deutsche Bank", "account_holder_name": "Acme Prints Ltd", "account_number_last4": "3000", "routing_number": "COBADEFFXXX", "updated_at": "2026-10-21T09:30:00Z" } ``` ### The transaction object One movement of your money for orders, stock or the wallet. #### Attributes - `id` (string): Unique identifier of the transaction, prefixed with `txn_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `transaction`. - `direction` (TransactionDirection): `credit` added money for you, `debit` took it. Amounts are always positive; this gives the sign. - `category` (TransactionCategory): What the money was for: - `order_payment`: you paid for a manual, imported or API order, from the wallet or by card. - `stock_purchase`: you bought stock batches, including automatic reorders. - `top_up`: you added money to the wallet by card, manually, automatically or to cover a shortfall. - `earnings`: your earnings from a completed storefront order or, for integrators, a completed checkout order. A `debit` when the order's sales did not cover manufacturing, the platform fee and the card fee: the difference is charged to your wallet at completion. - `refund`: an order refund returned to your wallet. - `withdrawal`: money you withdrew from the wallet. - `adjustment`: a credit or debit that is not one of the above. `adjustment_reason` says which kind, and `description` explains it in words. - `adjustment_reason` (string or null): Why the adjustment happened, when `category` is `adjustment`; null for every other category. Possible values: `support_credit`, `support_debit`, `shipping_discount`, `warehousing_charge`, `replacement_order_charge`. - `paid_with` (TransactionPaidWith): `wallet` when the money moved through your balance, `card` when a card was charged directly (no-profit orders paid at checkout). Filter on `wallet` to reconcile with the balance. - `status` (TransactionStatus): `pending` only for withdrawals requested and not paid out yet; everything else is `completed`. - `amount` (object): Amount moved, VAT included. Always positive. On a `top_up` this is what your card was charged; your balance grows by the net amount (`amount` minus `vat.amount`), so top-up amounts do not add up to your balance. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `vat` (object or null): VAT included in `amount`, when any was charged. - `amount` (object): An amount of money. Amounts are integers in the smallest currency unit, so they never need decimal parsing. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `rate` (number): VAT rate as a fraction, for example 0.21. Range 0 to 1. - `description` (string or null): What happened, ready to show to a person. - `orders` (array of OrderReference): The orders this transaction paid for or came from. - `id` (string): Unique identifier of the order, prefixed with `ord_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `order`. - `name` (string): Display name of the order. - `invoice_url` (string or null): Invoice or receipt for card charges and top-ups, when one exists. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. **The transaction object** ```json null ``` ### List transactions GET `/v2/transactions` - **Credentials**: An API key with the `wallet:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `list_transactions` Lists every movement of your money for orders, stock and the wallet, newest first: wallet payments and top-ups, card-paid orders, earnings, refunds and withdrawals. Plan subscription charges are not included. For designers and integrators. #### Query parameters - `direction` (string): Only credits or only debits. Possible values: `credit`, `debit`. - `category` (array of TransactionCategory): Only these categories. Repeat for several, for example `category=order_payment&category=stock_purchase`. Same shape as `TransactionCategory` above. - `paid_with` (string): Only wallet movements or only card charges. Possible values: `wallet`, `card`. - `status` (string): Only pending or only completed transactions. Possible values: `pending`, `completed`. - `created_after` (timestamp): Only transactions after this time. When neither created\_after nor created\_before is given, defaults to 30 days before the request. Any explicit range is honoured as given, with no maximum length. - `created_before` (timestamp): Only transactions before this time. Giving it on its own turns off the 30 day default, so there is no lower bound. - `amount_min` (integer or null): Only amounts of at least this many cents. Range at least 0. - `amount_max` (integer or null): Only amounts of at most this many cents. Range at least 0. - `order` (string): Only transactions for this order: an `ord_` id or an order number. - `search` (string): Matches the description and order numbers. - `sort` (string): Order of results. A leading `-` means descending. Possible values: `-created_at`, `created_at`, `-amount`, `amount`. Defaults to "-created\_at". - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of transactions. Response attributes (TransactionList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Transaction): The page of results. Described in [the transaction object](https://public-api.dapi.digital/docs/reference/wallet.md#transaction_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of transactions. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/transactions" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "txn_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "transaction", "direction": "debit", "category": "order_payment", "adjustment_reason": null, "paid_with": "wallet", "status": "completed", "amount": { "amount": 5299, "currency": "usd" }, "vat": null, "description": "ShipStation order SSG2M9S9", "orders": [ { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "name": "SSG2M9S9" } ], "invoice_url": null, "created_at": "2026-10-12T14:03:55Z" } ], "has_more": false, "next_cursor": null } ``` ### Summarize transactions GET `/v2/transactions/summary` - **Credentials**: An API key with the `wallet:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `get_transaction_summary` Totals your completed transactions over a period, per category and direction. Use it for monthly reporting instead of paging through every transaction. For designers and integrators. #### Query parameters - `created_after` (timestamp): Only transactions after this time. When neither created\_after nor created\_before is given, defaults to 30 days before the request. Any explicit range is honoured as given, with no maximum length. - `created_before` (timestamp): Only transactions before this time. Giving it on its own turns off the 30 day default, so there is no lower bound. - `paid_with` (string): Only wallet movements or only card charges. Possible values: `wallet`, `card`. #### Returns 200 OK The totals. Response attributes (TransactionSummary): - `object` (string): Names the type of this object. Always `transaction_summary`. - `created_after` (timestamp or null): Start of the period applied: as requested, or 30 days before the request when neither created\_after nor created\_before was given. Null for no lower bound. - `created_before` (timestamp or null): End of the period, as requested. Null for no upper bound. - `credits` (object): Total credited in the period. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `debits` (object): Total debited in the period. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `net` (object): `credits` minus `debits`. Negative when you spent more than came in. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `by_category` (array of object): Totals per category and direction. Categories with no transactions are left out. - `category` (TransactionCategory): Same shape as `TransactionCategory` above. - `direction` (TransactionDirection): Same shape as `TransactionDirection` above. - `count` (integer): How many completed transactions of this category and direction the period holds. Range at least 0. - `total` (object): An amount of money. Amounts are integers in the smallest currency unit, so they never need decimal parsing. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. #### Responses - `200`: The totals. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/transactions/summary" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "transaction_summary", "created_after": "2026-09-01T00:00:00Z", "created_before": "2026-10-01T00:00:00Z", "credits": { "amount": 50000, "currency": "usd" }, "debits": { "amount": 41230, "currency": "usd" }, "net": { "amount": 8770, "currency": "usd" }, "by_category": [ { "category": "top_up", "direction": "credit", "count": 2, "total": { "amount": 50000, "currency": "usd" } }, { "category": "order_payment", "direction": "debit", "count": 31, "total": { "amount": 29230, "currency": "usd" } }, { "category": "stock_purchase", "direction": "debit", "count": 2, "total": { "amount": 12000, "currency": "usd" } } ] } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/wallet. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Webhooks Events sent to your endpoints, and the events log. **Verifying a delivery.** Every delivery is a POST with three headers: - `X-Dapi-Webhook-Signature`: `sha256=`, the HMAC-SHA256 of `.` keyed with the endpoint secret (`whsec_...`, shown when the endpoint is created or its secret rotated). - `X-Dapi-Webhook-Timestamp`: the Unix time in seconds when this attempt was signed. Every retry is signed again with a new timestamp. - `X-Dapi-Event-Id`: the event id (`evt_...`), the same on every retry of one event. To verify: compute the HMAC over the raw bytes you received (before parsing the JSON), compare it to the header in constant time, and refuse the request when the timestamp is more than 5 minutes away from your clock (replay tolerance). Answer with any 2xx within 10 seconds; failed deliveries are retried with backoff for 24 hours, so deduplicate on the event id. This page covers [the event object](https://public-api.dapi.digital/docs/reference/webhooks.md#event_object) and [the webhook endpoint object](https://public-api.dapi.digital/docs/reference/webhooks.md#webhook_endpoint_object). ### Endpoints - [GET `/v2/events`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_events) - [GET `/v2/events/{id}`](https://public-api.dapi.digital/docs/reference/webhooks.md#get_event) - [POST `/v2/webhook-endpoints`](https://public-api.dapi.digital/docs/reference/webhooks.md#create_webhook_endpoint) - [PATCH `/v2/webhook-endpoints/{id}`](https://public-api.dapi.digital/docs/reference/webhooks.md#update_webhook_endpoint) - [DELETE `/v2/webhook-endpoints/{id}`](https://public-api.dapi.digital/docs/reference/webhooks.md#delete_webhook_endpoint) - [POST `/v2/webhook-endpoints/{id}/rotate-secret`](https://public-api.dapi.digital/docs/reference/webhooks.md#rotate_webhook_endpoint_secret) - [POST `/v2/webhook-endpoints/{id}/test`](https://public-api.dapi.digital/docs/reference/webhooks.md#send_test_webhook_event) - [GET `/v2/webhook-endpoints/{id}/deliveries`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_webhook_endpoint_deliveries) - [GET `/v2/events/{id}/deliveries`](https://public-api.dapi.digital/docs/reference/webhooks.md#get_event_deliveries) - [POST `/v2/events/{id}/resend`](https://public-api.dapi.digital/docs/reference/webhooks.md#resend_event) - [GET `/v2/webhook-endpoints`](https://public-api.dapi.digital/docs/reference/webhooks.md#list_webhook_endpoints) ### The event object Something that happened in your account. Sent to your webhook endpoints and kept in the events log for 30 days. #### Attributes - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (EventType): What happened. See the webhooks section for each event and its payload. Possible values: `order.created`, `order.paid`, `order.assigned`, `order.in_production`, `order.shipped`, `order.completed`, `order.on_hold`, `order.rejected`, `order.returned`, `order.cancelled`, `checkout.expired`, `qc_ticket.needs_your_action`, `qc_ticket.resolved`, `product.approved`, `product.rejected`, `stock_batch.purchased`, `stock_batch.completed`, `stock.low`, `quote.ready`, `quote.failed`, `quote.approved`, `quote.rejected`, `approval_request.approved`, `approval_request.changes_requested`. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `data` (object): The object the event is about, as it is now, and what changed. Each event type documents its exact shape in the `webhooks` section. - `object` (object): The object the event is about, as its GET endpoint returns it. - `previous` (object or null): The fields that changed, with their old values. - `region` (object or null): The region the event is about: set on `stock.low`, null on every other event. - `id` (string): Unique identifier of the region, prefixed with `reg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `region`. - `name` (string): Display name of the region. **The event object** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.shipped", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "shipped", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` ### List events GET `/v2/events` - **Credentials**: An API key with the `webhooks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `list_events` Lists the events of the last 30 days, newest first, whether or not they were delivered. Use it to catch up after downtime or to reconcile what your endpoint received. Integrators see their own event types only (orders, checkouts, quotes and onboarding); `get_event_deliveries` shows where each event was sent. #### Query parameters - `type` (array of EventType): Only these event types. Repeat for several. Same shape as `EventType` above. - `object` (string): Only events about this object, by its id, for example an `ord_` id. - `created_after` (timestamp): Only events after this time. - `created_before` (timestamp): Only events before this time. - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of events. Response attributes (EventList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Event): The page of results. Described in [the event object](https://public-api.dapi.digital/docs/reference/webhooks.md#event_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of events. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/events" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.shipped", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "shipped", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ], "has_more": false, "next_cursor": null } ``` ### Get an event GET `/v2/events/{id}` - **Credentials**: An API key with the `webhooks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `get_event` Returns one event from the last 30 days, as it was sent. Integrators read their own event types only. #### Path parameters - `id` (string, required): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The event. Returns [the event object](https://public-api.dapi.digital/docs/reference/webhooks.md#event_object). #### Responses - `200`: The event. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: No event with this id in the last 30 days (`event_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/events/evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Create a webhook endpoint POST `/v2/webhook-endpoints` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `create_webhook_endpoint` Adds a URL that receives the events it subscribes to, signed with its own secret. The response is the only time the secret is shown. You can have up to 10 endpoints, enabled or disabled, each with its own events. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Request body - `url` (string, required): Where events are posted. A public `https://` URL; private, local and reserved addresses are refused, and redirects are not followed. - `events` (array of IntegratorEventType, required): The event types to send to this endpoint. At least one. Possible values: `order.created`, `order.paid`, `order.assigned`, `order.in_production`, `order.shipped`, `order.completed`, `order.on_hold`, `order.rejected`, `order.returned`, `order.cancelled`, `checkout.expired`, `quote.ready`, `quote.failed`, `quote.approved`, `quote.rejected`, `approval_request.approved`, `approval_request.changes_requested`. - `enabled` (boolean): Whether the endpoint receives events. Disabled endpoints count toward the endpoint limit too. Defaults to true. #### Returns 201 Created The endpoint, with its secret shown once. Response attributes (WebhookEndpointWithSecret): - `id` (string): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_endpoint`. - `url` (string): Where events are posted. - `events` (array of EventType): The event types this endpoint receives. Same shape as `EventType` above. - `payload_version` (string): `v2` sends the event envelope documented here. `v1` keeps the payload of the previous API, for integrations built on it. - `status` (string): Disabled endpoints receive nothing. Possible values: `enabled`, `disabled`. - `last_delivery` (object or null): How the latest delivery went. Null before the first one. - `succeeded` (boolean): True when your endpoint answered with a 2xx status. False when it answered anything else or could not be reached. - `status_code` (integer or null): HTTP status your endpoint answered. Null when it could not be reached, and always null for the legacy endpoint (`payload_version: v1`, the webhook URL set before endpoints existed), which records only whether its latest delivery succeeded. - `at` (timestamp): Point in time, ISO 8601 in UTC. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `secret` (string): The signing secret of this endpoint (`whsec_...`). Shown only in this response: store it to verify `X-Dapi-Webhook-Signature`. Rotate it to get a new one. #### Responses - `201`: The endpoint, with its secret shown once. - `400`: The request is invalid, for example an event type integrators cannot receive (`validation_failed`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `409`: You already have 10 endpoints (`webhook_endpoint_limit_reached`). Delete one first. - `422`: The URL is not a public https address (`webhook_url_not_allowed`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/webhook-endpoints" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com/webhooks/dapi", "events": [ "quote.ready", "quote.failed", "order.shipped" ] }' ``` **Response 201** ```json { "id": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_endpoint", "url": "https://example.com/webhooks/dapi", "events": [ "quote.ready", "quote.failed", "order.shipped" ], "payload_version": "v2", "status": "enabled", "last_delivery": null, "created_at": "2026-10-01T12:00:00Z", "secret": "whsec_3f1c9a2b7d4e5f60718293a4b5c6d7e8f9012a3b4c5d6e7f8091a2b3c4d5e6f7" } ``` ### Update a webhook endpoint PATCH `/v2/webhook-endpoints/{id}` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `update_webhook_endpoint` Changes the URL, the events or whether the endpoint is enabled; fields you leave out stay as they are. The secret does not change. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Path parameters - `id` (string, required): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. #### Request body - `url` (string): Where events are posted. A public `https://` URL; private, local and reserved addresses are refused, and redirects are not followed. - `events` (array of IntegratorEventType): Replaces the subscribed event types. Same shape as `IntegratorEventType` above. - `enabled` (boolean): Turns delivery on or off. Deliveries due while an endpoint is disabled are skipped (`skipped`), not sent later. #### Returns 200 OK The endpoint. Returns [the webhook endpoint object](https://public-api.dapi.digital/docs/reference/webhooks.md#webhook_endpoint_object). #### Responses - `200`: The endpoint. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no dashboard endpoint with this id (`webhook_endpoint_not_found`). The previous API endpoint (`payload_version: v1`) is managed there. - `422`: The URL is not a public https address (`webhook_url_not_allowed`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v2/webhook-endpoints/whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "enabled": false }' ``` ### Delete a webhook endpoint DELETE `/v2/webhook-endpoints/{id}` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `delete_webhook_endpoint` Deletes the endpoint and its pending deliveries. Events stay in the events log. This cannot be undone. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Path parameters - `id` (string, required): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The endpoint was deleted. Response attributes (WebhookEndpointDeleted): - `id` (string): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_endpoint`. - `deleted` (boolean): Always true: the endpoint is gone. #### Responses - `200`: The endpoint was deleted. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no dashboard endpoint with this id (`webhook_endpoint_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v2/webhook-endpoints/whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_endpoint", "deleted": true } ``` ### Rotate an endpoint secret POST `/v2/webhook-endpoints/{id}/rotate-secret` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `rotate_webhook_endpoint_secret` Replaces the signing secret at once and returns the new one, shown only here. Deliveries from now on, retries included, are signed with it. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Path parameters - `id` (string, required): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The endpoint, with its new secret shown once. Response attributes (WebhookEndpointWithSecret): - `id` (string): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_endpoint`. - `url` (string): Where events are posted. - `events` (array of EventType): The event types this endpoint receives. Same shape as `EventType` above. - `payload_version` (string): `v2` sends the event envelope documented here. `v1` keeps the payload of the previous API, for integrations built on it. - `status` (string): Disabled endpoints receive nothing. Possible values: `enabled`, `disabled`. - `last_delivery` (object or null): How the latest delivery went. Null before the first one. - `succeeded` (boolean): True when your endpoint answered with a 2xx status. False when it answered anything else or could not be reached. - `status_code` (integer or null): HTTP status your endpoint answered. Null when it could not be reached, and always null for the legacy endpoint (`payload_version: v1`, the webhook URL set before endpoints existed), which records only whether its latest delivery succeeded. - `at` (timestamp): Point in time, ISO 8601 in UTC. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `secret` (string): The signing secret of this endpoint (`whsec_...`). Shown only in this response: store it to verify `X-Dapi-Webhook-Signature`. Rotate it to get a new one. #### Responses - `200`: The endpoint, with its new secret shown once. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no dashboard endpoint with this id (`webhook_endpoint_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/webhook-endpoints/whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/rotate-secret" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_endpoint", "url": "https://example.com/webhooks/dapi", "events": [ "order.shipped", "order.completed", "qc_ticket.needs_your_action" ], "payload_version": "v2", "status": "enabled", "last_delivery": { "succeeded": true, "status_code": 200, "at": "2026-10-14T10:02:01Z" }, "created_at": "2026-10-01T12:00:00Z", "secret": "whsec_9a8b7c6d5e4f30211203f4e5d6c7b8a99a8b7c6d5e4f30211203f4e5d6c7b8a9" } ``` ### Send a test event POST `/v2/webhook-endpoints/{id}/test` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `send_test_webhook_event` Posts a signed `webhook.test` event to the endpoint now, so you can check that it is reachable and verifies signatures. The body is an event envelope whose `data.object` names the endpoint (`{ id, object }`); its id starts with `evt_test` and it is not kept in the events log, sent again or retried. Disabled endpoints can be tested too. Only success or failure is reported. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Path parameters - `id` (string, required): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK How the test went. Response attributes (WebhookTestResult): - `object` (string): Names the type of this object. Always `webhook_test`. - `ok` (boolean): True when your endpoint answered with a 2xx in time. - `message` (string): What happened, for a person. #### Responses - `200`: How the test went. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no dashboard endpoint with this id (`webhook_endpoint_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/webhook-endpoints/whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/test" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "webhook_test", "ok": true, "message": "Your endpoint acknowledged the test." } ``` ### List deliveries to an endpoint GET `/v2/webhook-endpoints/{id}/deliveries` - **Credentials**: An API key with the `webhooks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `list_webhook_endpoint_deliveries` Lists what was sent to one endpoint, newest first, with every try and your endpoint's answers. Deliveries are kept 30 days. Integrators only; readable with a session or a key with `webhooks:read`. #### Path parameters - `id` (string, required): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. #### Query parameters - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of deliveries. Response attributes (WebhookDeliveryList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of WebhookDelivery): The page of results. - `id` (string): Unique identifier of the webhook delivery, prefixed with `whd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_delivery`. - `endpoint` (object): The webhook endpoint this delivery went to. - `id` (string): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_endpoint`. - `url` (string): The URL the event was sent to. - `event` (object or null): The event delivered. Null for deliveries of the previous API payload (`payload_version: v1`). - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string): The event type. - `status` (WebhookDeliveryStatus): - `pending`: being sent, or waiting for a retry (retries run for 24 hours). - `succeeded`: your endpoint answered with a 2xx. - `failed`: every try in the 24 hours failed. - `skipped`: not sent because the endpoint was disabled when its turn came. Nothing was posted, so there are no attempts. - `skipped_reason` (string or null): Why a `skipped` delivery was not sent: `endpoint_disabled`, the endpoint was disabled when its turn came. Null otherwise. - `next_attempt_at` (timestamp or null): When the next try is due, while `pending`. Null otherwise. - `attempts` (array of WebhookDeliveryAttempt): Every try, oldest first: when it started, how long it took and what your endpoint answered. - `attempt` (integer): 1 for the first try. Range at least 1. - `started_at` (timestamp): Point in time, ISO 8601 in UTC. - `duration_ms` (integer): How long your endpoint took to answer or fail, in milliseconds. 0 when the request was not sent because the URL was refused. Range at least 0. - `status_code` (integer or null): What your endpoint answered; null when it did not answer (timeout, connection refused). - `succeeded` (boolean): True when your endpoint answered with a 2xx status. - `error` (string or null): Why the attempt failed: `HTTP ` for a non-2xx answer, or `Timed out after s`, `Could not connect` or `Target not allowed` when there was no answer. Null when it succeeded. - `response_body` (string or null): The first 4 KB of your endpoint's answer, with secrets and personal data removed. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of deliveries. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no dashboard endpoint with this id (`webhook_endpoint_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/webhook-endpoints/whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/deliveries" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "whd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_delivery", "endpoint": { "id": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_endpoint", "url": "https://example.com/webhooks/dapi" }, "event": { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "quote.ready" }, "status": "succeeded", "skipped_reason": null, "next_attempt_at": null, "attempts": [ { "attempt": 1, "started_at": "2026-10-22T09:13:42Z", "duration_ms": 184, "status_code": 200, "succeeded": true, "error": null, "response_body": "ok" } ], "created_at": "2026-10-22T09:13:42Z" } ], "has_more": false, "next_cursor": null } ``` ### Get where an event was sent GET `/v2/events/{id}/deliveries` - **Credentials**: An API key with the `webhooks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `get_event_deliveries` Returns the deliveries of one event to your endpoints, with every try, and the API request that caused it. Use it to see why an endpoint did not receive an event. Integrators only; readable with a session or a key with `webhooks:read`. #### Path parameters - `id` (string, required): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The event, its cause and its deliveries. Response attributes (EventDeliveries): - `object` (string): Names the type of this object. Always `event_deliveries`. - `event` (object): The event these deliveries carried. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string): The event type. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `request` (object or null): The API request that caused the event (open it with get\_api\_request). Null when something else caused it, such as the slicer or a review. - `id` (string): The `Request-Id` of the request, as on your Logs page. - `object` (string): Names the type of this object. Always `api_request`. - `deliveries` (array of WebhookDelivery): Where the event was sent, oldest first: one delivery per subscribed endpoint, plus one per resend. Same shape as `WebhookDelivery` above. #### Responses - `200`: The event, its cause and its deliveries. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: No event with this id in the last 30 days (`event_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/events/evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/deliveries" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "event_deliveries", "event": { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "quote.ready", "created_at": "2026-10-22T09:13:41Z" }, "request": null, "deliveries": [ { "id": "whd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_delivery", "endpoint": { "id": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_endpoint", "url": "https://example.com/webhooks/dapi" }, "event": { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "quote.ready" }, "status": "succeeded", "skipped_reason": null, "next_attempt_at": null, "attempts": [ { "attempt": 1, "started_at": "2026-10-22T09:13:42Z", "duration_ms": 184, "status_code": 200, "succeeded": true, "error": null, "response_body": "ok" } ], "created_at": "2026-10-22T09:13:42Z" } ] } ``` ### Send an event again POST `/v2/events/{id}/resend` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `resend_event` Sends an event again to one of your endpoints, as a new delivery retried for 24 hours like any other. The body is the event as first sent, with the same event id, so a receiver that deduplicates on `X-Dapi-Event-Id` ignores it if it already processed the event. It is signed with the current secret. The endpoint must be enabled and subscribed to the event type. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Path parameters - `id` (string, required): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. #### Request body - `endpoint` (string, required): The endpoint to send the event to. #### Returns 201 Created The new delivery, after its first try. Response attributes (WebhookDelivery): - `id` (string): Unique identifier of the webhook delivery, prefixed with `whd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_delivery`. - `endpoint` (object): The webhook endpoint this delivery went to. - `id` (string): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_endpoint`. - `url` (string): The URL the event was sent to. - `event` (object or null): The event delivered. Null for deliveries of the previous API payload (`payload_version: v1`). - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string): The event type. - `status` (WebhookDeliveryStatus): Same shape as `WebhookDeliveryStatus` above. - `skipped_reason` (string or null): Why a `skipped` delivery was not sent: `endpoint_disabled`, the endpoint was disabled when its turn came. Null otherwise. - `next_attempt_at` (timestamp or null): When the next try is due, while `pending`. Null otherwise. - `attempts` (array of WebhookDeliveryAttempt): Every try, oldest first: when it started, how long it took and what your endpoint answered. Same shape as `WebhookDeliveryAttempt` above. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. #### Responses - `201`: The new delivery, after its first try. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: No such event in the last 30 days (`event_not_found`) or no such endpoint (`webhook_endpoint_not_found`). - `409`: The endpoint is disabled (`webhook_endpoint_disabled`) or does not receive this event type (`event_type_not_subscribed`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/events/evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu/resend" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "endpoint": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" }' ``` **Response 201** ```json { "id": "whd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_delivery", "endpoint": { "id": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_endpoint", "url": "https://example.com/webhooks/dapi" }, "event": { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "quote.ready" }, "status": "succeeded", "skipped_reason": null, "next_attempt_at": null, "attempts": [ { "attempt": 1, "started_at": "2026-10-22T09:13:42Z", "duration_ms": 184, "status_code": 200, "succeeded": true, "error": null, "response_body": "ok" } ], "created_at": "2026-10-22T09:13:42Z" } ``` ### The webhook endpoint object A URL that receives the events it subscribes to. Endpoints and their secrets are managed in the dashboard; the secret is never returned by the API. #### Attributes - `id` (string): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_endpoint`. - `url` (string): Where events are posted. - `events` (array of EventType): The event types this endpoint receives. Same shape as `EventType` above. - `payload_version` (string): `v2` sends the event envelope documented here. `v1` keeps the payload of the previous API, for integrations built on it. - `status` (string): Disabled endpoints receive nothing. Possible values: `enabled`, `disabled`. - `last_delivery` (object or null): How the latest delivery went. Null before the first one. - `succeeded` (boolean): True when your endpoint answered with a 2xx status. False when it answered anything else or could not be reached. - `status_code` (integer or null): HTTP status your endpoint answered. Null when it could not be reached, and always null for the legacy endpoint (`payload_version: v1`, the webhook URL set before endpoints existed), which records only whether its latest delivery succeeded. - `at` (timestamp): Point in time, ISO 8601 in UTC. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. **The webhook endpoint object** ```json { "id": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_endpoint", "url": "https://example.com/webhooks/dapi", "events": [ "order.shipped", "order.completed", "qc_ticket.needs_your_action" ], "payload_version": "v2", "status": "disabled", "last_delivery": { "succeeded": true, "status_code": 200, "at": "2026-10-14T10:02:01Z" }, "created_at": "2026-10-01T12:00:00Z" } ``` ### List webhook endpoints GET `/v2/webhook-endpoints` - **Credentials**: An API key with the `webhooks:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `list_webhook_endpoints` Lists your webhook endpoints, the events each receives and how its last delivery went. Designers create and edit endpoints in the dashboard; integrators in the dashboard too, through the session-only endpoint operations. #### Query parameters - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of endpoints. Response attributes (WebhookEndpointList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of WebhookEndpoint): The page of results. Described in [the webhook endpoint object](https://public-api.dapi.digital/docs/reference/webhooks.md#webhook_endpoint_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of endpoints. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/webhook-endpoints" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "whe_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "webhook_endpoint", "url": "https://example.com/webhooks/dapi", "events": [ "order.shipped", "order.completed", "qc_ticket.needs_your_action" ], "payload_version": "v2", "status": "enabled", "last_delivery": { "succeeded": true, "status_code": 200, "at": "2026-10-14T10:02:01Z" }, "created_at": "2026-10-01T12:00:00Z" } ], "has_more": false, "next_cursor": null } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/webhooks. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Uploads Sending files: photos, design files and documents. ### Endpoints - [POST `/v2/uploads`](https://public-api.dapi.digital/docs/reference/uploads.md#create_upload) ### The upload object A slot to upload one file. PUT the bytes to `upload_url`, then reference the id in a write, for example `"images": [{ "upload": "upl_..." }]`. #### Attributes - `id` (string): Unique identifier of the upload, prefixed with `upl_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `upload`. - `purpose` (UploadPurpose): What the file is for. Each purpose accepts its own types and size: - `extra_image`: a photo of an extra part; image/png, image/jpeg, image/webp; file names ending in .png, .jpg, .jpeg, .jfif, .webp (or no extension); up to 25,000,000 bytes (25 MB). - `product_image`: a product or variant photo; image/png, image/jpeg, image/webp; file names ending in .png, .jpg, .jpeg, .jfif, .webp (or no extension); up to 25,000,000 bytes (25 MB). - `design_file`: a printable model (.3mf, .stl or .obj); model/3mf, model/stl, model/obj, application/octet-stream; file names ending in .3mf, .stl, .obj; up to 150,000,000 bytes (150 MB). - `order_file`: a model printed for one order line instead of its design (.3mf or .stl); only for accounts with custom files on; model/3mf, model/stl, application/sla, application/vnd.ms-pki.stl, application/octet-stream; file names ending in .3mf, .stl; up to 1,073,741,824 bytes (1024 MiB). - `attachment`: a production document for the farm (PDF, image or short video); application/pdf, image/png, image/jpeg, video/mp4; file names ending in .pdf, .png, .jpg, .jpeg, .jfif, .mp4, .m4v (or no extension); up to 25,000,000 bytes (25 MB). - `qc_photo`: a photo for a QC message or issue report; image/png, image/jpeg, image/webp; file names ending in .png, .jpg, .jpeg, .jfif, .webp (or no extension); up to 25,000,000 bytes (25 MB). - `compliance_document`: a product safety document (PDF or image); application/pdf, image/png, image/jpeg; file names ending in .pdf, .png, .jpg, .jpeg, .jfif (or no extension); up to 25,000,000 bytes (25 MB). - `quote_file`: a model to quote (.stl, .3mf, .obj, .step or .stp); integrators only; model/stl, model/3mf, model/obj, model/step, application/step, application/sla, application/vnd.ms-pki.stl, application/octet-stream; file names ending in .stl, .3mf, .obj, .step, .stp; up to 262,144,000 bytes (250 MiB). - `withdrawal_invoice`: an invoice (PDF, in USD) for a withdrawal request; integrators only; application/pdf; file names ending in .pdf; up to 10,485,760 bytes (10 MiB). The extension must match `content_type`. When a write uses the upload, its contents are checked against that type (the first bytes of an image, PDF or video; the header and structure of a model), and a file that is not what it claims is refused with 422 `invalid_file`. - `upload_url` (string): Send the file bytes here, with `method` and `headers` exactly as given. - `method` (string): The HTTP method for sending the file to `upload_url`. Always `PUT`. - `headers` (object): Headers the upload request must carry. - `expires_at` (timestamp): After this the upload URL stops working and the id can no longer be referenced. Uploads not used by then are deleted. **The upload object** ```json { "id": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "upload", "purpose": "extra_image", "upload_url": "https://files.example.com/temp/7f3a.png?signature=abc", "method": "PUT", "headers": { "Content-Type": "image/png" }, "expires_at": "2026-10-15T10:00:00Z" } ``` ### Start a file upload POST `/v2/uploads` - **Credentials**: An API key with the `products:write`, `extras:write`, `stocks:write`, `qc:write` or `quotes:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `create_upload` Reserves a slot for one file and returns where to send it. Files go straight to storage, never through the API: (1) call this, (2) PUT the bytes to `upload_url` with the given headers, (3) reference the returned id in the write that uses the file. A type, file name extension (missing, not accepted for the purpose, or not matching `content_type`) or size the purpose does not allow is refused here, before anything is uploaded. The contents are checked when a write uses the upload (422 `invalid_file`). Designers may use every purpose except `quote_file` and `withdrawal_invoice`; integrators may use `quote_file` and `withdrawal_invoice` (with the `quotes:write` scope) and `extra_image` (with the `extras:write` scope). #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `purpose` (UploadPurpose, required): Same shape as `UploadPurpose` above. - `file_name` (string, required): The file name, kept for display. Its extension must be one the purpose accepts and match `content_type`; model files and invoices need one. - `content_type` (string, required): MIME type of the file. Must be allowed for the purpose. - `size_bytes` (integer, required): Exact size of the file in bytes. Must be within the purpose limit (see `purpose`; 1 MB is 1,000,000 bytes and 1 MiB is 1,048,576 bytes). Range at least 1. #### Returns 201 Created The upload slot. Returns [the upload object](https://public-api.dapi.digital/docs/reference/uploads.md#upload_object). #### Responses - `201`: The upload slot. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The purpose is not available to your kind of account (`purpose_not_allowed`), a scope is missing (`missing_scope`), or the purpose needs a signed-in dashboard session (`credential_not_allowed`: `withdrawal_invoice`, like withdrawals themselves). - `422`: The type, extension or size is not allowed for the purpose (`file_type_not_allowed`, `file_too_large`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/uploads" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "purpose": "design_file", "file_name": "tracker.3mf", "content_type": "model/3mf", "size_bytes": 2758723 }' ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/uploads. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Shipping Shipping zones and prices. This page covers [the shipping rate card object](https://public-api.dapi.digital/docs/reference/shipping.md#shipping_rate_card_object) and [the shipping quote object](https://public-api.dapi.digital/docs/reference/shipping.md#shipping_quote_object). ### Endpoints - [GET `/v2/shipping/rates`](https://public-api.dapi.digital/docs/reference/shipping.md#get_shipping_rates) - [GET `/v2/shipping/quote`](https://public-api.dapi.digital/docs/reference/shipping.md#get_shipping_quote) ### The shipping rate card object What buyers pay for shipping. An order ships for the `base_price` of the tier of its heaviest single item (never the summed weight), plus `per_additional_item` for every other item. Items under `extra_small_max_weight_grams` ride along without the additional charge, unless they come with extra parts. Example: three small items and one medium item to EU Core cost the medium base price plus three additional items. When a zone has no price of its own for a tier, checkout charges that tier at the zone medium price (per additional item charge included), or, when the zone prices no medium tier either, a flat default for the whole parcel with no per additional item charge. The prices here already show that fallback, so they are always what checkout charges. #### Attributes - `object` (string): Names the type of this object. Always `shipping_rate_card`. - `currency` (string): Currency of every price on the card. - `tiers` (array of object): Tier limits, lightest first. - `tier` (ShippingTier): Weight class of an item, by the greater of its actual and volumetric weight: `small` up to 600 g, `medium` up to 2 kg, `large` above. - `max_weight_grams` (integer or null): Heaviest chargeable weight in the tier. Null for the top tier. - `extra_small_max_weight_grams` (integer): Items under this weight do not add the per-additional-item charge. Extra small is a flag on an item, not a tier you can quote: such an item is priced as `small` when it is the heaviest in the parcel, and is left out of `additional_items` otherwise. - `zones` (array of ShippingZone): Every active zone, or only the matching one with `country`. - `code` (string): Stable identifier of the zone, for example `eu-core`. Zones are platform configuration, so they have a readable code instead of an opaque id. - `object` (string): Names the type of this object. Always `shipping_zone`. - `name` (string): Display name. - `countries` (array of string): Countries this zone ships to. Empty for the rest-of-world zone, which covers every country not listed elsewhere except Russia, Belarus, Iran and Syria, where 3DAPI does not deliver. - `rest_of_world` (boolean): True for the catch-all zone. - `base_price` (object): What an order costs to ship to this zone, by the tier of its heaviest item. A tier the zone does not price shows the fallback checkout charges: the medium price, else the flat default (which then ignores `per_additional_item`). - `small` (object): An amount of money. Amounts are integers in the smallest currency unit, so they never need decimal parsing. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `medium` (object): An amount of money. Amounts are integers in the smallest currency unit, so they never need decimal parsing. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `large` (object): An amount of money. Amounts are integers in the smallest currency unit, so they never need decimal parsing. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `per_additional_item` (object): Added for every item after the heaviest one. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. **The shipping rate card object** ```json { "object": "shipping_rate_card", "currency": "usd", "tiers": [ { "tier": "small", "max_weight_grams": 600 }, { "tier": "medium", "max_weight_grams": 2000 }, { "tier": "large", "max_weight_grams": null } ], "extra_small_max_weight_grams": 100, "zones": [ { "code": "eu-core", "object": "shipping_zone", "name": "EU Core", "countries": [ "DE", "NL", "BE", "PL", "RO" ], "rest_of_world": false, "base_price": { "small": { "amount": 599, "currency": "usd" }, "medium": { "amount": 799, "currency": "usd" }, "large": { "amount": 1299, "currency": "usd" } }, "per_additional_item": { "amount": 100, "currency": "usd" } }, { "code": "rest-of-world", "object": "shipping_zone", "name": "Rest of World", "countries": [], "rest_of_world": true, "base_price": { "small": { "amount": 1599, "currency": "usd" }, "medium": { "amount": 1999, "currency": "usd" }, "large": { "amount": 2999, "currency": "usd" } }, "per_additional_item": { "amount": 100, "currency": "usd" } } ] } ``` ### Get the shipping rate card GET `/v2/shipping/rates` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Designers and Integrators - **Operation id**: `get_shipping_rates` Returns every shipping zone with its prices per tier. Public: no credentials needed. An order ships for the `base_price` of the tier of its heaviest single item (never the summed weight), plus `per_additional_item` for every other item. Items under `extra_small_max_weight_grams` ride along without the additional charge, unless they come with extra parts. Example: three small items and one medium item to EU Core cost the medium base price plus three additional items. When a zone has no price of its own for a tier, checkout charges that tier at the zone medium price (per additional item charge included), or, when the zone prices no medium tier either, a flat default for the whole parcel with no per additional item charge. The prices here already show that fallback, so they are always what checkout charges. For a single price, use the shipping quote instead. #### Query parameters - `country` (string): Only return the zone that ships to this country. Russia, Belarus, Iran and Syria return no zones: 3DAPI does not deliver there. #### Returns 200 OK The rate card. Returns [the shipping rate card object](https://public-api.dapi.digital/docs/reference/shipping.md#shipping_rate_card_object). #### Responses - `200`: The rate card. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `429`: Too many requests (`rate_limited`): the limit is 120 per minute per IP address. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/shipping/rates" ``` ### The shipping quote object The shipping price for one parcel to one country. #### Attributes - `object` (string): Names the type of this object. Always `shipping_quote`. - `zone` (object): The zone that serves the country. - `code` (string): Stable identifier of the zone, for example `eu-core`. Zones are platform configuration, so they have a readable code instead of an opaque id. - `name` (string): Display name of the zone. - `country_code` (string): ISO 3166-1 alpha-2 country code, uppercase. A code that is not a real country is refused with `validation_failed`. - `tier` (ShippingTier): Same shape as `ShippingTier` above. - `base_price` (object): Base price of the tier in this zone. When the zone does not price the tier, the fallback checkout charges: the zone medium price, else the flat default. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `additional_items` (integer): Items charged on top of the heaviest one. Range at least 0. - `per_additional_item` (object): Charge for each additional item in this zone. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `total` (object): What the shipping costs: `base_price` plus `per_additional_item` times `additional_items`. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. **The shipping quote object** ```json { "object": "shipping_quote", "zone": { "code": "eu-core", "name": "EU Core" }, "country_code": "DE", "tier": "medium", "base_price": { "amount": 799, "currency": "usd" }, "additional_items": 3, "per_additional_item": { "amount": 100, "currency": "usd" }, "total": { "amount": 1099, "currency": "usd" } } ``` ### Get a shipping price GET `/v2/shipping/quote` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Designers and Integrators - **Operation id**: `get_shipping_quote` Returns what one parcel costs to ship to a country, given the tier of its heaviest item and how many other items travel with it. Public: no credentials needed. Computed exactly as checkout does, including its fallback for a tier the zone does not price (the zone medium price, else a flat default for the whole parcel with `per_additional_item` 0). Every country is served except Russia, Belarus, Iran and Syria, which 3DAPI does not deliver to (422 `shipping_destination_not_served`); the rest-of-world zone covers countries no other zone lists. A code that is not a country is a 400. #### Query parameters - `country` (string, required): Destination country. - `tier` (string, required): Tier of the heaviest item in the parcel. There is no `extra_small` tier: an extra-small item is quoted as `small`. Possible values: `small`, `medium`, `large`. - `additional_items` (integer or null): How many other items ship in the same parcel, extra-small items excluded. 0 for a single item. Range 0 to 1000. Defaults to 0. #### Returns 200 OK The price. Returns [the shipping quote object](https://public-api.dapi.digital/docs/reference/shipping.md#shipping_quote_object). #### Responses - `200`: The price. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `404`: No active zone serves the country (`shipping_zone_not_found`). Only possible if 3DAPI has switched off the rest-of-world zone. - `422`: 3DAPI does not deliver to the country (`shipping_destination_not_served`): Russia, Belarus, Iran and Syria. - `429`: Too many requests (`rate_limited`): the limit is 120 per minute per IP address. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/shipping/quote?country=DE&tier=small" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/shipping. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Materials The material catalog. ### Endpoints - [GET `/v2/materials`](https://public-api.dapi.digital/docs/reference/materials.md#list_materials) - [GET `/v2/materials/{id}`](https://public-api.dapi.digital/docs/reference/materials.md#get_material) ### The material object A material a design can be printed in, either from the 3DAPI catalog or custom. #### Attributes - `id` (string or null): Unique identifier of a catalog material, prefixed with `mat_`. Null for a custom material. - `object` (string): Names the type of this object. Always `material`. - `name` (string): Display name, for example `PLA Black`. For custom materials, exactly what the seller typed. - `custom` (boolean): True for a seller-specified material that is not in the catalog. Custom materials need manual review before production. - `technology` (string or null): Printing technology. `fdm` is filament printing, the only one offered today. Null for custom materials. - `color` (string or null): Color name as listed in the catalog, for example `Black`. Null for custom materials. - `color_hex` (string or null): Reference colour of the filament as `#RRGGBB`, the colour 3DAPI matches the colours in your 3MF files against (see `suggested_materials` on a quote). Null for custom materials and catalog materials without a reference colour. - `filament_type` (string or null): Plastic family in lowercase, for example `pla` or `petg`. Null for custom materials and when unknown. **The material object** ```json { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Black", "custom": false, "technology": "fdm", "color": "Black", "color_hex": "#000000", "filament_type": "pla" } ``` ### List catalog materials GET `/v2/materials` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Designers and Integrators - **Operation id**: `list_materials` Lists every material in the 3DAPI catalog, the materials a design can be printed in. Public: no credentials needed. Use the ids when configuring which materials a design allows. #### Query parameters - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of catalog materials. Response attributes (MaterialList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Material): The page of results. Described in [the material object](https://public-api.dapi.digital/docs/reference/materials.md#material_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of catalog materials. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `429`: Too many requests (`rate_limited`): the limit is 120 per minute per IP address. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/materials" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Black", "custom": false, "technology": "fdm", "color": "Black", "color_hex": "#000000", "filament_type": "pla" } ], "has_more": false, "next_cursor": null } ``` ### Get a catalog material GET `/v2/materials/{id}` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Designers and Integrators - **Operation id**: `get_material` Returns one catalog material by id. Public: no credentials needed. #### Path parameters - `id` (string, required): Unique identifier of the material, prefixed with `mat_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The material. Returns [the material object](https://public-api.dapi.digital/docs/reference/materials.md#material_object). #### Responses - `200`: The material. - `404`: No catalog material has this id (`material_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 120 per minute per IP address. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/materials/mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/materials. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Categories Product categories and their safety requirements. ### Endpoints - [GET `/v2/categories`](https://public-api.dapi.digital/docs/reference/categories.md#list_categories) - [GET `/v2/categories/{id}`](https://public-api.dapi.digital/docs/reference/categories.md#get_category) ### The category object A product category. Categories form a two-level tree and decide which safety requirements a product must meet. #### Attributes - `id` (string): Unique identifier of the category, prefixed with `cat_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `category`. - `name` (string): Display name. - `slug` (string): URL-safe name, unique across categories. - `description` (string or null): Longer explanation of what belongs here, when provided. - `parent` (object or null): The top-level category this one belongs to. Null for a top-level category. Products may use either level. - `id` (string): Unique identifier of the category, prefixed with `cat_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `category`. - `name` (string): Display name of the category. - `compliance` (CategoryCompliance): EU/UK product safety (GPSR) requirements for products in this category, with everything inherited from the parent category already applied. - `risk_level` (string or null): GPSR risk level of products in this category. Null when none is set. Possible values: `low`, `medium`, `high`, `critical`. - `ce_marking_required` (boolean): Whether products in this category need CE marking. - `age_restriction` (string or null): Free-text age restriction, for example `0-36 months` or `18+`. Null when none applies. - `safety_warnings_required` (boolean): Whether the product page must show safety warnings for this category. - `safety_flags` (array of string): Typical hazards for the category, in snake\_case, for example `choking_hazard`. - `mandatory_warnings` (array of string): Exact warning sentences that are shown on the product page of every product in this category. - `required_documents` (array of RequiredDocument): Documents a product in this category must provide. Whether a missing document currently blocks publishing is reported on the product, in `publishing.blockers`. - `key` (string): Stable identifier of the requirement. Use it to say which requirement an uploaded compliance document satisfies. - `name` (string): Name of the document, as shown to sellers. **The category object** ```json { "id": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Action Figures & Dolls", "slug": "toys-and-games--action-figures-and-dolls", "description": null, "parent": { "id": "cat_9Qa1GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Toys & Games" }, "compliance": { "risk_level": "high", "ce_marking_required": false, "age_restriction": null, "safety_warnings_required": true, "safety_flags": [ "choking_hazard", "age_restriction" ], "mandatory_warnings": [ "Warning. Not suitable for children under 36 months. Small parts. Choking hazard." ], "required_documents": [ { "key": "material-toxicity-assessment", "name": "Material Toxicity Assessment" }, { "key": "technical-file-and-risk-assessment", "name": "Technical File & Risk Assessment" } ] } } ``` ### List product categories GET `/v2/categories` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Designers and Integrators - **Operation id**: `list_categories` Lists every product category as a flat list; each subcategory points at its `parent`. Public: no credentials needed. Use it to pick a category for a product and to see the safety requirements that come with it. #### Query parameters - `parent` (string): Only return the subcategories of this top-level category. - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of categories, in display order. Response attributes (CategoryList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Category): The page of results. Described in [the category object](https://public-api.dapi.digital/docs/reference/categories.md#category_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of categories, in display order. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `429`: Too many requests (`rate_limited`): the limit is 120 per minute per IP address. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/categories" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Action Figures & Dolls", "slug": "toys-and-games--action-figures-and-dolls", "description": null, "parent": { "id": "cat_9Qa1GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Toys & Games" }, "compliance": { "risk_level": "high", "ce_marking_required": false, "age_restriction": null, "safety_warnings_required": true, "safety_flags": [ "choking_hazard", "age_restriction" ], "mandatory_warnings": [ "Warning. Not suitable for children under 36 months. Small parts. Choking hazard." ], "required_documents": [ { "key": "material-toxicity-assessment", "name": "Material Toxicity Assessment" }, { "key": "technical-file-and-risk-assessment", "name": "Technical File & Risk Assessment" } ] } } ], "has_more": false, "next_cursor": null } ``` ### Get a product category GET `/v2/categories/{id}` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Designers and Integrators - **Operation id**: `get_category` Returns one category with its resolved safety requirements. Public: no credentials needed. #### Path parameters - `id` (string, required): Unique identifier of the category, prefixed with `cat_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The category. Returns [the category object](https://public-api.dapi.digital/docs/reference/categories.md#category_object). #### Responses - `200`: The category. - `404`: No category has this id (`category_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 120 per minute per IP address. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/categories/cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/categories. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Quotes Prices for printing model files. Integrators only. ### Endpoints - [GET `/v2/quotes`](https://public-api.dapi.digital/docs/reference/quotes.md#list_quotes) - [POST `/v2/quotes`](https://public-api.dapi.digital/docs/reference/quotes.md#create_quote) - [GET `/v2/quotes/{id}`](https://public-api.dapi.digital/docs/reference/quotes.md#get_quote) ### The quote object A price for printing one model file. Integrators upload model files to get quotes; until the account is approved, 10 approved quotes are also what 3DAPI reviews to approve the account (see `get_integrator_onboarding`). #### Attributes - `id` (string): Unique identifier of the quote, prefixed with `qte_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `quote`. - `name` (string): Display name of the quote. The `name` you sent when creating it, otherwise the uploaded file name. - `file` (object): The model file you uploaded, exactly as you sent it, and the production version 3DAPI prepared from it. - `name` (string): Name of the uploaded file. - `size_bytes` (integer or null): Size of the uploaded file in bytes. Null for old quotes created before sizes were recorded. - `download_url` (string): Signed link to download the uploaded file. It expires after 15 minutes; fetch the quote again for a fresh one. - `production_version` (object or null): The copy 3DAPI adapted to the production printer (printer, process and filament settings written in), the same as a design file's `production_version`. This is the file that gets printed, and the one `price` is for. Null when your upload is printed as it is: while the quote is `processing` and the file is still being checked, when the check found nothing to change, and when the check could not be done (the quote is then priced on your upload, which is also what gets printed). It never changes once the quote is `ready`. - `name` (string): File name. - `format` (string): File format. Always `3mf`: a mesh upload (STL, OBJ, STEP) becomes a 3MF project. - `size_bytes` (integer or null): File size in bytes. Null when it was not recorded. - `download_url` (string): Signed link to download the file. It expires after 15 minutes; fetch the quote again for a fresh one. - `prepared_at` (timestamp): When 3DAPI prepared this version. - `status` (QuoteStatus): Where the quote stands: - `processing`: the file is being sliced to measure material and print time. Usually takes one to a few minutes. - `ready`: slicing finished and `price` is set. - `failed`: the file could not be sliced, for example a broken or empty model. `failure_reason` says why. Upload a corrected file as a new quote. - `price` (object or null): Price to print one unit of the model, in usd: the price of the file that gets printed, which is `file.production_version` when there is one, otherwise your upload. Null until `status` is `ready`, and on failed quotes. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `failure_reason` (string or null): Why slicing failed, written to be shown to a person, usually with how to fix the file. For example, a binary STL the slicer cannot read (small models exported with zero normals are mistaken for text STL files) says to export it again with normals or as .3mf. Null unless `status` is `failed`. What a printable file needs: [https://public-api.dapi.digital/docs/guides/file-requirements](https://public-api.dapi.digital/docs/guides/file-requirements). - `suggested_materials` (array of SuggestedMaterial or null): One suggested catalog material per extruder slot the file prints with, in slot order, read from the colours and filament types in your file. Only slots something prints with are listed, so the numbers can have gaps (a project using filaments 2 and 4 lists slots 2 and 4). Order with `use_suggested_materials: true` on the order line to print with exactly these, or send `materials` as `[{ slot, material }]` for the same slots to choose your own. Null until `status` is `ready`, on failed quotes, and on quotes created before suggestions existed. - `slot` (integer): Extruder slot (filament number in the slicer, starting at 1) that prints with this material. The print farm loads the material into this slot. Range at least 1. - `file_color` (string or null): Colour your file gives this slot, as `#RRGGBB`. Null when the file has no colour for it (STL, OBJ and STEP files never do). - `file_filament_type` (string or null): Filament type your file names for this slot, as written in the file (for example `PLA` or `PETG-HF`). Null when it names none. The suggestion stays within this plastic when the catalog has it, otherwise it is PLA. - `material` (MaterialReference): Reference to a material. Catalog materials can be expanded to the full material; custom materials have no id and nothing more to expand. - `id` (string or null): Unique identifier of a catalog material, prefixed with `mat_`. Null for a custom material. - `object` (string): Names the type of this object. Always `material`. - `name` (string): Display name, for example `PLA Black`. For custom materials, exactly what the seller typed. - `custom` (boolean): True for a seller-specified material that is not in the catalog. Custom materials need manual review before production. - `match` (SuggestedMaterialMatch): How close the suggested catalog material is to the colour in your file. - `exact`: indistinguishable to the eye. - `close`: the same colour, a shade apart. - `approximate`: the nearest the catalog has, visibly different; also used when the file gives no colour. Check it before ordering. - `approval` (object): The file in your account approval. Approval only matters until your account is approved; afterwards new quotes stay `not_submitted` and are not reviewed one by one: an order goes to production once its quote is `ready`. - `status` (QuoteApprovalStatus): Where the file stands in your account approval (onboarding): - `not_submitted`: not part of any approval request yet. - `in_review`: part of the approval request 3DAPI is reviewing. - `approved`: approved by 3DAPI; it counts toward the 10 approved files your account needs and stays approved. - `rejected`: refused by 3DAPI; `reason` says why. It cannot be submitted again: upload a corrected file as a new quote and submit that instead. - `reason` (string or null): Why 3DAPI rejected the file. Null unless `status` is `rejected`. What a file needs to be approved: [https://public-api.dapi.digital/docs/guides/file-requirements](https://public-api.dapi.digital/docs/guides/file-requirements). - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `finished_at` (timestamp or null): When slicing finished, successfully or not. Null while `processing`. **The quote object** ```json { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2", "file": { "name": "phone-stand-v2.3mf", "size_bytes": 2758723, "download_url": "https://files.example.com/public-api/quotes/7f3a/input/phone-stand-v2.3mf?signature=abc", "production_version": { "name": "phone-stand-v2.3mf", "format": "3mf", "size_bytes": 2913004, "download_url": "https://files.example.com/public-api/quotes/7f3a/production/phone-stand-v2.3mf?signature=def", "prepared_at": "2026-10-20T09:12:09Z" } }, "status": "ready", "suggested_materials": [ { "slot": 1, "file_color": "#C12E1F", "file_filament_type": "PLA", "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Red", "custom": false }, "match": "exact" }, { "slot": 3, "file_color": "#0B2A88", "file_filament_type": null, "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false }, "match": "close" } ], "price": { "amount": 1245, "currency": "usd" }, "failure_reason": null, "approval": { "status": "not_submitted", "reason": null }, "created_at": "2026-10-20T09:12:00Z", "finished_at": "2026-10-20T09:13:41Z" } ``` ### List quotes GET `/v2/quotes` - **Credentials**: An API key with the `quotes:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `list_quotes` Lists your quotes, newest first, with their price and approval status. Use the filters to find quotes to submit for approval (`status=ready&approval_status=not_submitted`). Integrators only; designers are refused with `actor_not_allowed`. #### Query parameters - `status` (array of QuoteStatus): Only quotes in these states. Repeat for several. Same shape as `QuoteStatus` above. - `approval_status` (array of QuoteApprovalStatus): Only quotes in these approval states, for example `approval_status=not_submitted&status=ready` for the quotes you can still submit for approval. Same shape as `QuoteApprovalStatus` above. - `created_after` (timestamp): Only quotes created at or after this time (ISO 8601). - `created_before` (timestamp): Only quotes created before this time (ISO 8601). - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of quotes. Response attributes (QuoteList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of Quote): The page of results. Described in [the quote object](https://public-api.dapi.digital/docs/reference/quotes.md#quote_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of quotes. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/quotes" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2", "file": { "name": "phone-stand-v2.3mf", "size_bytes": 2758723, "download_url": "https://files.example.com/public-api/quotes/7f3a/input/phone-stand-v2.3mf?signature=abc", "production_version": { "name": "phone-stand-v2.3mf", "format": "3mf", "size_bytes": 2913004, "download_url": "https://files.example.com/public-api/quotes/7f3a/production/phone-stand-v2.3mf?signature=def", "prepared_at": "2026-10-20T09:12:09Z" } }, "status": "ready", "suggested_materials": [ { "slot": 1, "file_color": "#C12E1F", "file_filament_type": "PLA", "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Red", "custom": false }, "match": "exact" }, { "slot": 3, "file_color": "#0B2A88", "file_filament_type": null, "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false }, "match": "close" } ], "price": { "amount": 1245, "currency": "usd" }, "failure_reason": null, "approval": { "status": "not_submitted", "reason": null }, "created_at": "2026-10-20T09:12:00Z", "finished_at": "2026-10-20T09:13:41Z" } ], "has_more": false, "next_cursor": null } ``` ### Quote a model file POST `/v2/quotes` - **Credentials**: An API key with the `quotes:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `create_quote` Starts pricing one model file and returns the quote with `status: processing`. Poll `get_quote` until it is `ready` (with `price`) or `failed`. While it is processing, 3DAPI first checks the file against its production printers and, when needed, prepares a production version with the right printer, process and filament settings (`file.production_version`). The price is for that version, since it is the file that gets printed; your upload stays downloadable as it is. Upload the file first: `POST /v2/uploads` with purpose `quote_file`, PUT the bytes, then send the upload id here. Limits before your account is approved: up to 25 quotes per round, and none while an approval request is in review. After a review that rejected files you get a fresh round of 25. Once approved, quotes are unlimited. A quote counts from the moment it is created, while it is processing and once it is ready; a quote that ends `failed` is given back to your allowance. `get_integrator_onboarding` shows how many you have used. Integrators only; designers are refused with `actor_not_allowed`. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `file` (object, required): The model to quote, as `{ "upload": "upl_..." }` from `POST /v2/uploads` with purpose `quote_file`. - `upload` (string, required): An upload id from `POST /v2/uploads`, used before it expires. The file is checked when used: one that is not what its name and type say is refused with 422 `invalid_file` (the expected type in `details.expected`) and must be uploaded again. - `name` (string): Display name for the quote. Defaults to the uploaded file name. #### Returns 201 Created The quote, being processed. Returns [the quote object](https://public-api.dapi.digital/docs/reference/quotes.md#quote_object). #### Responses - `201`: The quote, being processed. - `400`: The request is invalid (`validation_failed`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `409`: Your account cannot quote right now: you used the 25 uploads of this round, so request approval next (`upload_limit_reached`), or an approval request is in review and uploads resume once it is reviewed (`approval_in_review`). - `422`: The upload is unknown, expired or of the wrong purpose (`unknown_upload`, `upload_expired`, `upload_purpose_mismatch`), its file was never sent to `upload_url` (`upload_missing`), or the upload id was already used by another quote (`upload_already_used`; every upload id works once). - `429`: The daily quote limit for accounts not yet approved is reached (`daily_quote_limit_reached`). It resets at midnight UTC. Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user), plus 60 per minute per API key (or signed-in user) for quote, upload, order and payment operations. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/quotes" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "file": { "upload": "upl_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" }, "name": "Phone stand v2" }' ``` ### Get a quote GET `/v2/quotes/{id}` - **Credentials**: An API key with the `quotes:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `get_quote` Returns one of your quotes. Poll it after `create_quote` until `status` is `ready` or `failed`; every few seconds is enough. Integrators only; designers are refused with `actor_not_allowed`. #### Path parameters - `id` (string, required): Unique identifier of the quote, prefixed with `qte_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The quote. Returns [the quote object](https://public-api.dapi.digital/docs/reference/quotes.md#quote_object). #### Responses - `200`: The quote. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no quote with this id (`quote_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/quotes/qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/quotes. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Integrator onboarding Signing up as an integrator and getting the account approved. ### Endpoints - [POST `/v2/integrator/accounts`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_integrator_account) - [POST `/v2/integrator/accounts/confirmation`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#resend_integrator_confirmation) - [GET `/v2/integrator/onboarding`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#get_integrator_onboarding) - [GET `/v2/integrator/approval-requests`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#list_approval_requests) - [POST `/v2/integrator/approval-requests`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#create_approval_request) - [GET `/v2/integrator/approval-requests/{id}`](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#get_approval_request) ### The approval request object A set of your quotes sent to 3DAPI to approve your integrator account. 3DAPI approves or rejects each file separately; the account is approved once 10 files are approved. #### Attributes - `id` (string): Unique identifier of the approval request, prefixed with `apr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `approval_request`. - `status` (ApprovalRequestStatus): - `in_review`: 3DAPI is reviewing the files. You cannot upload or send another request until it is reviewed. - `reviewed`: every file has a decision. If all were approved and you reached the required number, your account is approved; otherwise replace the rejected files and send a new request. - `quotes` (array of object): The quotes submitted in this request, with the decision on each file. - `quote` (QuoteReference): Reference to a quote. Pass the matching `expand[]` path to receive the full quote instead. - `id` (string): Unique identifier of the quote, prefixed with `qte_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `quote`. - `name` (string): Display name of the quote. - `decision` (QuoteDecision): - `pending`: not decided yet. - `approved`: the file is approved and counts toward your account approval. - `rejected`: the file is refused; `reason` says why. Upload a corrected file and include the new quote in your next request. - `reason` (string or null): Why the file was rejected, written by the reviewer. Null unless `decision` is `rejected`. - `submitted_at` (timestamp): Point in time, ISO 8601 in UTC. - `reviewed_at` (timestamp or null): When the review was completed. Null while `in_review`. **The approval request object** ```json { "id": "apr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "approval_request", "status": "reviewed", "quotes": [ { "quote": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2" }, "decision": "rejected", "reason": "The model has open edges; close the mesh and upload it again." } ], "submitted_at": "2026-10-20T10:00:00Z", "reviewed_at": "2026-10-21T08:30:00Z" } ``` ### Sign up as an integrator POST `/v2/integrator/accounts` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Integrators - **Operation id**: `create_integrator_account` Creates an integrator account: a company building on the 3DAPI API. No credentials are needed and none are returned. We email a confirmation link to the address. Open it to confirm the email (it leads to the API dashboard); only then can you sign in with the email and password and use the session or an API key for every other call. The link expires; ask for a new one with `resend_integrator_confirmation`. An integrator account can never also be a seller account on 3DAPI, and a seller account cannot be converted: use an email address that has no seller account. Limited to 10 sign-ups per IP address per hour (`rate_limited`, 429). #### Request body - `email` (string, required): Email address to sign in with. 3DAPI sends account and approval emails here. - `password` (string, required): Password to sign in with, 8 to 72 characters. - `company_name` (string, required): Name of the company building the integration. #### Returns 201 Created The account was created and the confirmation email sent. `email_confirmed` is `false`. Response attributes (IntegratorAccount): - `id` (string): Unique identifier of the integrator account, prefixed with `itg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `integrator_account`. - `email` (string): The email address to sign in with. - `company_name` (string): Name of the company. - `email_confirmed` (boolean): Whether the email address is confirmed. A new account starts `false`: open the link in the confirmation email before signing in. Signing in is refused until then. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. #### Responses - `201`: The account was created and the confirmation email sent. `email_confirmed` is `false`. - `400`: The request is invalid (`validation_failed`), or the password is too weak for the sign-in service (`weak_password`). - `409`: An account with this email already exists (`email_taken`). Sign in instead, or use another email. - `429`: Too many requests (`rate_limited`): the limit is 10 per hour per IP address. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Sign-up is not available right now, or could not be finished (`signup_unavailable`). Nothing is kept in either case, so the same email can be used again. Try again later or contact [support@dapi.digital](mailto:support@dapi.digital). Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/integrator/accounts" \ -H "Content-Type: application/json" \ -d '{ "email": "dev@acme.example", "password": "correct-horse-battery", "company_name": "Acme Prints" }' ``` **Response 201** ```json { "id": "itg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "integrator_account", "email": "dev@acme.example", "company_name": "Acme Prints", "email_confirmed": false, "created_at": "2026-10-20T09:00:00Z" } ``` ### Resend the confirmation email POST `/v2/integrator/accounts/confirmation` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Integrators - **Operation id**: `resend_integrator_confirmation` Sends a new confirmation link to an integrator account whose email is not confirmed yet, for example when the first link expired or never arrived. No credentials are needed. The answer is always 202, whether or not such an account exists or is already confirmed, so this operation never reveals which emails have accounts. Nothing is sent when there is no unconfirmed integrator account for the address. Limited to 5 requests per IP address per hour (`rate_limited`, 429). #### Request body - `email` (string, required): The email address the account was created with. #### Returns 202 Accepted Accepted. If an unconfirmed integrator account uses this email, a new confirmation link is on its way. No body. #### Responses - `202`: Accepted. If an unconfirmed integrator account uses this email, a new confirmation link is on its way. No body. - `400`: The request is invalid (`validation_failed`). - `429`: Too many requests (`rate_limited`): the limit is 5 per hour per IP address. Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Sending confirmations is not available right now (`signup_unavailable`). Try again later or contact [support@dapi.digital](mailto:support@dapi.digital). Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/integrator/accounts/confirmation" \ -H "Content-Type: application/json" \ -d '{ "email": "dev@acme.example" }' ``` **Response 202** ```json null ``` ### Get your onboarding status GET `/v2/integrator/onboarding` - **Credentials**: An API key with the `quotes:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `get_integrator_onboarding` Returns where your integrator account stands: approved files so far, your upload allowance, how many quotes the next approval request needs and the latest request with its per-file decisions. Use it to decide the next step: upload more files, send a request, wait for the review or replace rejected files. Integrators only; designers are refused with `actor_not_allowed`. #### Returns 200 OK Your onboarding status. Response attributes (IntegratorOnboarding): - `object` (string): Names the type of this object. Always `integrator_onboarding`. - `status` (OnboardingStatus): - `collecting`: upload files to get quotes, then send an approval request with `files_to_submit` ready quotes. - `in_review`: an approval request is being reviewed. Uploads are paused until it is reviewed. - `changes_requested`: the last review rejected some files. Replace them with new quotes and send another request with `files_to_submit` quotes; you have a fresh upload allowance. - `approved`: your account is approved. Quotes are unlimited and you can place orders. - `approved_files` (integer): How many of your files 3DAPI has approved so far. Range at least 0. - `required_files` (integer): How many approved files your account needs to be approved. Always 10 today. - `uploads` (object): Your upload allowance. Before approval each round allows 25 quotes; a review that rejects files starts a new round. - `used` (integer): Quotes created in the current round that count toward the allowance: processing and ready ones. A quote that ends `failed` does not count. Range at least 0. - `limit` (integer or null): Quotes allowed in the current round (25). Null once your account is approved: quotes are then unlimited. - `files_to_submit` (integer): How many ready quotes your next approval request must contain: the required number at first, then the number of files the last review rejected. 0 while a request is in review and once approved. Range at least 0. - `current_request` (object or null): Your latest approval request, in review or reviewed. Null before your first request. - `id` (string): Unique identifier of the approval request, prefixed with `apr_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `approval_request`. - `status` (ApprovalRequestStatus): Same shape as `ApprovalRequestStatus` above. - `quotes` (array of object): The quotes submitted in this request, with the decision on each file. - `quote` (QuoteReference): Same shape as `QuoteReference` above. - `decision` (QuoteDecision): Same shape as `QuoteDecision` above. - `reason` (string or null): Why the file was rejected, written by the reviewer. Null unless `decision` is `rejected`. - `submitted_at` (timestamp): Point in time, ISO 8601 in UTC. - `reviewed_at` (timestamp or null): When the review was completed. Null while `in_review`. - `order_blockers` (array of string): Account setup still missing before you can place orders, apart from approval. `billing_details_missing`: add your business billing details in the dashboard (Finance > Wallet); until then orders are refused with `compliance_blocked`. Empty when nothing is missing. Selling to EU or UK customers from outside the EU and UK also needs an EU responsible person, checked per order. #### Responses - `200`: Your onboarding status. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/integrator/onboarding" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "integrator_onboarding", "status": "changes_requested", "approved_files": 9, "required_files": 10, "uploads": { "used": 0, "limit": 25 }, "files_to_submit": 1, "current_request": { "id": "apr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "approval_request", "status": "reviewed", "quotes": [ { "quote": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2" }, "decision": "rejected", "reason": "The model has open edges; close the mesh and upload it again." } ], "submitted_at": "2026-10-20T10:00:00Z", "reviewed_at": "2026-10-21T08:30:00Z" }, "order_blockers": [ "billing_details_missing" ] } ``` ### List approval requests GET `/v2/integrator/approval-requests` - **Credentials**: An API key with the `quotes:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `list_approval_requests` Lists your approval requests, newest first, with the decision on each file. Integrators only; designers are refused with `actor_not_allowed`. #### Query parameters - `status` (array of ApprovalRequestStatus): Only requests in these states. Same shape as `ApprovalRequestStatus` above. - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of approval requests. Response attributes (ApprovalRequestList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of ApprovalRequest): The page of results. Described in [the approval request object](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#approval_request_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of approval requests. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/integrator/approval-requests" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "apr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "approval_request", "status": "reviewed", "quotes": [ { "quote": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2" }, "decision": "rejected", "reason": "The model has open edges; close the mesh and upload it again." } ], "submitted_at": "2026-10-20T10:00:00Z", "reviewed_at": "2026-10-21T08:30:00Z" } ], "has_more": false, "next_cursor": null } ``` ### Submit sample files for review POST `/v2/integrator/approval-requests` - **Credentials**: An API key with the `quotes:write` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `create_approval_request` Sends ready quotes to 3DAPI as sample files for review: 3DAPI checks that the files print well, which is about your files, not about access for an app or agent. Your account is approved once 10 files are approved. What a file needs: [https://public-api.dapi.digital/docs/guides/file-requirements](https://public-api.dapi.digital/docs/guides/file-requirements). Send `quotes` to choose the files, exactly `files_to_submit` of them (see `get_integrator_onboarding`), each `ready` and never submitted. Omit `quotes` to submit your latest eligible quotes automatically. The first request needs 10 quotes. Approved files stay approved, so after a review with rejections the next request needs only as many new quotes as were rejected. Rejected quotes cannot be submitted again: upload corrected files first. While the request is in review you cannot create quotes or send another request. The review usually takes 24 to 48 hours; you get an email when the review is done. Integrators only; designers are refused with `actor_not_allowed`. #### Headers - `Idempotency-Key` (string): Any unique string, for example a UUID. Sending the same request again with the same key within 24 hours returns the first response without doing anything twice. Reusing a key with a different body is refused with `idempotency_key_reused`. A refused request (4xx) frees the key so you can correct and resend it; a server error (5xx) is kept and returned again, because the write may already have happened: check the resource before retrying with a new key. #### Request body - `quotes` (array of string): The quotes to submit, exactly `files_to_submit` of them, each `ready` and `not_submitted`. Omit it to submit your latest eligible quotes automatically. #### Returns 201 Created The request, in review. Returns [the approval request object](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#approval_request_object). #### Responses - `201`: The request, in review. - `400`: The request is invalid (`validation_failed`), for example `quotes` does not hold exactly `files_to_submit` ids. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `409`: Your account is already approved (`already_approved`), or a request is already in review (`approval_in_review`). - `422`: Without `quotes`, you have fewer eligible quotes than `files_to_submit` (`not_enough_ready_quotes`, `details.required` and `details.available`). With `quotes`, one of them is unknown, listed twice, still being priced, failed, already submitted, approved or rejected (`quote_not_eligible`, `details.quote` and `details.reason`: `not_found`, `duplicate`, `not_ready`, `failed`, `in_review`, `approved` or `rejected`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/integrator/approval-requests" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` ### Get an approval request GET `/v2/integrator/approval-requests/{id}` - **Credentials**: An API key with the `quotes:read` scope (full access includes every scope). A signed-in dashboard session works too. - **For**: Integrators - **Operation id**: `get_approval_request` Returns one of your approval requests with the decision and reason for each file. Integrators only; designers are refused with `actor_not_allowed`. #### Path parameters - `id` (string, required): Unique identifier of the approval request, prefixed with `apr_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The approval request. Returns [the approval request object](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#approval_request_object). #### Responses - `200`: The approval request. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no approval request with this id (`approval_request_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/integrator/approval-requests/apr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/integrator-onboarding. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Integrator account Your integrator account: names, sign-in email and password, and your EU responsible person. Integrators only, from a signed-in dashboard session. ### Endpoints - [GET `/v2/integrator/account`](https://public-api.dapi.digital/docs/reference/integrator-account.md#get_integrator_account) - [PATCH `/v2/integrator/account`](https://public-api.dapi.digital/docs/reference/integrator-account.md#update_integrator_account) - [POST `/v2/integrator/account/password`](https://public-api.dapi.digital/docs/reference/integrator-account.md#change_integrator_password) - [POST `/v2/integrator/account/email-change`](https://public-api.dapi.digital/docs/reference/integrator-account.md#request_integrator_email_change) - [GET `/v2/integrator/eu-responsible-person`](https://public-api.dapi.digital/docs/reference/integrator-account.md#get_eu_responsible_person) - [PUT `/v2/integrator/eu-responsible-person`](https://public-api.dapi.digital/docs/reference/integrator-account.md#set_eu_responsible_person) - [DELETE `/v2/integrator/eu-responsible-person`](https://public-api.dapi.digital/docs/reference/integrator-account.md#remove_eu_responsible_person) ### The eu responsible person object A GPSR EU responsible person record. Records are never edited: replacing one disables it and adds a new one. #### Attributes - `id` (string): Unique identifier of the eu responsible person, prefixed with `erp_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `eu_responsible_person`. - `company_name` (string or null): The responsible person, a company established in the EU or UK. - `email` (string or null): Where authorities and buyers can reach it. - `address` (string or null): Its postal address. - `country` (string or null): ISO 3166-1 alpha-2 country code: an EU member state or `GB` (United Kingdom). - `active` (boolean): Whether it is the current responsible person. At most one is active; the others are history. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `disabled_at` (timestamp or null): When it stopped being the responsible person (replaced or removed). Null while active. **The eu responsible person object** ```json null ``` ### Get your account settings GET `/v2/integrator/account` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `get_integrator_account` Returns your account id, sign-in email (and a new one waiting for confirmation), company and contact name, and when the account was created. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Returns 200 OK Your account settings. Response attributes (IntegratorAccountSettings): - `id` (string): Unique identifier of the integrator account, prefixed with `itg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `integrator_account_settings`. - `email` (string): The email address you sign in with. Account emails go here. - `pending_email` (string or null): A new sign-in address waiting for its confirmation link (see `request_integrator_email_change`), or null. You keep signing in with `email` until it is confirmed. - `company_name` (string or null): Your company as 3DAPI shows it, for example to buyers of your checkout orders. Your legal name for invoices is in your billing details. - `contact_name` (string or null): The person 3DAPI contacts about the account. - `created_at` (timestamp): When the account was created. #### Responses - `200`: Your account settings. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/integrator/account" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "itg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "integrator_account_settings", "email": "dev@acme.example", "pending_email": null, "company_name": "Acme Prints", "contact_name": "Ada Lovelace", "created_at": "2026-10-20T09:00:00Z" } ``` ### Update your company or contact name PATCH `/v2/integrator/account` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `update_integrator_account` Changes only the fields sent. Billing details and the sign-in email have their own operations. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Request body - `company_name` (string): Your company name, shown in the dashboard and to 3DAPI staff. Omit to keep it. - `contact_name` (string or null): Null or an empty string clears it. #### Returns 200 OK Saved. Your account settings. Response attributes (IntegratorAccountSettings): - `id` (string): Unique identifier of the integrator account, prefixed with `itg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `integrator_account_settings`. - `email` (string): The email address you sign in with. Account emails go here. - `pending_email` (string or null): A new sign-in address waiting for its confirmation link (see `request_integrator_email_change`), or null. You keep signing in with `email` until it is confirmed. - `company_name` (string or null): Your company as 3DAPI shows it, for example to buyers of your checkout orders. Your legal name for invoices is in your billing details. - `contact_name` (string or null): The person 3DAPI contacts about the account. - `created_at` (timestamp): When the account was created. #### Responses - `200`: Saved. Your account settings. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v2/integrator/account" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contact_name": "Ada Lovelace" }' ``` **Response 200** ```json { "id": "itg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "integrator_account_settings", "email": "dev@acme.example", "pending_email": null, "company_name": "Acme Prints", "contact_name": "Ada Lovelace", "created_at": "2026-10-20T09:00:00Z" } ``` ### Change your password POST `/v2/integrator/account/password` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `change_integrator_password` Sets a new sign-in password after checking the current one, and emails your sign-in address that it changed. Sessions already open stay signed in. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Request body - `current_password` (string, required): The password you sign in with now. - `new_password` (string, required): The new password, 8 to 72 characters. #### Returns 204 No Content The password was changed. #### Responses - `204`: The password was changed. - `400`: The request is invalid (`validation_failed`), the new password is the current one (`same_password`), or the sign-in service refused it as too weak (`weak_password`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `422`: The current password is not correct (`current_password_incorrect`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Sign-in details cannot be changed right now (`account_service_unavailable`). Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/integrator/account/password" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "current_password": "correct-horse-battery", "new_password": "staple-violet-orbit" }' ``` **Response 204** ```json null ``` ### Change your sign-in email POST `/v2/integrator/account/email-change` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `request_integrator_email_change` Emails a confirmation link to the new address, and to your current address when the sign-in service asks both to confirm (`confirm_current_email`). Nothing changes until the links are opened; until then the account signs in with its current email and shows the new one as `pending_email`. Asking again replaces the earlier links. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Request body - `email` (string, required): The address to sign in with from now on. #### Returns 202 Accepted The confirmation email(s) were sent. Response attributes (IntegratorEmailChange): - `object` (string): Names the type of this object. Always `email_change`. - `new_email` (string): The address the account will use once the change is confirmed. - `confirm_current_email` (boolean): Whether your current address also got a link to open. When `true`, the change happens once both links are opened; when `false`, once the new address opens its link. #### Responses - `202`: The confirmation email(s) were sent. - `400`: The request is invalid (`validation_failed`), or the address is the one you already sign in with (`email_unchanged`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `409`: Another account uses this address (`email_taken`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. - `503`: Sign-in details cannot be changed right now (`account_service_unavailable`), or the confirmation email could not be sent (`email_not_sent`). Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/integrator/account/email-change" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "email": "ops@acme.example" }' ``` **Response 202** ```json { "object": "email_change", "new_email": "ops@acme.example", "confirm_current_email": true } ``` ### Get your EU responsible person GET `/v2/integrator/eu-responsible-person` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `get_eu_responsible_person` Returns your EU responsible person, earlier ones, and whether you need one. Under the GPSR, products sold to buyers in the EU or UK need a responsible person established there. A business billed outside the EU and UK needs one before its checkout orders can ship to EU or UK addresses; orders to other countries, and wallet orders, do not. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Returns 200 OK Your EU responsible person status. Response attributes (EuResponsiblePersonStatus): - `object` (string): Names the type of this object. Always `eu_responsible_person_status`. - `required` (boolean): Whether checkout orders shipping to the EU or UK need an active EU responsible person. `true` when your billing country is outside the EU and UK, or not saved yet; `false` for EU and UK businesses, which answer for their products themselves. - `billing_country` (string or null): The country of your billing details, which decides `required`. Null until you save billing details. - `status` (string): - `active`: an EU responsible person is on file. - `missing`: none is on file. When `required` is `true`, checkout orders to EU or UK addresses are refused (`compliance_blocked`, requirement `eu_responsible_person_missing`). - `active` (object or null): The current responsible person, or null. - `id` (string): Unique identifier of the eu responsible person, prefixed with `erp_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `eu_responsible_person`. - `company_name` (string or null): The responsible person, a company established in the EU or UK. - `email` (string or null): Where authorities and buyers can reach it. - `address` (string or null): Its postal address. - `country` (string or null): ISO 3166-1 alpha-2 country code: an EU member state or `GB` (United Kingdom). - `active` (boolean): Whether it is the current responsible person. At most one is active; the others are history. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `disabled_at` (timestamp or null): When it stopped being the responsible person (replaced or removed). Null while active. - `previous` (array of EuResponsiblePerson): Earlier responsible persons, newest first. Described in [the eu responsible person object](https://public-api.dapi.digital/docs/reference/integrator-account.md#eu_responsible_person_object). #### Responses - `200`: Your EU responsible person status. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/integrator/eu-responsible-person" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "eu_responsible_person_status", "required": true, "billing_country": "US", "status": "active", "active": { "id": "erp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "eu_responsible_person", "company_name": "EU Rep GmbH", "email": "contact@eurep.example", "address": "Hauptstr. 1, 10115 Berlin", "country": "DE", "active": true, "created_at": "2026-10-20T09:00:00Z", "disabled_at": null }, "previous": [] } ``` ### Add or replace your EU responsible person PUT `/v2/integrator/eu-responsible-person` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `set_eu_responsible_person` Makes this company your active EU responsible person. A current one is disabled and kept in `previous`; records are never edited. Takes effect at once for new orders. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Request body - `company_name` (string, required): Legal name of the EU responsible person, a company established in the EU. - `email` (string, required): Email where authorities can reach the EU responsible person. - `address` (string, required): Street, number, postal code and city. - `country` (string, required): ISO 3166-1 alpha-2 code of an EU member state, or `GB`. Any other country is refused. #### Returns 200 OK Saved. Your EU responsible person status. Response attributes (EuResponsiblePersonStatus): - `object` (string): Names the type of this object. Always `eu_responsible_person_status`. - `required` (boolean): Whether checkout orders shipping to the EU or UK need an active EU responsible person. `true` when your billing country is outside the EU and UK, or not saved yet; `false` for EU and UK businesses, which answer for their products themselves. - `billing_country` (string or null): The country of your billing details, which decides `required`. Null until you save billing details. - `status` (string): - `active`: an EU responsible person is on file. - `missing`: none is on file. When `required` is `true`, checkout orders to EU or UK addresses are refused (`compliance_blocked`, requirement `eu_responsible_person_missing`). - `active` (object or null): The current responsible person, or null. - `id` (string): Unique identifier of the eu responsible person, prefixed with `erp_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `eu_responsible_person`. - `company_name` (string or null): The responsible person, a company established in the EU or UK. - `email` (string or null): Where authorities and buyers can reach it. - `address` (string or null): Its postal address. - `country` (string or null): ISO 3166-1 alpha-2 country code: an EU member state or `GB` (United Kingdom). - `active` (boolean): Whether it is the current responsible person. At most one is active; the others are history. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `disabled_at` (timestamp or null): When it stopped being the responsible person (replaced or removed). Null while active. - `previous` (array of EuResponsiblePerson): Earlier responsible persons, newest first. Described in [the eu responsible person object](https://public-api.dapi.digital/docs/reference/integrator-account.md#eu_responsible_person_object). #### Responses - `200`: Saved. Your EU responsible person status. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `422`: The country is not an EU member state or the United Kingdom (`country_not_eu_or_uk`). Nothing was saved. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X PUT "https://public-api.dapi.digital/v2/integrator/eu-responsible-person" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "company_name": "EU Rep GmbH", "email": "contact@eurep.example", "address": "Hauptstr. 1, 10115 Berlin", "country": "DE" }' ``` **Response 200** ```json { "object": "eu_responsible_person_status", "required": true, "billing_country": "US", "status": "active", "active": { "id": "erp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "eu_responsible_person", "company_name": "EU Rep GmbH", "email": "contact@eurep.example", "address": "Hauptstr. 1, 10115 Berlin", "country": "DE", "active": true, "created_at": "2026-10-20T09:00:00Z", "disabled_at": null }, "previous": [] } ``` ### Remove your EU responsible person DELETE `/v2/integrator/eu-responsible-person` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `remove_eu_responsible_person` Disables your active EU responsible person. It stays in `previous` and cannot be re-enabled; add it again to use it again. While you need one, checkout orders to EU or UK addresses are refused from this moment. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Returns 200 OK Removed. Response attributes (EuResponsiblePersonDeleted): - `id` (string): Unique identifier of the eu responsible person, prefixed with `erp_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `eu_responsible_person`. - `deleted` (boolean): Always true: the EU responsible person is removed. #### Responses - `200`: Removed. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no active EU responsible person (`eu_responsible_person_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v2/integrator/eu-responsible-person" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "erp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "eu_responsible_person", "deleted": true } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/integrator-account. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Analytics Figures about your account over time: quote volume, value and reviews. Integrators only. ### Endpoints - [GET `/v2/integrator/analytics`](https://public-api.dapi.digital/docs/reference/analytics.md#get_integrator_analytics) ### The integrator analytics object Figures about your account for a period: quote volume, quoted value, slicing time, API usage, approval reviews and orders. #### Attributes - `object` (string): Names the type of this object. Always `integrator_analytics`. - `period` (object): The window this answer covers. - `from` (timestamp): Start of the period, included. - `to` (timestamp): End of the period, excluded. - `granularity` (AnalyticsGranularity): Bucket size of the time series: `day` (UTC calendar day), `week` (ISO week starting Monday, UTC) or `month` (UTC calendar month). - `time_zone` (string): Buckets and dates are in UTC. - `previous_period` (object): The window of the same length just before `period`, which `quotes.previous` covers. Compare the two for change. - `from` (timestamp): Point in time, ISO 8601 in UTC. - `to` (timestamp): Point in time, ISO 8601 in UTC. - `filters` (object): The filters applied, as understood. - `status` (array of QuoteStatus): Quote states the figures are limited to; empty means all. Possible values: `processing`, `ready`, `failed`. - `api_key` (string or null): Only quotes created with this key; null means every quote. - `quotes` (object): Your quotes in the period, with the filters. - `totals` (object): For `period`. - `created` (integer): Quotes created in the period. Range at least 0. - `processing` (integer): Of those, still being sliced. Range at least 0. - `ready` (integer): Of those, priced. Range at least 0. - `failed` (integer): Of those, failed. Range at least 0. - `success_rate` (number or null): Share of finished quotes that came out priced: `ready / (ready + failed)`, from 0 to 1. Null when no quote finished. Range 0 to 1. - `quoted_value` (object): Sum of the unit prices of the priced quotes: what one copy of each would cost. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `average_value` (object or null): Mean unit price of the priced quotes. Null without any. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `median_slicing_seconds` (integer or null): Median time from the start of slicing to a price, in seconds. Null without any priced quote. Range at least 0. - `previous` (object): For `previous_period`, with the same filters. - `created` (integer): Quotes created in the period. Range at least 0. - `processing` (integer): Of those, still being sliced. Range at least 0. - `ready` (integer): Of those, priced. Range at least 0. - `failed` (integer): Of those, failed. Range at least 0. - `success_rate` (number or null): Share of finished quotes that came out priced: `ready / (ready + failed)`, from 0 to 1. Null when no quote finished. Range 0 to 1. - `quoted_value` (object): Sum of the unit prices of the priced quotes: what one copy of each would cost. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `average_value` (object or null): Mean unit price of the priced quotes. Null without any. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `median_slicing_seconds` (integer or null): Median time from the start of slicing to a price, in seconds. Null without any priced quote. Range at least 0. - `series` (array of object): One entry per bucket of `period`, oldest first, including empty buckets. The first and last buckets can be partial. - `start` (timestamp): Start of the bucket. - `created` (integer): Quotes created in the bucket. Range at least 0. - `ready` (integer): Of those, priced. Range at least 0. - `failed` (integer): Of those, failed. Range at least 0. - `quoted_value` (object): Sum of the unit prices priced in the bucket. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `value_distribution` (array of object): How the unit prices of priced quotes spread over fixed ranges: under $5, $5 to $10, $10 to $25, $25 to $50, $50 to $100, $100 to $250, $250 and up. - `min` (object): Lower bound, included. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `max` (object or null): Upper bound, excluded. Null for the last range. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `count` (integer): Priced quotes whose unit price falls in the range. Range at least 0. - `file_types` (array of object): Quotes by file type, most quoted first. - `type` (string): File extension in lowercase without the dot, or `other` when the file name has none. - `created` (integer): Quotes of this file type. Range at least 0. - `ready` (integer): Of those, priced. Range at least 0. - `top_files` (array of object): The 10 file names quoted most often in the period. - `name` (string): File name as uploaded. - `created` (integer): Quotes of a file with this name. Range at least 0. - `ready` (integer): Of those, priced. Range at least 0. - `latest_price` (object or null): Unit price of the most recent priced quote of this file. Null when none was priced. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `last_quoted_at` (timestamp): Point in time, ISO 8601 in UTC. - `sources` (array of object): Quotes by API key, most first. - `api_key` (object or null): The key the quotes were created with; null for quotes made from the dashboard. - `id` (string): Unique identifier of the api key, prefixed with `key_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `api_key`. - `name` (string): The key's label, or "Deleted key" when it no longer exists. - `created` (integer): Quotes from this source. Range at least 0. - `ready` (integer): Of those, priced. Range at least 0. - `api_usage` (object): Calls made with your API keys in the period, from the request log (kept 30 days). Dashboard traffic is not counted. The `api_key` filter applies; `status` does not. - `totals` (object): For `period`. - `calls` (integer): Calls made with your API keys. Range at least 0. - `client_errors` (integer): Of those, answered with a 4xx status. Range at least 0. - `server_errors` (integer): Of those, answered with a 5xx status. Range at least 0. - `error_rate` (number or null): Share of calls answered with an error (4xx or 5xx), from 0 to 1. Null without calls. Range 0 to 1. - `p50_ms` (integer or null): Median time to answer, in milliseconds. Null without calls. Range at least 0. - `p95_ms` (integer or null): 95th percentile time to answer, in milliseconds. Null without calls. Range at least 0. - `previous` (object): For `previous_period`. - `calls` (integer): Calls made with your API keys. Range at least 0. - `client_errors` (integer): Of those, answered with a 4xx status. Range at least 0. - `server_errors` (integer): Of those, answered with a 5xx status. Range at least 0. - `error_rate` (number or null): Share of calls answered with an error (4xx or 5xx), from 0 to 1. Null without calls. Range 0 to 1. - `p50_ms` (integer or null): Median time to answer, in milliseconds. Null without calls. Range at least 0. - `p95_ms` (integer or null): 95th percentile time to answer, in milliseconds. Null without calls. Range at least 0. - `series` (array of object): One entry per bucket of `period`, oldest first. - `start` (timestamp): Point in time, ISO 8601 in UTC. - `calls` (integer): Calls in the bucket. Range at least 0. - `errors` (integer): Of those, answered with a 4xx or 5xx status. Range at least 0. - `p95_ms` (integer or null): 95th percentile time to answer in the bucket. Range at least 0. - `endpoints` (array of object): The 10 operations you called most. - `method` (string): HTTP method, uppercase. - `route` (string or null): The operation's path template; null for calls to paths no operation answers. - `calls` (integer): Calls to this operation. Range at least 0. - `errors` (integer): Of those, answered with an error. Range at least 0. - `p95_ms` (integer or null): 95th percentile time to answer. Range at least 0. - `sources` (array of object): Calls by API key, most first. - `api_key` (object): The API key the calls were made with. - `id` (string): Unique identifier of the api key, prefixed with `key_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `api_key`. - `name` (string): The key's label, or "Deleted key" when it no longer exists. - `calls` (integer): Calls made with this key. Range at least 0. - `errors` (integer): Of those, answered with an error. Range at least 0. - `reviews` (object): Approval reviews of your files since the account began. Not limited by the period or the filters. - `requests_sent` (integer): Approval requests you sent. Range at least 0. - `files_in_review` (integer): Files waiting for a decision. Range at least 0. - `files_approved` (integer): Files approved. Range at least 0. - `files_rejected` (integer): Files rejected. Range at least 0. - `rejection_reasons` (array of object): The 5 most common rejection reasons. - `reason` (string): The reviewer's reason, as written. - `count` (integer): Files rejected with this reason. Range at least 0. - `orders` (object): Your orders placed in the period, both modes. Amounts are the ones get\_integrator\_order shows for each order (`charges.total`, completed `refunds`, `earnings.net`), added up; a cancelled order keeps what it was charged and its refund. The `status` and `api_key` filters do not apply. - `totals` (object): For `period`. - `created` (integer): Orders placed in the period, in any status. Range at least 0. - `paid` (integer): Of those, paid: every `wallet` order, and `checkout` orders whose customer completed the checkout. Range at least 0. - `cancelled` (integer): Of those, now `cancelled`. Range at least 0. - `wallet` (object): Orders you paid from your wallet at the production price. - `orders` (integer): Paid `wallet` orders. Range at least 0. - `charged` (object): Sum of their `charges.total`: what you paid for production and shipping (VAT included when charged), as get\_integrator\_order shows it. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `refunded` (object): Sum of their completed `refunds`, back to your wallet (cancellations included). - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `spend` (object): `charged` less `refunded`: your net production spend. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `average_order_value` (object or null): `charged` divided by `orders`. Null without orders. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `checkout` (object): Orders your customers paid through a 3DAPI checkout link at your sales price. An unpaid link (open or expired) moves no money and is not counted here. - `orders` (integer): Paid `checkout` orders. Range at least 0. - `charged` (object): Sum of their `charges.total`: what your customers paid, VAT and shipping included, as get\_integrator\_order shows it. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `refunded` (object): Sum of their completed `refunds`, back to your customers' cards. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `sales` (object): `charged` less `refunded`: your net checkout sales. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `earnings` (object): Sum of their `earnings.net`: what you earn after the production price, the card fee and refunds. Credited to your wallet when each order completes. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `average_order_value` (object or null): `charged` divided by `orders`. Null without orders. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `previous` (object): For `previous_period`. - `created` (integer): Orders placed in the period, in any status. Range at least 0. - `paid` (integer): Of those, paid: every `wallet` order, and `checkout` orders whose customer completed the checkout. Range at least 0. - `cancelled` (integer): Of those, now `cancelled`. Range at least 0. - `wallet` (object): Orders you paid from your wallet at the production price. - `orders` (integer): Paid `wallet` orders. Range at least 0. - `charged` (object): Sum of their `charges.total`: what you paid for production and shipping (VAT included when charged), as get\_integrator\_order shows it. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `refunded` (object): Sum of their completed `refunds`, back to your wallet (cancellations included). - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `spend` (object): `charged` less `refunded`: your net production spend. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `average_order_value` (object or null): `charged` divided by `orders`. Null without orders. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `checkout` (object): Orders your customers paid through a 3DAPI checkout link at your sales price. An unpaid link (open or expired) moves no money and is not counted here. - `orders` (integer): Paid `checkout` orders. Range at least 0. - `charged` (object): Sum of their `charges.total`: what your customers paid, VAT and shipping included, as get\_integrator\_order shows it. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `refunded` (object): Sum of their completed `refunds`, back to your customers' cards. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `sales` (object): `charged` less `refunded`: your net checkout sales. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `earnings` (object): Sum of their `earnings.net`: what you earn after the production price, the card fee and refunds. Credited to your wallet when each order completes. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `average_order_value` (object or null): `charged` divided by `orders`. Null without orders. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `series` (array of object): One entry per bucket of `period`, oldest first, including empty buckets. - `start` (timestamp): Start of the bucket. - `created` (integer): Orders placed in the bucket, in any status. Range at least 0. - `wallet` (integer): Of those, `wallet` orders. Range at least 0. - `checkout` (integer): Of those, `checkout` orders. Range at least 0. - `wallet_spend` (object): Net spend (`charged` less `refunded`) of the paid `wallet` orders placed in the bucket. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `checkout_sales` (object): Net sales (`charged` less `refunded`) of the paid `checkout` orders placed in the bucket. - `amount` (integer): Amount in the smallest currency unit (cents for usd). 5000 means $50.00. Never a decimal. - `currency` (string): Three-letter ISO 4217 currency code, lowercase. Every amount is `usd` today. - `by_status` (array of object): Orders placed in the period by their current status, in lifecycle order. Statuses without orders are left out. - `status` (OrderStatus): Where the order is: - `awaiting_payment`: you still have to pay for it. - `paid`: paid, waiting to be assigned to a production partner. - `assigned`: a production partner has it; production has not started. - `in_production`: being made. - `shipped`: on its way to the customer. `shipping` has the tracking details. - `completed`: delivered and settled. - `on_hold`: there is not enough stock to fulfil it. - `rejected`: the production partner refused it. - `returned`: sent back after shipping. - `cancelled`: cancelled, usually after a full refund. - `count` (integer): Orders placed in the period now in this status. Range at least 0. - `by_mode` (array of object): Orders placed in the period by mode. - `mode` (string): `wallet`: you pay the production price plus shipping from your wallet (a shortfall is charged to your saved card). `checkout`: your customer pays the sales price you set through a hosted 3DAPI checkout and you earn the difference. - `created` (integer): Orders placed in the period in this mode. Range at least 0. - `paid` (integer): Of those, paid. Range at least 0. - `top_quotes` (array of object): The 10 quotes with the most units on paid orders placed in the period. - `quote` (object): The quote ordered. - `id` (string): Unique identifier of the quote, prefixed with `qte_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `quote`. - `name` (string): The quote name. - `orders` (integer): Paid orders with a line from this quote. Range at least 0. - `units` (integer): Units of this quote on those orders. Range at least 0. **The integrator analytics object** ```json { "object": "integrator_analytics", "period": { "from": "2026-09-22T00:00:00Z", "to": "2026-10-22T00:00:00Z", "granularity": "day", "time_zone": "UTC" }, "previous_period": { "from": "2026-08-23T00:00:00Z", "to": "2026-09-22T00:00:00Z" }, "filters": { "status": [], "api_key": null }, "quotes": { "totals": { "created": 128, "processing": 2, "ready": 118, "failed": 8, "success_rate": 0.9365, "quoted_value": { "amount": 162480, "currency": "usd" }, "average_value": { "amount": 1377, "currency": "usd" }, "median_slicing_seconds": 74 }, "previous": { "created": 97, "processing": 0, "ready": 89, "failed": 8, "success_rate": 0.9175, "quoted_value": { "amount": 118300, "currency": "usd" }, "average_value": { "amount": 1329, "currency": "usd" }, "median_slicing_seconds": 81 }, "series": [ { "start": "2026-10-21T00:00:00Z", "created": 6, "ready": 5, "failed": 1, "quoted_value": { "amount": 7240, "currency": "usd" } } ], "value_distribution": [ { "min": { "amount": 0, "currency": "usd" }, "max": { "amount": 500, "currency": "usd" }, "count": 12 }, { "min": { "amount": 25000, "currency": "usd" }, "max": null, "count": 1 } ], "file_types": [ { "type": "stl", "created": 96, "ready": 90 } ], "top_files": [ { "name": "phone-stand.stl", "created": 9, "ready": 9, "latest_price": { "amount": 1240, "currency": "usd" }, "last_quoted_at": "2026-10-21T14:02:11Z" } ], "sources": [ { "api_key": { "id": "key_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "api_key", "name": "Production server" }, "created": 110, "ready": 103 }, { "api_key": null, "created": 18, "ready": 15 } ] }, "api_usage": { "totals": { "calls": 1840, "client_errors": 21, "server_errors": 1, "error_rate": 0.012, "p50_ms": 96, "p95_ms": 412 }, "previous": { "calls": 1302, "client_errors": 30, "server_errors": 0, "error_rate": 0.023, "p50_ms": 104, "p95_ms": 455 }, "series": [ { "start": "2026-10-21T00:00:00Z", "calls": 74, "errors": 1, "p95_ms": 380 } ], "endpoints": [ { "method": "GET", "route": "/v2/quotes/:id", "calls": 1520, "errors": 4, "p95_ms": 160 } ], "sources": [ { "api_key": { "id": "key_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "api_key", "name": "Production server" }, "calls": 1840, "errors": 22 } ] }, "reviews": { "requests_sent": 2, "files_in_review": 0, "files_approved": 7, "files_rejected": 3, "rejection_reasons": [ { "reason": "Walls under 0.8 mm will break in print.", "count": 2 } ] }, "orders": { "totals": { "created": 14, "paid": 13, "cancelled": 1, "wallet": { "orders": 8, "charged": { "amount": 46400, "currency": "usd" }, "refunded": { "amount": 5800, "currency": "usd" }, "spend": { "amount": 40600, "currency": "usd" }, "average_order_value": { "amount": 5800, "currency": "usd" } }, "checkout": { "orders": 5, "charged": { "amount": 42300, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "sales": { "amount": 42300, "currency": "usd" }, "earnings": { "amount": 13240, "currency": "usd" }, "average_order_value": { "amount": 8460, "currency": "usd" } } }, "previous": { "created": 9, "paid": 8, "cancelled": 0, "wallet": { "orders": 5, "charged": { "amount": 30150, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "spend": { "amount": 30150, "currency": "usd" }, "average_order_value": { "amount": 6030, "currency": "usd" } }, "checkout": { "orders": 3, "charged": { "amount": 19800, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "sales": { "amount": 19800, "currency": "usd" }, "earnings": { "amount": 6120, "currency": "usd" }, "average_order_value": { "amount": 6600, "currency": "usd" } } }, "series": [ { "start": "2026-10-21T00:00:00Z", "created": 2, "wallet": 1, "checkout": 1, "wallet_spend": { "amount": 5800, "currency": "usd" }, "checkout_sales": { "amount": 8460, "currency": "usd" } } ], "by_status": [ { "status": "in_production", "count": 3 }, { "status": "shipped", "count": 4 }, { "status": "completed", "count": 6 }, { "status": "cancelled", "count": 1 } ], "by_mode": [ { "mode": "wallet", "created": 8, "paid": 8 }, { "mode": "checkout", "created": 6, "paid": 5 } ], "top_quotes": [ { "quote": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "phone-stand.stl" }, "orders": 7, "units": 42 } ] } } ``` ### Get your analytics GET `/v2/integrator/analytics` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `get_integrator_analytics` Figures about your quotes and API calls for a period: how many quotes you created and how they ended, their total and average unit price, how long slicing took, a time series, the spread of prices, file types, your most quoted files and which API keys created them, plus the outcome of your approval reviews. The `orders` section covers the orders you placed in the period: counts over time, by status and by mode, your wallet spend on production, your checkout sales and earnings, average order value and the quotes ordered most. Its amounts are the per-order figures of get\_integrator\_order, added up. Every total comes with the same figure for the equal period just before, for comparison. Periods are up to 731 days and 366 buckets; all dates are UTC. Integrators only, and only with a signed-in dashboard session: an API key cannot read analytics (`credential_not_allowed`). #### Query parameters - `from` (timestamp): Start of the period, included. Defaults to 30 days before `to`. - `to` (timestamp): End of the period, excluded. Defaults to the end of today (UTC). - `granularity` (string): Bucket size of `quotes.series`. Defaults to `day` up to 62 days, `week` up to 184 days, `month` beyond. - `status` (array of QuoteStatus): Only quotes in these states. Repeat for several. Same shape as `QuoteStatus` above. - `api_key` (string): Only quotes created with this API key. #### Returns 200 OK Your analytics for the period. Returns [the integrator analytics object](https://public-api.dapi.digital/docs/reference/analytics.md#integrator_analytics_object). #### Responses - `200`: Your analytics for the period. - `400`: A filter is invalid (`validation_failed`), `from` is not before `to` or the period is too long (`invalid_period`), or the granularity gives too many buckets (`too_many_buckets`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: Called with an API key instead of a session (`credential_not_allowed`), or not an integrator account (`actor_not_allowed`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/integrator/analytics" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/analytics. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Logs The requests you made in the last 30 days, with bodies and the webhooks they caused. Integrators only. ### Endpoints - [GET `/v2/api-requests`](https://public-api.dapi.digital/docs/reference/logs.md#list_api_requests) - [GET `/v2/api-requests/{id}`](https://public-api.dapi.digital/docs/reference/logs.md#get_api_request) ### The api request detail object One logged request with its bodies and what it caused. #### Attributes - `id` (string): Unique identifier of the request, prefixed with `req_`. Every response carries it in the `Request-Id` header, and error bodies in `details.request_id`. - `object` (string): Names the type of this object. Always `api_request`. - `method` (string): HTTP method, uppercase. - `route` (string or null): The operation's path template, for grouping (`/v2/quotes/:id`). Null when no operation matched, for example an unknown path. - `path` (string): The path as called, without the query string. - `status_code` (integer): HTTP status code the API answered with. - `duration_ms` (integer): Time the API took to answer, in milliseconds. Range at least 0. - `credential` (string or null): How the call was authenticated: an API key, a signed-in dashboard session, or an app the user connected (OAuth, such as Claude or ChatGPT). Null when it was refused before authentication. Possible values: `api_key`, `session`, `oauth`. - `api_key` (object or null): The key used, when one was. - `id` (string): Unique identifier of the api key, prefixed with `key_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `api_key`. - `name` (string): The key's label, or "Deleted key" when it no longer exists. - `ip` (string or null): IP address the request came from: the first address in `X-Forwarded-For`, or the connecting address when that header is absent. Null when neither could be read. - `user_agent` (string or null): The `User-Agent` header sent. Null when there was none. - `idempotency_key` (string or null): The `Idempotency-Key` header sent, if any. - `error_code` (string or null): The `code` of an error answer; null on success. - `request_bytes` (integer): Size of the request body in bytes, as received (chunked bodies included). 0 when there was none. Range at least 0. - `response_bytes` (integer): Size of the response body in bytes. 0 when there was none. Range at least 0. - `created_at` (timestamp): When the request arrived. - `request_body` (value, optional): The body you sent, with credentials, secrets and buyer personal data removed. JSON when it parsed, text otherwise. Null when there was none, or it is no longer available. - `response_body` (value, optional): The body the API answered, redacted the same way. Null when there was none, or it is no longer available. - `bodies_truncated` (boolean): True when a body was larger than 256 KB and only its start was kept (then as text). - `events` (array of object): Webhook events this request caused, with their deliveries to your endpoints. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string): The event type. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `deliveries` (array of object): Where the event was sent, with every try. - `id` (string): Unique identifier of the webhook delivery, prefixed with `whd_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_delivery`. - `endpoint` (object): The webhook endpoint this delivery went to. - `id` (string): Unique identifier of the webhook endpoint, prefixed with `whe_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `webhook_endpoint`. - `url` (string): The URL the event was sent to. - `status` (WebhookDeliveryStatus): - `pending`: being sent, or waiting for a retry (retries run for 24 hours). - `succeeded`: your endpoint answered with a 2xx. - `failed`: every try in the 24 hours failed. - `skipped`: not sent because the endpoint was disabled when its turn came. Nothing was posted, so there are no attempts. - `attempts` (array of WebhookDeliveryAttempt): Every try so far, first try first. Empty until the first try is made. - `attempt` (integer): 1 for the first try. Range at least 1. - `started_at` (timestamp): Point in time, ISO 8601 in UTC. - `duration_ms` (integer): How long your endpoint took to answer or fail, in milliseconds. 0 when the request was not sent because the URL was refused. Range at least 0. - `status_code` (integer or null): What your endpoint answered; null when it did not answer (timeout, connection refused). - `succeeded` (boolean): True when your endpoint answered with a 2xx status. - `error` (string or null): Why the attempt failed: `HTTP ` for a non-2xx answer, or `Timed out after s`, `Could not connect` or `Target not allowed` when there was no answer. Null when it succeeded. - `response_body` (string or null): The first 4 KB of your endpoint's answer, with secrets and personal data removed. **The api request detail object** ```json { "id": "req_7Kq2Xb9LmN4pR8sT1vW3yZ5a", "object": "api_request", "method": "POST", "route": "/v2/quotes", "path": "/v2/quotes", "status_code": 201, "duration_ms": 184, "credential": "api_key", "api_key": { "id": "key_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "api_key", "name": "Production server" }, "ip": "203.0.113.7", "user_agent": "node-fetch/1.0", "idempotency_key": "0f8c2d1e-5a6b-4c3d-9e8f-1a2b3c4d5e6f", "error_code": null, "request_bytes": 96, "response_bytes": 512, "created_at": "2026-10-21T14:02:11Z", "request_body": { "name": "Phone stand", "file": { "upload": "upl_3fZq9a[redacted]" } }, "response_body": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "status": "processing" }, "bodies_truncated": false, "events": [] } ``` ### List your API requests GET `/v2/api-requests` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `list_api_requests` Lists the requests you made to the API in the last 30 days, newest first: method, path, status, time taken and the key used. Filter by time, status class, method, operation, key or request id. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Query parameters - `created_after` (timestamp): Only requests made at or after this time. - `created_before` (timestamp): Only requests made before this time. - `status_class` (array of string): Only these status classes (`2xx`, `4xx`, ...). Repeat for several. Possible values: `2xx`, `3xx`, `4xx`, `5xx`. - `method` (array of string): Only these HTTP methods. Repeat for several. Possible values: `GET`, `POST`, `PUT`, `PATCH`, `DELETE`. - `route` (string): Only this operation, by its path template (`/v2/quotes/:id`). - `api_key` (string): Only requests made with this API key. - `request_id` (string): Find one request by its `Request-Id`. - `limit` (integer): How many results per page, from 1 to 100. Range 1 to 100. Defaults to 20. - `cursor` (string): Where to continue from: the `next_cursor` of the previous page. Omit for the first page. #### Returns 200 OK A page of requests. Response attributes (ApiRequestList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of ApiRequest): The page of results. - `id` (string): Unique identifier of the request, prefixed with `req_`. Every response carries it in the `Request-Id` header, and error bodies in `details.request_id`. - `object` (string): Names the type of this object. Always `api_request`. - `method` (string): HTTP method, uppercase. - `route` (string or null): The operation's path template, for grouping (`/v2/quotes/:id`). Null when no operation matched, for example an unknown path. - `path` (string): The path as called, without the query string. - `status_code` (integer): HTTP status code the API answered with. - `duration_ms` (integer): Time the API took to answer, in milliseconds. Range at least 0. - `credential` (string or null): How the call was authenticated: an API key, a signed-in dashboard session, or an app the user connected (OAuth, such as Claude or ChatGPT). Null when it was refused before authentication. Possible values: `api_key`, `session`, `oauth`. - `api_key` (object or null): The key used, when one was. - `id` (string): Unique identifier of the api key, prefixed with `key_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `api_key`. - `name` (string): The key's label, or "Deleted key" when it no longer exists. - `ip` (string or null): IP address the request came from: the first address in `X-Forwarded-For`, or the connecting address when that header is absent. Null when neither could be read. - `user_agent` (string or null): The `User-Agent` header sent. Null when there was none. - `idempotency_key` (string or null): The `Idempotency-Key` header sent, if any. - `error_code` (string or null): The `code` of an error answer; null on success. - `request_bytes` (integer): Size of the request body in bytes, as received (chunked bodies included). 0 when there was none. Range at least 0. - `response_bytes` (integer): Size of the response body in bytes. 0 when there was none. Range at least 0. - `created_at` (timestamp): When the request arrived. - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: A page of requests. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/api-requests" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "req_7Kq2Xb9LmN4pR8sT1vW3yZ5a", "object": "api_request", "method": "POST", "route": "/v2/quotes", "path": "/v2/quotes", "status_code": 201, "duration_ms": 184, "credential": "api_key", "api_key": { "id": "key_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "api_key", "name": "Production server" }, "ip": "203.0.113.7", "user_agent": "node-fetch/1.0", "idempotency_key": "0f8c2d1e-5a6b-4c3d-9e8f-1a2b3c4d5e6f", "error_code": null, "request_bytes": 96, "response_bytes": 512, "created_at": "2026-10-21T14:02:11Z" } ], "has_more": false, "next_cursor": null } ``` ### Get an API request GET `/v2/api-requests/{id}` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `get_api_request` Returns one logged request with the bodies sent and answered (credentials, secrets and buyer personal data removed), the webhook events it caused and every delivery attempt to your endpoints. Integrators only, and only with a signed-in dashboard session (`credential_not_allowed` with an API key). #### Path parameters - `id` (string, required): Unique identifier of the request, prefixed with `req_`. Every response carries it in the `Request-Id` header, and error bodies in `details.request_id`. #### Returns 200 OK The request. Returns [the api request detail object](https://public-api.dapi.digital/docs/reference/logs.md#api_request_detail_object). #### Responses - `200`: The request. - `400`: The request is invalid. `details.errors` lists each problem (`validation_failed`), or an `expand[]` path is unknown (`invalid_expand`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no logged request with this id (`api_request_not_found`). Requests are kept for 30 days. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/api-requests/req_7Kq2Xb9LmN4pR8sT1vW3yZ5a" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/logs. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## API keys Keys for calling the API from your servers. Integrators manage them here. ### Endpoints - [GET `/v2/api-keys`](https://public-api.dapi.digital/docs/reference/api-keys.md#list_api_keys) - [POST `/v2/api-keys`](https://public-api.dapi.digital/docs/reference/api-keys.md#create_api_key) - [DELETE `/v2/api-keys/{id}`](https://public-api.dapi.digital/docs/reference/api-keys.md#revoke_api_key) ### The api key object A secret key for calling the API from your servers, sent in the `x-api-key` header. Its secret is shown once, when it is created. #### Attributes - `id` (string): Unique identifier of the api key, prefixed with `key_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `api_key`. - `name` (string): Your label for the key, for example where it is used. - `preview` (string): The first characters of the key, to recognise it. Never enough to authenticate with. - `scopes` (array of string): What the key may do. Integrator keys carry `quotes:read`, `quotes:write`, `orders:read`, `orders:write`, `orders:read_customer`, `extras:read`, `extras:write`, `wallet:read`, `webhooks:read`. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `last_used_at` (timestamp or null): When the key last authenticated a request, to the minute. Null if it was never used. **The api key object** ```json null ``` ### List API keys GET `/v2/api-keys` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `list_api_keys` Lists your active API keys, newest first, without their secrets. Revoked keys are not listed. Integrators only, and only with a signed-in dashboard session: an API key cannot manage keys (`credential_not_allowed`). #### Returns 200 OK Your active keys, all on one page. Response attributes (ApiKeyList): - `object` (string): Names the type of this object. Always `list`. - `data` (array of ApiKey): The page of results. Described in [the api key object](https://public-api.dapi.digital/docs/reference/api-keys.md#api_key_object). - `has_more` (boolean): True when more results exist after this page. Fetch them by passing `next_cursor` as `cursor`. - `next_cursor` (string or null): Opaque cursor for the next page, or null on the last page. Pass it back unchanged as `cursor`. #### Responses - `200`: Your active keys, all on one page. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/api-keys" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "object": "list", "data": [ { "id": "key_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "api_key", "name": "Production server", "preview": "sk_3f9a1c2b7...", "scopes": [ "quotes:read", "quotes:write" ], "created_at": "2026-10-20T09:30:00Z", "last_used_at": null } ], "has_more": false, "next_cursor": null } ``` ### Create an API key POST `/v2/api-keys` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `create_api_key` Creates a secret key for calling the API from your servers. The response is the only time the full key (`secret`) is shown; store it securely. Keys work before your account is approved, with the same onboarding limits as the dashboard. Up to 10 active keys per account; revoke one to make room. Integrators only, and only with a signed-in dashboard session: an API key cannot manage keys (`credential_not_allowed`). #### Request body - `name` (string, required): A label for the key, 1 to 50 characters. - `scopes` (array of string, required): What the key may do. Allowed for integrators: `quotes:read`, `quotes:write`, `orders:read`, `orders:write`, `orders:read_customer`, `extras:read`, `extras:write`, `wallet:read`, `webhooks:read`. #### Returns 201 Created The key, with its secret shown once. Response attributes (CreatedApiKey): - `id` (string): Unique identifier of the api key, prefixed with `key_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `api_key`. - `name` (string): Your label for the key, for example where it is used. - `preview` (string): The first characters of the key, to recognise it. Never enough to authenticate with. - `scopes` (array of string): What the key may do. Integrator keys carry `quotes:read`, `quotes:write`, `orders:read`, `orders:write`, `orders:read_customer`, `extras:read`, `extras:write`, `wallet:read`, `webhooks:read`. - `created_at` (timestamp): Point in time, ISO 8601 in UTC. - `last_used_at` (timestamp or null): When the key last authenticated a request, to the minute. Null if it was never used. - `secret` (string): The full key. Shown only in this response: store it securely now, it cannot be retrieved later. If it is lost, revoke the key and create a new one. #### Responses - `201`: The key, with its secret shown once. - `400`: The request is invalid (`validation_failed`). - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: Called with an API key instead of a session (`credential_not_allowed`), or not an integrator account (`actor_not_allowed`). - `409`: You already have 10 active keys (`key_limit_reached`). Revoke one first. - `422`: A scope is unknown or not allowed for your account (`scope_not_allowed`, `details.scopes`). Allowed: `quotes:read`, `quotes:write`, `orders:read`, `orders:write`, `orders:read_customer`, `extras:read`, `extras:write`, `wallet:read`, `webhooks:read`. - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v2/api-keys" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Production server", "scopes": [ "quotes:read", "quotes:write" ] }' ``` **Response 201** ```json { "id": "key_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "api_key", "name": "Production server", "preview": "sk_3f9a1c2b7...", "scopes": [ "quotes:read", "quotes:write" ], "created_at": "2026-10-20T09:30:00Z", "last_used_at": null, "secret": "sk_3f9a1c2b7d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e41" } ``` ### Revoke an API key DELETE `/v2/api-keys/{id}` - **Credentials**: A signed-in dashboard session only; API keys are refused. - **For**: Integrators - **Operation id**: `revoke_api_key` Revokes a key at once: the next request made with it is refused with `invalid_api_key`. This cannot be undone. Integrators only, and only with a signed-in dashboard session: an API key cannot manage keys (`credential_not_allowed`). #### Path parameters - `id` (string, required): Unique identifier of the api key, prefixed with `key_`. Treat it as an opaque string: store it and compare it, never parse it. #### Returns 200 OK The key was revoked. Response attributes (ApiKeyDeleted): - `id` (string): Unique identifier of the api key, prefixed with `key_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `api_key`. - `deleted` (boolean): Always true: the key is revoked and every request made with it is refused. #### Responses - `200`: The key was revoked. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The credentials are valid but not allowed to do this: a scope is missing (`missing_scope`), the endpoint is for another kind of account (`actor_not_allowed`) or another kind of credential (`credential_not_allowed`), the account may no longer use the API (`account_blacklisted`), or the account must change something first, in which case `details.fix_url` links to the dashboard page that fixes it. - `404`: You have no active key with this id (`api_key_not_found`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v2/api-keys/key_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "id": "key_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "api_key", "deleted": true } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/api-keys. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Identity Who the credentials belong to. ### Endpoints - [GET `/v2/me`](https://public-api.dapi.digital/docs/reference/identity.md#get_me) ### The actor object Who the current credentials belong to. #### Attributes - `object` (string): Names the type of this object. Always `actor`. - `user_id` (string): Id of the account the credentials belong to. - `kind` (string): - `designer`: a seller on 3DAPI, using the API for their own store. - `integrator`: a company building on the API through the API dashboard. - `authenticated_with` (string): `api_key` for the `x-api-key` header, `session` for a signed-in API dashboard user, `oauth` for an app the user connected and approved, such as Claude or ChatGPT. - `scopes` (array of string or null): The scopes stored on the API key, as chosen when it was created: per-resource scopes such as `products:read`, or a legacy permission (`full`, `order` or `pricing`). For a connected app, the scopes the user approved. See `effective_scopes` for what they allow. Null for sessions, which are not scoped. Possible values: `pricing`, `order`, `full`, `products:read`, `products:write`, `orders:read`, `orders:write`, `orders:read_customer`, `stocks:read`, `stocks:write`, `extras:read`, `extras:write`, `qc:read`, `qc:write`, `wallet:read`, `webhooks:read`, `quotes:read`, `quotes:write`. - `effective_scopes` (array of string or null): What the API key may actually do, as the per-resource scopes operations list in `x-required-scopes`: `scopes` with legacy permissions expanded. `full` gives every scope (customer data included), `order` gives `orders:read` and `orders:write`, `pricing` gives none in this API. Null for sessions, which are not scoped. Possible values: `products:read`, `products:write`, `orders:read`, `orders:write`, `orders:read_customer`, `stocks:read`, `stocks:write`, `extras:read`, `extras:write`, `qc:read`, `qc:write`, `wallet:read`, `webhooks:read`, `quotes:read`, `quotes:write`. - `approval` (string or null): Integrators only, null for designers. A `pending` integrator can explore the API; going live needs `approved`. Possible values: `pending`, `approved`, `rejected`. **The actor object** ```json { "object": "actor", "user_id": "44444444-4444-4444-8444-444444444444", "kind": "designer", "authenticated_with": "api_key", "scopes": [ "order" ], "effective_scopes": [ "orders:read", "orders:write" ], "approval": null } ``` ### Identify the current credentials GET `/v2/me` - **Credentials**: Any valid API key. A signed-in dashboard session works too. - **For**: Designers and Integrators - **Operation id**: `get_me` Returns who the credentials belong to and what they may do. Call it first to check that an API key works and which scopes it carries. #### Returns 200 OK The credentials are valid. Returns [the actor object](https://public-api.dapi.digital/docs/reference/identity.md#me_object). #### Responses - `200`: The credentials are valid. - `401`: Credentials are missing (`missing_credentials`), the API key is unknown or inactive (`invalid_api_key`), the session expired (`invalid_session`), or both a key and a session were sent (`ambiguous_credentials`). - `403`: The account may no longer use the API (`account_blacklisted`). - `429`: Too many requests (`rate_limited`): the limit is 500 per minute per API key (or signed-in user). Wait for the number of seconds in the `Retry-After` header, then retry; `details` has `limit`, `window_seconds`, `reset_at` and `retry_after_seconds`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/me" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/identity. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Health Service status. ### Endpoints - [GET `/v2/health`](https://public-api.dapi.digital/docs/reference/health.md#get_health) ### The health object Service health report. #### Attributes - `status` (string): `ok` when every dependency is reachable, `degraded` otherwise. - `database` (string): Whether the database answered. Possible values: `up`, `down`. - `checked_at` (timestamp): When the check ran. **The health object** ```json { "status": "ok", "database": "up", "checked_at": "2026-10-14T09:30:00Z" } ``` ### Check service health GET `/v2/health` Public: no API key needed. - **Credentials**: None: the endpoint is public. - **For**: Designers and Integrators - **Operation id**: `get_health` Reports whether the API and its database are up. Needs no credentials. Use it for uptime monitoring, not for business logic. #### Returns 200 OK Everything is reachable. Returns [the health object](https://public-api.dapi.digital/docs/reference/health.md#health_object). #### Responses - `200`: Everything is reachable. - `503`: A dependency is down; `status` is `degraded`. Errors use [the error object](https://public-api.dapi.digital/docs/guides/errors.md#error-object). **Request** ```bash curl "https://public-api.dapi.digital/v2/health" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/health. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Orders Orders allocated to your farm, and moving them through their production statuses. ### Endpoints - [GET `/v1/print-farm/orders`](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#listPrintFarmOrders) - [GET `/v1/print-farm/orders/{orderId}`](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#getPrintFarmOrder) - [PATCH `/v1/print-farm/orders/{orderId}/status`](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#updatePrintFarmOrderStatus) ### The order object #### Attributes - `order_id` (string): Unique identifier for this order. - `status` (string): Current lifecycle stage of the order. - `designerName` (string): Name of the designer who created the ordered design. - `customer` (value): Recipient contact and shipping address details. - `extras` (value): Production requirements flagged for this order. - `tracking_number` (object, optional): Carrier tracking number, once the order has shipped. - `courier` (object, optional): Name of the shipping carrier, populated alongside the tracking number. - `external_order_id` (object, optional): Identifier of the order in an external system, when imported. - `items` (array of PrintFarmOrderItemDto): Line items that make up this order. - `skuId` (string): Public identifier of the SKU (variant) for this line item (`sku_…`). - `quantity` (number): Number of units ordered for this SKU. - `sku` (value, optional): Present when `expand=items.sku` is requested. Inlines the SKU referenced by `skuId`. - `customLabels` (array of PrintFarmOrderCustomLabelDto): Custom labels set by the seller, one entry per distinct product (listing) in this order that has a custom label. Print farms must print each label and include it with the corresponding product in the shipment. Empty when no product in the order has a custom label. - `productName` (string): Name of the product (listing) this custom label belongs to. - `url` (string): Public URL of the custom label. May be an image or a PDF. - `created_at` (timestamp): ISO 8601 timestamp of when this order was created. - `allocated_at` (object, optional): ISO 8601 timestamp of when this order was allocated to your print farm. The ship-by deadline is conventionally 5 days after this date. Null until the order is allocated. **The order object** ```json { "order_id": "AP7K2M9X", "status": "allocated", "designerName": "Jane Smith", "customer": null, "extras": null, "tracking_number": "1Z999AA10123456784", "courier": "ups", "external_order_id": "EXT-10492", "items": [ { "skuId": "sku_aB3xKp9wFqZ7vM2nLpHt12cN8jR3sLkPm", "quantity": 2, "sku": null } ], "customLabels": [ { "productName": "Dragon Figurine", "url": "https://cdn.dapi.digital/labels/dragon-figurine.pdf" } ], "created_at": "2026-03-24T12:00:00.000Z", "allocated_at": "2026-03-25T08:30:00.000Z" } ``` ### List orders allocated to your print farm GET `/v1/print-farm/orders` - **Credentials**: An API key with the `READ_ORDERS` or `FULL` permission. - **For**: Print farms - **Operation id**: `listPrintFarmOrders` Returns a paginated list of orders allocated to your print farm, sorted by creation date (newest first). Results can be narrowed with the `status`, `email`, `phone`, `designerName`, and `courier` filters. Requires an API key with the `READ_ORDERS` (or `FULL`) permission scope. #### Query parameters - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. - `status` (string): Filter by order status. Accepts a comma-separated list to match any of several statuses. - `email` (string): Filter by customer email (case-insensitive partial match). - `phone` (string): Filter by customer phone number (case-insensitive partial match). - `designerName` (string): Filter by designer name (case-insensitive partial match). - `courier` (string): Filter by shipping carrier (case-insensitive partial match). - `created_after` (string): Return only orders created on or after this ISO 8601 timestamp. - `created_before` (string): Return only orders created on or before this ISO 8601 timestamp. - `allocated_after` (string): Return only orders allocated on or after this ISO 8601 timestamp. - `allocated_before` (string): Return only orders allocated on or before this ISO 8601 timestamp. - `expand` (string): Comma-separated list of related resources to inline in the response. Allowed paths: `items.sku`, `items.sku.designs`, `items.sku.extras`, `items.sku.materials`. Requesting a child path automatically enables its parent. #### Returns 200 OK Paginated list of orders allocated to the authenticated print farm. Response attributes (ListPrintFarmOrdersResponseDto): - `orders` (array of PrintFarmOrderResponseDto): Orders on this page, sorted by creation date (newest first). Described in [the order object](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#farm_order_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of orders across all pages (after filters are applied). Range at least 0. #### Responses - `200`: Paginated list of orders allocated to the authenticated print farm. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/orders" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "orders": [ { "order_id": "AP7K2M9X", "status": "allocated", "designerName": "Jane Smith", "customer": null, "extras": null, "tracking_number": "1Z999AA10123456784", "courier": "ups", "external_order_id": "EXT-10492", "items": [ { "skuId": "sku_aB3xKp9wFqZ7vM2nLpHt12cN8jR3sLkPm", "quantity": 2, "sku": null } ], "customLabels": [ { "productName": "Dragon Figurine", "url": "https://cdn.dapi.digital/labels/dragon-figurine.pdf" } ], "created_at": "2026-03-24T12:00:00.000Z", "allocated_at": "2026-03-25T08:30:00.000Z" } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Get one order allocated to your print farm GET `/v1/print-farm/orders/{orderId}` - **Credentials**: An API key with the `READ_ORDERS` or `FULL` permission. - **For**: Print farms - **Operation id**: `getPrintFarmOrder` Returns the order matching the given `orderId`, scoped to your print farm. Requires an API key with the `READ_ORDERS` (or `FULL`) permission scope. #### Path parameters - `orderId` (string, required): The unique order identifier. #### Query parameters - `expand` (string): Comma-separated list of related resources to inline in the response. Allowed paths: `items.sku`, `items.sku.designs`, `items.sku.extras`, `items.sku.materials`. Requesting a child path automatically enables its parent. #### Returns 200 OK The requested order. Returns [the order object](https://public-api.dapi.digital/docs/reference/print-farm-orders.md#farm_order_object). #### Responses - `200`: The requested order. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No order with this `orderId` is allocated to your print farm. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/orders/AP7K2M9X" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Transition an order to a new status PATCH `/v1/print-farm/orders/{orderId}/status` - **Credentials**: An API key with the `WRITE_ORDERS` or `FULL` permission. - **For**: Print farms - **Operation id**: `updatePrintFarmOrderStatus` Moves an order belonging to your print farm to a new status. The print-farm transition matrix is intentionally tighter than the admin surface - only specific transitions are accepted, and any other change returns `400`. Currently supported: - `paid → in_production` - `in_production → shipping` - requires `tracking_number` and `courier`. Pass `courier` as a code from `GET /print-farm/courier-options` (e.g. `ups`). For carriers not in the catalog, use `courier: "other"` together with `courier_name`; the order will be flagged for manual ShipStation sync. - `shipping → returned` and `completed → returned` - no body fields beyond `status`. Triggers an internal admin notification; the customer is NOT emailed and no webhook is delivered. Same-status requests are a no-op. Side effects (designer webhook delivery, customer status email, ShipStation mark-shipped on `shipping`, admin manual-sync alert when applicable, returned-order admin notification) fire after the DB update and never fail the request - check your webhook + email logs to verify. Requires an API key with the `WRITE_ORDERS` (or `FULL`) permission scope. #### Path parameters - `orderId` (string, required): The unique order identifier. #### Request body Status transition request body. - `status` (string, required): New order status. `in_production` is allowed from `paid`; `shipping` is allowed from `in_production` (requires `tracking_number` + `courier`); `returned` is allowed from `shipping` or `completed` (no body fields required). - `tracking_number` (string): Shipping tracking number. Required when `status === "shipping"`. Persisted on the order and forwarded to the customer email + designer webhook. - `courier` (string): Carrier code from `GET /print-farm/courier-options` (e.g. `ups`, `fedex`). Required when `status === "shipping"`. When `courier === "other"`, also provide `courier_name` and we will flag the order for manual sync (we cannot push it to ShipStation automatically). - `courier_name` (string): Human-readable carrier name. Required when `courier === "other"`. Stored on the order as the courier value (since no machine code exists). #### Returns 200 OK Status updated (or unchanged if the request was a no-op). Response attributes (UpdatePrintFarmOrderStatusResponseDto): - `status` (string): The newly persisted order status. #### Responses - `200`: Status updated (or unchanged if the request was a no-op). - `400`: Body validation failed, or the requested transition is not allowed from the order's current status. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No order with this `orderId` is allocated to your print farm. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v1/print-farm/orders/AP7K2M9X/status" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "status": "shipping", "tracking_number": "1Z999AA10123456784", "courier": "ups", "courier_name": "Local Courier Ltd" }' ``` **Response 200** ```json { "status": "in_production" } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/print-farm-orders. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## SKUs Products in your allocated orders or in stocks you hold, with their designs, extras and stock. ### Endpoints - [GET `/v1/print-farm/skus`](https://public-api.dapi.digital/docs/reference/print-farm-skus.md#listPrintFarmSkus) - [GET `/v1/print-farm/skus/{id}`](https://public-api.dapi.digital/docs/reference/print-farm-skus.md#getPrintFarmSku) ### The SKU object #### Attributes - `id` (string): Opaque public identifier for this SKU (`sku_` prefix + 33 base62 chars). Use this value verbatim when referencing the SKU in other endpoints. - `name` (object, optional): Human-readable name of the SKU. - `status` (string): Lifecycle status of the SKU. Possible values: `active`, `inactive`, `deleted`. - `code` (string): Designer-defined code, unique within the designer. - `description` (object, optional): Free-text description of the SKU. - `designs` (array of PrintFarmSkuDesignDto): Designs that make up this SKU. - `count` (number): Number of copies of this design included in the SKU. - `design_id` (string): Public identifier of the design (`dsg_…`). - `materials` (array of PrintFarmSkuDesignMaterialDto): Materials specified for this design. - `type` (string): Either `default` (references a catalog material) or `custom` (designer-named). - `material_id` (object, optional): Public material identifier (`mat_…`) when `type` is `default`. Null for custom materials. - `name` (object, optional): Material name when `type` is `custom`. - `stocks` (array of PrintFarmSkuStockDto): Stocks this SKU participates in. - `id` (string): Public identifier of the stock this SKU is part of (`stk_…`). - `enabled` (boolean): Whether this SKU is currently enabled in the stock. - `extras` (array of PrintFarmSkuExtraDto): Extras attached to this SKU. - `id` (string): Public identifier of the extra (`xtr_…`). - `qty` (number): Quantity of this extra included. - `customLabelUrl` (object, optional): Public URL of the custom label set on the owning product (listing) for this SKU. May be an image or a PDF. Null when the product has no custom label. **The SKU object** ```json { "id": "sku_aB3xKp9wFqZ7vM2nLpHt12cN8jR3sLkPm", "name": "Dragon Figurine - Red PLA", "status": "active", "code": "DRAGON-RED-PLA", "description": "Red PLA dragon figurine, 100mm tall.", "designs": [ { "count": 1, "design_id": "dsg_kP4xT8aBnLf2sH9eY3jZ5dM7cR1vQbWtJ", "materials": [ { "type": "default", "material_id": "mat_jR6tN9pXq4sL8mB3dK7vH2cF5wYzA1ePsK", "name": "Transparent Red PLA" } ] } ], "stocks": [ { "id": "stk_fL3sB8eYzKnQ7mX2dC9vR4tH6jW1uPbAcN", "enabled": true } ], "extras": [ { "id": "xtr_mW2yH7cVjPq8rT5dN3kFx9eL4bA1uZcRh", "qty": 1 } ], "customLabelUrl": "https://cdn.dapi.digital/labels/dragon-figurine.pdf" } ``` ### List SKUs visible to your print farm GET `/v1/print-farm/skus` - **Credentials**: An API key with the `SKU` or `FULL` permission. - **For**: Print farms - **Operation id**: `listPrintFarmSkus` Returns a paginated list of SKUs visible to your print farm. A SKU is visible if it appears in an order allocated to your farm, or if its `stock_list` references a stock you hold inventory for. Requires an API key with the `SKU` (or `FULL`) permission scope. #### Query parameters - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. - `id` (string): Filter by SKU id. Accepts a comma-separated list of UUIDs to match any. - `status` (string): Filter by SKU status. Accepts a comma-separated list (active, inactive, deleted). - `code` (string): Filter by SKU code (case-insensitive partial match). #### Returns 200 OK Paginated list of SKUs visible to the authenticated print farm. Response attributes (ListPrintFarmSkusResponseDto): - `skus` (array of PrintFarmSkuResponseDto): SKUs on this page, sorted by creation date (newest first). Described in [the SKU object](https://public-api.dapi.digital/docs/reference/print-farm-skus.md#farm_sku_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of SKUs across all pages (after filters are applied). Range at least 0. #### Responses - `200`: Paginated list of SKUs visible to the authenticated print farm. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/skus" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "skus": [ { "id": "sku_aB3xKp9wFqZ7vM2nLpHt12cN8jR3sLkPm", "name": "Dragon Figurine - Red PLA", "status": "active", "code": "DRAGON-RED-PLA", "description": "Red PLA dragon figurine, 100mm tall.", "designs": [ { "count": 1, "design_id": "dsg_kP4xT8aBnLf2sH9eY3jZ5dM7cR1vQbWtJ", "materials": [ null ] } ], "stocks": [ { "id": "stk_fL3sB8eYzKnQ7mX2dC9vR4tH6jW1uPbAcN", "enabled": true } ], "extras": [ { "id": "xtr_mW2yH7cVjPq8rT5dN3kFx9eL4bA1uZcRh", "qty": 1 } ], "customLabelUrl": "https://cdn.dapi.digital/labels/dragon-figurine.pdf" } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Get one SKU visible to your print farm GET `/v1/print-farm/skus/{id}` - **Credentials**: An API key with the `SKU` or `FULL` permission. - **For**: Print farms - **Operation id**: `getPrintFarmSku` Returns the SKU matching the given `id`, only if it is visible to your print farm (via an allocated order or held stock). Requires an API key with the `SKU` (or `FULL`) permission scope. #### Path parameters - `id` (string, required): The public SKU identifier (`sku_…`) returned by the list endpoint. #### Returns 200 OK The requested SKU. Returns [the SKU object](https://public-api.dapi.digital/docs/reference/print-farm-skus.md#farm_sku_object). #### Responses - `200`: The requested SKU. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No SKU with this `id` is visible to your print farm. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/skus/sku_aB3xKp9wFqZ7vM2nLpHt12cN8jR3sLkPm" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/print-farm-skus. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Designs Approved print files your SKUs use, with short-lived download links. ### Endpoints - [GET `/v1/print-farm/designs`](https://public-api.dapi.digital/docs/reference/print-farm-designs.md#listPrintFarmDesigns) - [GET `/v1/print-farm/designs/{id}`](https://public-api.dapi.digital/docs/reference/print-farm-designs.md#getPrintFarmDesign) ### The design object #### Attributes - `id` (string): Opaque public identifier for this design (`dsg_` prefix + 33 base62 chars). Use this value verbatim when referencing the design in other endpoints. - `name` (string): Display name of the design. - `description` (object, optional): Free-text description of the design. - `color_number` (object, optional): Number of distinct colours the design uses. - `extra_parts` (object, optional): Free-text description of any non-printed parts needed. - `extra_parts_config` (object, optional): Structured configuration of the extra parts (e.g. quantities, images). Returned verbatim from storage. - `required_filament` (boolean): Whether the design requires a specific filament (see `materials_config` for the allowed set). - `ams_required` (boolean): Whether the design requires an Automatic Material System (AMS). - `assembly` (boolean): Whether the design requires post-print assembly. - `farm_instructions` (object, optional): Print-farm-facing instructions for producing the design. - `materials_config` (object, optional): Material configuration for the design. Shape: `{ mode, allowed_materials, saved_combinations? }`. Returned verbatim from storage. - `hours_multiplier` (object, optional): Multiplier applied to baseline print time when estimating production hours, as a numeric string. - `grams_multiplier` (object, optional): Multiplier applied to baseline filament usage when estimating grams, as a numeric string. - `post_processing_multiplier` (object, optional): Multiplier applied to baseline post-processing time, as a numeric string. - `design_files` (array of PrintFarmDesignFileDto): All model files for this design (STL/3MF/etc.), each with a short-lived presigned download URL. Sorted by upload date (newest first). - `id` (string): Opaque public identifier for the file (`dfl_` prefix + 33 base62 chars). No endpoint currently consumes this id - it is provided for client-side tracking. - `file_name` (string): Original file name. - `file_type` (string): MIME type of the file. - `size` (object, optional): File size in bytes, if known. - `download_url` (string): Presigned GET URL for downloading the file. - `url_expires_at` (string): ISO 8601 timestamp at which `download_url` expires. Re-fetch the parent resource after this time to obtain a fresh URL. - `extra_files` (array of PrintFarmDesignFileDto): Supporting files attached to this design (PDFs, manuals, spec sheets). Each entry includes a presigned download URL. Empty when no extras are uploaded. Same shape as `PrintFarmDesignFileDto` above. **The design object** ```json { "id": "dsg_kP4xT8aBnLf2sH9eY3jZ5dM7cR1vQbWtJ", "name": "Dragon Figurine", "description": "Articulated dragon, 12cm tall.", "color_number": 1, "extra_parts": "Two M3 screws and one spring.", "extra_parts_config": {}, "required_filament": false, "ams_required": false, "assembly": false, "farm_instructions": "Print at 0.2mm layer height. Brim recommended.", "materials_config": { "mode": "single", "allowed_materials": [ { "name": "Polymaker Polyterra Cotton White", "type": "custom" } ] }, "hours_multiplier": "1.00", "grams_multiplier": "1.00", "post_processing_multiplier": "1.00", "design_files": [ { "id": "dfl_pL3xB9sK6mT2nH7yC1jZ4dR8vQ5wA9uXkF", "file_name": "dragon.3mf", "file_type": "model/3mf", "size": 524288, "download_url": "https://s3.amazonaws.com/...?X-Amz-Signature=...", "url_expires_at": "2025-05-20T15:30:00.000Z" } ], "extra_files": [ { "id": "dfl_pL3xB9sK6mT2nH7yC1jZ4dR8vQ5wA9uXkF", "file_name": "dragon.3mf", "file_type": "model/3mf", "size": 524288, "download_url": "https://s3.amazonaws.com/...?X-Amz-Signature=...", "url_expires_at": "2025-05-20T15:30:00.000Z" } ] } ``` ### List approved designs visible to your farm GET `/v1/print-farm/designs` - **Credentials**: An API key with the `SKU` or `FULL` permission. - **For**: Print farms - **Operation id**: `listPrintFarmDesigns` Returns a paginated list of approved designs reachable from your farm. A design is visible iff it is referenced by a SKU that appears in one of your allocated orders, or in a SKU whose stock is held at one of your farms. Each entry includes a short-lived presigned URL for downloading the design file. Requires an API key with the `SKU` (or `FULL`) permission scope. #### Query parameters - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. - `id` (array of string): Filter by design id. Accepts a comma-separated list of UUIDs. - `name` (string): Filter by design name (case-insensitive partial match). - `ams_required` (boolean): Filter to designs that require (true) or do not require (false) an AMS. - `assembly` (boolean): Filter to designs that require (true) or do not require (false) assembly. - `required_filament` (boolean): Filter to designs that require (true) or do not require (false) a specific filament. #### Returns 200 OK Paginated list of approved designs visible to the authenticated farm. Response attributes (ListPrintFarmDesignsResponseDto): - `designs` (array of PrintFarmDesignResponseDto): Approved designs on this page, sorted by creation date (newest first). Described in [the design object](https://public-api.dapi.digital/docs/reference/print-farm-designs.md#farm_design_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of approved designs across all pages. Range at least 0. #### Responses - `200`: Paginated list of approved designs visible to the authenticated farm. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/designs" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "designs": [ { "id": "dsg_kP4xT8aBnLf2sH9eY3jZ5dM7cR1vQbWtJ", "name": "Dragon Figurine", "description": "Articulated dragon, 12cm tall.", "color_number": 1, "extra_parts": "Two M3 screws and one spring.", "extra_parts_config": {}, "required_filament": false, "ams_required": false, "assembly": false, "farm_instructions": "Print at 0.2mm layer height. Brim recommended.", "materials_config": { "mode": "single", "allowed_materials": [ { "name": "Polymaker Polyterra Cotton White", "type": "custom" } ] }, "hours_multiplier": "1.00", "grams_multiplier": "1.00", "post_processing_multiplier": "1.00", "design_files": [ { "id": "dfl_pL3xB9sK6mT2nH7yC1jZ4dR8vQ5wA9uXkF", "file_name": "dragon.3mf", "file_type": "model/3mf", "size": 524288, "download_url": "https://s3.amazonaws.com/...?X-Amz-Signature=...", "url_expires_at": "2025-05-20T15:30:00.000Z" } ], "extra_files": [ { "id": "dfl_pL3xB9sK6mT2nH7yC1jZ4dR8vQ5wA9uXkF", "file_name": "dragon.3mf", "file_type": "model/3mf", "size": 524288, "download_url": "https://s3.amazonaws.com/...?X-Amz-Signature=...", "url_expires_at": "2025-05-20T15:30:00.000Z" } ] } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Get one approved design visible to your farm GET `/v1/print-farm/designs/{id}` - **Credentials**: An API key with the `SKU` or `FULL` permission. - **For**: Print farms - **Operation id**: `getPrintFarmDesign` Returns the approved design matching the given `id`, scoped to designs reachable from your farm via the SKU graph (orders ∪ stock\_levels), with a short-lived presigned URL for downloading the design file. Requires an API key with the `SKU` (or `FULL`) permission scope. #### Path parameters - `id` (string, required): The public design identifier (`dsg_…`) returned by the list endpoint. #### Returns 200 OK The requested design. Returns [the design object](https://public-api.dapi.digital/docs/reference/print-farm-designs.md#farm_design_object). #### Responses - `200`: The requested design. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No approved design with this `id` is visible to your farm (it may exist in the catalog but isn't reachable via any of your orders or stock\_levels). - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/designs/dsg_kP4xT8aBnLf2sH9eY3jZ5dM7cR1vQbWtJ" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/print-farm-designs. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Extras Approved bought-in parts that your SKUs ship with. ### Endpoints - [GET `/v1/print-farm/extras`](https://public-api.dapi.digital/docs/reference/print-farm-extras.md#listPrintFarmExtras) - [GET `/v1/print-farm/extras/{id}`](https://public-api.dapi.digital/docs/reference/print-farm-extras.md#getPrintFarmExtra) ### The extra object #### Attributes - `id` (string): Opaque public identifier for this extra (`xtr_` prefix + 33 base62 chars). Use this value verbatim when referencing the extra in other endpoints. - `name` (string): Display name of the extra. - `purchase_links` (array of string): List of URLs where the extra can be purchased. - `description` (object, optional): Free-text description of the extra. - `price` (object, optional): Unit price in USD, as a string to preserve precision. **The extra object** ```json { "id": "xtr_mW2yH7cVjPq8rT5dN3kFx9eL4bA1uZcRh", "name": "M3 screws (set of 4)", "purchase_links": [ "https://example.com/m3-screws" ], "description": "Pack of four M3×10mm steel screws.", "price": "1.50" } ``` ### List approved extras visible to your farm GET `/v1/print-farm/extras` - **Credentials**: An API key with the `SKU` or `FULL` permission. - **For**: Print farms - **Operation id**: `listPrintFarmExtras` Returns a paginated list of approved extras reachable from your farm. An extra is visible iff it is referenced in `extra_list` of a SKU that appears in one of your allocated orders, or in a SKU whose stock is held at one of your farms. Extras outside that chain are not returned. Requires an API key with the `SKU` (or `FULL`) permission scope. #### Query parameters - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. - `id` (array of string): Filter by extra id. Accepts a comma-separated list of UUIDs. - `name` (string): Filter by extra name (case-insensitive partial match). #### Returns 200 OK Paginated list of approved extras visible to the authenticated farm. Response attributes (ListPrintFarmExtrasResponseDto): - `extras` (array of PrintFarmExtraResponseDto): Approved extras on this page, sorted by creation date (newest first). Described in [the extra object](https://public-api.dapi.digital/docs/reference/print-farm-extras.md#farm_extra_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of approved extras across all pages. Range at least 0. #### Responses - `200`: Paginated list of approved extras visible to the authenticated farm. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/extras" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "extras": [ { "id": "xtr_mW2yH7cVjPq8rT5dN3kFx9eL4bA1uZcRh", "name": "M3 screws (set of 4)", "purchase_links": [ "https://example.com/m3-screws" ], "description": "Pack of four M3×10mm steel screws.", "price": "1.50" } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Get one approved extra visible to your farm GET `/v1/print-farm/extras/{id}` - **Credentials**: An API key with the `SKU` or `FULL` permission. - **For**: Print farms - **Operation id**: `getPrintFarmExtra` Returns the approved extra matching the given `id`, scoped to extras reachable from your farm via the SKU graph (orders ∪ stock\_levels). Requires an API key with the `SKU` (or `FULL`) permission scope. #### Path parameters - `id` (string, required): The public extra identifier (`xtr_…`) returned by the list endpoint. #### Returns 200 OK The requested extra. Returns [the extra object](https://public-api.dapi.digital/docs/reference/print-farm-extras.md#farm_extra_object). #### Responses - `200`: The requested extra. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No approved extra with this `id` is visible to your farm (it may exist in the catalog but isn't reachable via any of your orders or stock\_levels). - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/extras/xtr_mW2yH7cVjPq8rT5dN3kFx9eL4bA1uZcRh" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/print-farm-extras. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Materials Materials your SKUs' designs are printed in. ### Endpoints - [GET `/v1/print-farm/materials`](https://public-api.dapi.digital/docs/reference/print-farm-materials.md#listPrintFarmMaterials) - [GET `/v1/print-farm/materials/{id}`](https://public-api.dapi.digital/docs/reference/print-farm-materials.md#getPrintFarmMaterial) ### The material object #### Attributes - `id` (string): Opaque public identifier for this material (`mat_` prefix + 33 base62 chars). Use this value verbatim when referencing the material in other endpoints. - `name` (string): Display name of the material. - `type` (string): Filament family (e.g. PLA, PETG, ABS). - `color` (object, optional): Optional colour hint, free-text or hex. **The material object** ```json { "id": "mat_jR6tN9pXq4sL8mB3dK7vH2cF5wYzA1ePsK", "name": "Polymaker Polyterra Cotton White", "type": "PLA", "color": "#FFFFFF" } ``` ### List materials visible to your farm GET `/v1/print-farm/materials` - **Credentials**: An API key with the `SKU` or `FULL` permission. - **For**: Print farms - **Operation id**: `listPrintFarmMaterials` Returns a paginated list of materials reachable from your farm, sorted by name. A material is visible iff it is referenced as a `default`\-type entry in `skus.design_list[].materials[]` of a SKU that appears in one of your allocated orders, or in a SKU whose stock is held at one of your farms. Materials outside that chain are not returned. Requires an API key with the `SKU` (or `FULL`) permission scope. #### Query parameters - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. - `id` (string): Filter by material id. Accepts a comma-separated list of UUIDs. - `name` (string): Filter by material name (case-insensitive partial match). - `type` (string): Filter by material type (case-insensitive partial match). #### Returns 200 OK Paginated list of materials visible to the authenticated farm. Response attributes (ListPrintFarmMaterialsResponseDto): - `materials` (array of PrintFarmMaterialResponseDto): Materials on this page, sorted by name (ascending). Described in [the material object](https://public-api.dapi.digital/docs/reference/print-farm-materials.md#farm_material_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of materials across all pages (after filters are applied). Range at least 0. #### Responses - `200`: Paginated list of materials visible to the authenticated farm. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/materials" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "materials": [ { "id": "mat_jR6tN9pXq4sL8mB3dK7vH2cF5wYzA1ePsK", "name": "Polymaker Polyterra Cotton White", "type": "PLA", "color": "#FFFFFF" } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Get one material visible to your farm GET `/v1/print-farm/materials/{id}` - **Credentials**: An API key with the `SKU` or `FULL` permission. - **For**: Print farms - **Operation id**: `getPrintFarmMaterial` Returns the material matching the given `id`, scoped to materials reachable from your farm via the SKU graph (orders ∪ stock\_levels). Requires an API key with the `SKU` (or `FULL`) permission scope. #### Path parameters - `id` (string, required): The public material identifier (`mat_…`) returned by the list endpoint. #### Returns 200 OK The requested material. Returns [the material object](https://public-api.dapi.digital/docs/reference/print-farm-materials.md#farm_material_object). #### Responses - `200`: The requested material. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No material with this `id` is visible to your farm (it may exist in the catalog but isn't referenced via any SKU reachable through your orders or stock\_levels). - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/materials/mat_jR6tN9pXq4sL8mB3dK7vH2cF5wYzA1ePsK" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/print-farm-materials. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Stock levels Stock batches ordered from your farm, and reporting the units you have printed. ### Endpoints - [GET `/v1/print-farm/stock-levels`](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#listPrintFarmStockLevels) - [GET `/v1/print-farm/stock-levels/{id}`](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#getPrintFarmStockLevel) - [PATCH `/v1/print-farm/stock-levels/{id}/items-made`](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#addPrintFarmStockLevelItemsMade) ### The stock level object #### Attributes - `id` (string): Opaque public identifier for this stock-level row (`slv_` prefix + 33 base62 chars). Use this value verbatim when referencing the row in other endpoints. - `stock_id` (string): Public identifier of the parent stock (`stk_…`). - `stock_items_left` (number): Number of products remaining in this stock level. - `quantity` (number): Number of stocks bought (`quantity_purchased`). E.g. 4 means 4 stock-level rows were created. - `created_at` (timestamp): ISO 8601 timestamp of when this stock level was created. - `status` (string): Lifecycle status of the stock level. Possible values: `pending`, `in_production`, `completed`, `consumed`. - `stock_items_purchased` (number): Total number of products bought across this stock level. If `quantity = 4` and each stock holds 12 items, `stock_items_purchased = 48`. - `order_id` (object, optional): Identifier of the order this stock level was created for. Null for proactive stock. - `items_made` (number): Number of products produced so far. - `items_consumed` (number): Number of products consumed/shipped so far. **The stock level object** ```json { "id": "slv_hG5dC2vKrPm8nT3sJ6yF1xL9bQ4wA7uZdF", "stock_id": "stk_fL3sB8eYzKnQ7mX2dC9vR4tH6jW1uPbAcN", "stock_items_left": 11, "quantity": 4, "created_at": "2026-03-24T12:00:00.000Z", "status": "pending", "stock_items_purchased": 48, "order_id": "ORD-001", "items_made": 0, "items_consumed": 0 } ``` ### List stock levels at your print farm GET `/v1/print-farm/stock-levels` - **Credentials**: An API key with the `READ_STOCK` or `FULL` permission. - **For**: Print farms - **Operation id**: `listPrintFarmStockLevels` Returns a paginated list of stock-level rows belonging to your print farm, sorted by creation date (newest first). Filter by `status`, `stock_id`, or `order_id`. Requires an API key with the `READ_STOCK` (or `FULL`) permission scope. #### Query parameters - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. - `status` (string): Filter by status. Accepts a comma-separated list (pending, in\_production, completed, consumed). - `stock_id` (string): Filter by parent stock public id (`stk_…`). Unknown or wrong-type values return an empty result rather than an error. - `order_id` (string): Filter by order id (exact match). #### Returns 200 OK Paginated list of stock levels belonging to the authenticated print farm. Response attributes (ListPrintFarmStockLevelsResponseDto): - `stock_levels` (array of PrintFarmStockLevelResponseDto): Stock levels on this page, sorted by creation date (newest first). Described in [the stock level object](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#farm_stock_level_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of stock levels across all pages (after filters are applied). Range at least 0. #### Responses - `200`: Paginated list of stock levels belonging to the authenticated print farm. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/stock-levels" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "stock_levels": [ { "id": "slv_hG5dC2vKrPm8nT3sJ6yF1xL9bQ4wA7uZdF", "stock_id": "stk_fL3sB8eYzKnQ7mX2dC9vR4tH6jW1uPbAcN", "stock_items_left": 11, "quantity": 4, "created_at": "2026-03-24T12:00:00.000Z", "status": "pending", "stock_items_purchased": 48, "order_id": "ORD-001", "items_made": 0, "items_consumed": 0 } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Get one stock level at your print farm GET `/v1/print-farm/stock-levels/{id}` - **Credentials**: An API key with the `READ_STOCK` or `FULL` permission. - **For**: Print farms - **Operation id**: `getPrintFarmStockLevel` Returns a single stock-level row by id, scoped to your print farm. Requires an API key with the `READ_STOCK` (or `FULL`) permission scope. #### Path parameters - `id` (string, required): The public stock-level identifier (`slv_…`) returned by the list endpoint. #### Returns 200 OK The requested stock level. Returns [the stock level object](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#farm_stock_level_object). #### Responses - `200`: The requested stock level. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No stock level with this `id` is allocated to your print farm. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/stock-levels/slv_hG5dC2vKrPm8nT3sJ6yF1xL9bQ4wA7uZdF" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Add items printed to a stock level PATCH `/v1/print-farm/stock-levels/{id}/items-made` - **Credentials**: An API key with the `WRITE_STOCK` or `FULL` permission. - **For**: Print farms - **Operation id**: `addPrintFarmStockLevelItemsMade` Increments `items_made` on a specific stock-level row by the given `quantity`. Transitions `pending → in_production` on the first non-zero increment, and `in_production → completed` when `items_made` reaches `stock_items_purchased` - completion also credits the farm wallet (one `payments` row, one `wallet.balance` bump) using `stock_level.manufacturer_price` as the payout amount. Pass an `Idempotency-Key` header (any opaque string up to 255 chars) to make retries safe: a second request with the same key + body returns the cached response without re-executing. Same key with a different body returns `422`; an in-flight retry returns `409`. Requires an API key with the `WRITE_STOCK` (or `FULL`) permission scope. #### Path parameters - `id` (string, required): The public stock-level identifier (`slv_…`). #### Headers - `Idempotency-Key` (string): Opaque caller-generated key (UUID recommended). When present, identical requests with the same key + body return the cached prior response without re-executing. Up to 255 characters. #### Request body Quantity to add to `items_made` for this stock level. - `quantity` (number, required): Number of items to add to this stock level's `items_made` count. Must be ≥ 1 and must not push the total above `stock_items_purchased`. Range 1 to 100000. #### Returns 200 OK The updated stock-level row. Returns [the stock level object](https://public-api.dapi.digital/docs/reference/print-farm-stock-levels.md#farm_stock_level_object). #### Responses - `200`: The updated stock-level row. - `400`: Body validation failed, or the requested `quantity` would push `items_made` past `stock_items_purchased`. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No stock level with this `id` is allocated to your print farm. - `409`: The stock level is `consumed`, was modified concurrently, or another request with the same `Idempotency-Key` is already in flight. - `422`: `Idempotency-Key` reuse with a different request body, or the key exceeded the maximum length (255 chars). - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v1/print-farm/stock-levels/slv_hG5dC2vKrPm8nT3sJ6yF1xL9bQ4wA7uZdF/items-made" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "quantity": 1 }' ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/print-farm-stock-levels. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Stocks Ready-made stock products with at least one batch at your farm. ### Endpoints - [GET `/v1/print-farm/stocks`](https://public-api.dapi.digital/docs/reference/print-farm-stocks.md#listPrintFarmStocks) - [GET `/v1/print-farm/stocks/{id}`](https://public-api.dapi.digital/docs/reference/print-farm-stocks.md#getPrintFarmStock) ### The stock object #### Attributes - `id` (string): Opaque public identifier for this stock (`stk_` prefix + 33 base62 chars). - `name` (string): Display name of the stock. - `description` (object, optional): Free-text description of the stock. - `stock_items_number` (number): Total number of stock items in this stock as defined by the designer. - `sales_price` (object, optional): Authoritative aggregate sales price for the stock (designer-set, admin-approved). - `approval_status` (string): Approval lifecycle status (e.g. pending, approved, rejected). - `design_list` (array of PrintFarmStockDesignRefDto): Designs included in this stock. - `design_id` (string): Public identifier of the design (`dsg_…`). - `count` (number): Number of copies of this design included per stock unit. - `region_config` (array of PrintFarmStockRegionConfigDto): Per-region configuration. Each entry exposes the manufacturer price for the region. - `region_id` (string): Opaque public identifier of the print-farm region (`reg_…`). Encode-only - no endpoint currently consumes this id. - `price` (object, optional): Manufacturer price for this stock in the given region. Authoritative per-region manufacturer price (the top-level `manufacturer_price` is deprecated). - `extra_parts_config` (object, optional): Free-form extra parts configuration as stored on the stock. - `created_at` (timestamp): ISO 8601 timestamp of when this stock was created. - `updated_at` (timestamp): ISO 8601 timestamp of when this stock was last updated. - `approved_at` (object, optional): ISO 8601 timestamp of when this stock was approved. Null when not yet approved. **The stock object** ```json { "id": "stk_fL3sB8eYzKnQ7mX2dC9vR4tH6jW1uPbAcN", "name": "Dragon Figurine Stock", "description": "Pre-printed dragon figurines, batch of 48.", "stock_items_number": 48, "sales_price": "20.00", "approval_status": "approved", "design_list": [ { "design_id": "dsg_kP4xT8aBnLf2sH9eY3jZ5dM7cR1vQbWtJ", "count": 1 } ], "region_config": [ { "region_id": "reg_dF8kP3xL6sV2nH9mT5cR1jY4bQ7wA9uZeM", "price": "12.50" } ], "extra_parts_config": {}, "created_at": "2026-03-24T12:00:00.000Z", "updated_at": "2026-04-02T15:30:00.000Z", "approved_at": "2026-03-25T08:30:00.000Z" } ``` ### List stocks visible to your print farm GET `/v1/print-farm/stocks` - **Credentials**: An API key with the `READ_STOCK` or `FULL` permission. - **For**: Print farms - **Operation id**: `listPrintFarmStocks` Returns a paginated list of stocks that have at least one `stock_level` row at one of your farms, sorted by creation date (newest first). Filter by `id`, `name`, or `approval_status`. Requires an API key with the `READ_STOCK` (or `FULL`) permission scope. #### Query parameters - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. - `id` (array of string): Filter by stock id. Accepts a comma-separated list of UUIDs. - `name` (string): Filter by stock name (case-insensitive partial match). - `approval_status` (string): Filter by approval status. Accepts a comma-separated list (e.g. `approved,pending`). #### Returns 200 OK Paginated list of stocks visible to the authenticated print farm. Response attributes (ListPrintFarmStocksResponseDto): - `stocks` (array of PrintFarmStockResponseDto): Stocks on this page, sorted by creation date (newest first). Described in [the stock object](https://public-api.dapi.digital/docs/reference/print-farm-stocks.md#farm_stock_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of stocks across all pages (after filters are applied). Range at least 0. #### Responses - `200`: Paginated list of stocks visible to the authenticated print farm. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/stocks" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "stocks": [ { "id": "stk_fL3sB8eYzKnQ7mX2dC9vR4tH6jW1uPbAcN", "name": "Dragon Figurine Stock", "description": "Pre-printed dragon figurines, batch of 48.", "stock_items_number": 48, "sales_price": "20.00", "approval_status": "approved", "design_list": [ { "design_id": "dsg_kP4xT8aBnLf2sH9eY3jZ5dM7cR1vQbWtJ", "count": 1 } ], "region_config": [ { "region_id": "reg_dF8kP3xL6sV2nH9mT5cR1jY4bQ7wA9uZeM", "price": "12.50" } ], "extra_parts_config": {}, "created_at": "2026-03-24T12:00:00.000Z", "updated_at": "2026-04-02T15:30:00.000Z", "approved_at": "2026-03-25T08:30:00.000Z" } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Get one stock visible to your print farm GET `/v1/print-farm/stocks/{id}` - **Credentials**: An API key with the `READ_STOCK` or `FULL` permission. - **For**: Print farms - **Operation id**: `getPrintFarmStock` Returns a single stock by id, scoped to stocks that have a `stock_level` row at one of your farms. Requires an API key with the `READ_STOCK` (or `FULL`) permission scope. #### Path parameters - `id` (string, required): The public stock identifier (`stk_…`) returned by the list endpoint. #### Returns 200 OK The requested stock. Returns [the stock object](https://public-api.dapi.digital/docs/reference/print-farm-stocks.md#farm_stock_object). #### Responses - `200`: The requested stock. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `404`: No stock with this `id` has any stock\_level at your print farms. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/stocks/stk_fL3sB8eYzKnQ7mX2dC9vR4tH6jW1uPbAcN" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/print-farm-stocks. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Courier options Couriers you can name when you mark an order as shipping. ### Endpoints - [GET `/v1/print-farm/courier-options`](https://public-api.dapi.digital/docs/reference/print-farm-courier-options.md#listPrintFarmCourierOptions) ### The courier option object #### Attributes - `code` (string): Short courier code. Pass this value back when updating an order to `shipping`. - `name` (string): Human-readable courier name. **The courier option object** ```json null ``` ### List available courier options GET `/v1/print-farm/courier-options` - **Credentials**: Any active API key. - **For**: Print farms - **Operation id**: `listPrintFarmCourierOptions` Returns every available courier option (code + name) for use when updating an order to `shipping`. The list is the same for every caller. Always includes an `other` entry as a fallback for couriers not in the catalog. #### Returns 200 OK The list of available courier options. Response attributes (ListPrintFarmCourierOptionsResponseDto): - `courier_options` (array of PrintFarmCourierOptionResponseDto): All courier options available across configured ShipStation integrations. Described in [the courier option object](https://public-api.dapi.digital/docs/reference/print-farm-courier-options.md#farm_courier_option_object). #### Responses - `200`: The list of available courier options. - `401`: API key is missing or invalid. - `403`: The API key does not have the required permission scope. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the print farm error body](https://public-api.dapi.digital/docs/guides/print-farm-quickstart.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/print-farm/courier-options" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "courier_options": [ { "code": "ups", "name": "UPS" } ] } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/print-farm-courier-options. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Quotes (API v1, deprecated) Deprecated: API v1 keeps working for existing integrations but gets no new features. New integrations should use API v2 (https://public-api.dapi.digital/docs/guides/quickstart.md). Upload an STL file and get its print price, then poll the quote or wait for its webhook. ### Endpoints - [POST `/v1/quotes/upload_file`](https://public-api.dapi.digital/docs/v1/reference/quotes.md#v1_uploadQuoteFile) - [GET `/v1/quotes`](https://public-api.dapi.digital/docs/v1/reference/quotes.md#v1_listQuotes) - [POST `/v1/quotes`](https://public-api.dapi.digital/docs/v1/reference/quotes.md#v1_createQuote) - [GET `/v1/quotes/status_check`](https://public-api.dapi.digital/docs/v1/reference/quotes.md#v1_getQuoteStatus) - [GET `/v1/quotes/{publicId}`](https://public-api.dapi.digital/docs/v1/reference/quotes.md#v1_getQuoteByPublicId) ### The quote object #### Attributes - `publicId` (string): Identifier for this quote. Use it to poll for results, reference the quote when creating an order, or contact support. - `name` (object, optional): Optional label you assigned at creation. Purely informational - not used in processing. - `webhook_metadata` (object, optional): Arbitrary key-value data you attached at creation. Echoed back unchanged in all API responses and webhook payloads. - `status` (string): Current processing state. Poll until `DONE` to read the price, or handle `ERROR` if the file could not be priced. Possible values: `FILE_UPLOADED`, `PROCESSING`, `DONE`, `CANCELLED`, `ERROR`. - `result` (object, optional): Estimated price per unit in USD, rounded to two decimal places. Populated only when `status` is `DONE`. - `metrics` (value, optional): What the slicer measured for one unit: filament weight and print time. Populated only when `status` is `DONE`; `null` while processing and after an error. - `store_id` (object, optional): The store this quote belongs to, or `null` if your account does not use stores. - `errorMessage` (string, optional): Short explanation of what went wrong. Populated only when `status` is `ERROR`. - `createdAt` (timestamp): ISO 8601 timestamp of when this quote was submitted. - `finishedAt` (object, optional): ISO 8601 timestamp of when processing completed, regardless of outcome. `null` while still `PROCESSING`. **The quote object** ```json { "publicId": "dapi_a3f9b2c1e4", "name": "bracket-v2", "webhook_metadata": { "order_id": "ORD-123", "notify_slack": true }, "status": "PROCESSING", "result": 12.34, "metrics": null, "store_id": "str_9f2c4a7b13d84e0fa6c5b8e21d47a903", "errorMessage": "We could not complete the quote for this file.", "createdAt": "2026-03-24T12:00:00.000Z", "finishedAt": "2026-03-24T12:05:00.000Z" } ``` ### Get a pre-signed upload URL POST `/v1/quotes/upload_file` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_uploadQuoteFile` Generates a pre-signed S3 URL that lets you upload an `.stl` file directly to storage, bypassing the API server entirely. Call this first - you need the returned `s3_key` to submit a quote. ### Upload Steps 1. Call this endpoint to receive an `upload_url` and `s3_key`. 2. `PUT` your STL file to `upload_url` with header `Content-Type: application/octet-stream`. **Maximum file size: 250 MB.** 3. Pass the `s3_key` to `POST /quotes` to start the pricing process. The upload URL expires after 1 hour. After expiry you must call this endpoint again. ### Daily Quote Limit A global daily limit on quote submissions is enforced to prevent abuse. Integration accounts are exempt from it. This endpoint is where the limit is checked and counted, since the quote record is created here. When a limit is active, successful responses include an `X-Daily-Quotes-Remaining` header with the number of quotes that can still be submitted today. Submitting once the limit is exhausted returns `429 Too Many Requests`. The limit resets at midnight. #### Request body - `file_name` (string): Name of the file you are about to upload, used only to keep its extension. The slicer picks its model loader from the file extension, so a `.3mf` stored under an `.stl` name cannot be read and the quote fails with "The input model file to the slicer can not be parsed". Pass the real name and the extension is preserved. Supported: `.stl`, `.3mf`, `.obj`, `.step`, `.stp`. Anything else is rejected. Omit this field and the upload is treated as `.stl`, which is what callers got before this field existed. #### Returns 201 Created Pre-signed URL ready. Upload your STL file to `upload_url` before it expires. Response attributes (V1UploadFileResponse): - `publicId` (string): Identifier for this quote - use it to track the quote after submitting. - `upload_url` (string): Pre-signed S3 URL. Send a `PUT` request with the raw STL file as the body and `Content-Type: application/octet-stream`. Max file size: 250 MB. - `s3_key` (string): The S3 key for your uploaded file. Pass this to `POST /quotes` to start the quoting process. - `expires_in` (number): Number of seconds until the upload URL expires. #### Responses - `201`: Pre-signed URL ready. Upload your STL file to `upload_url` before it expires. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use quote endpoints. - `429`: Daily quote limit reached - try again tomorrow. - `500`: An unexpected error occurred on our side. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v1/quotes/upload_file" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "file_name": "bracket-v2.3mf" }' ``` **Response 201** ```json { "publicId": "dapi_a3f9b2c1e4", "upload_url": "https://s3.eu-central-1.amazonaws.com/...", "s3_key": "public-api/quotes/abc-123/input/1711000000000-upload.stl", "expires_in": 3600 } ``` ### List your quotes GET `/v1/quotes` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_listQuotes` Returns a paginated list of your quotes, sorted by creation date (newest first). Each entry shows the current processing status and, once complete, the estimated per-unit price. Use the `publicId` field to fetch full details via `GET /quotes/:publicId`. #### Query parameters - `page` (integer): 1-based page index. Defaults to `1`. Range at least 1. Defaults to 1. - `page_size` (integer): Number of quotes per page. Maximum is `100`. Defaults to `20`. Range 1 to 100. Defaults to 20. - `store_id` (string): Return only quotes belonging to this store. Omit to return quotes from every store on your account. #### Returns 200 OK Paginated list of quotes for the authenticated account. Response attributes (V1ListQuotesResponseDto): - `items` (array of V1QuotePublicResponseDto): Quotes on this page, sorted by creation date (newest first). Described in [the quote object](https://public-api.dapi.digital/docs/reference/v1-quotes#v1_quote_public_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of quotes across all pages. Use this to determine whether more pages exist. Range at least 0. #### Responses - `200`: Paginated list of quotes for the authenticated account. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use quote endpoints. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/quotes" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "items": [ { "publicId": "dapi_a3f9b2c1e4", "name": "bracket-v2", "webhook_metadata": { "order_id": "ORD-123", "notify_slack": true }, "status": "PROCESSING", "result": 12.34, "metrics": null, "store_id": "str_9f2c4a7b13d84e0fa6c5b8e21d47a903", "errorMessage": "We could not complete the quote for this file.", "createdAt": "2026-03-24T12:00:00.000Z", "finishedAt": "2026-03-24T12:05:00.000Z" } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Submit an STL file for pricing POST `/v1/quotes` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_createQuote` Queues an uploaded STL file for automated price estimation. You must first obtain an `s3_key` by uploading the file via `POST /quotes/upload_file`. The response includes a `publicId` you can use to poll `GET /quotes/:publicId` until `status` reaches `DONE` or `ERROR`. Alternatively, configure a webhook URL in the dashboard to receive a notification when processing completes. ### Webhook Notifications When processing finishes, we send an HTTP `POST` to your configured webhook URL. Any `webhook_metadata` you attached to this request is echoed back unchanged in the payload. #### HMAC Signature Verification Every webhook delivery includes two headers so you can verify authenticity: - **`X-Dapi-Webhook-Signature`**: `sha256=` - **`X-Dapi-Webhook-Timestamp`**: Unix timestamp (seconds) when the payload was signed **Verification steps:** 1. Read the raw request body as a UTF-8 string. 2. Concatenate: `{X-Dapi-Webhook-Timestamp}.{raw_body}` 3. Compute HMAC-SHA256 of that string using your webhook secret as the key. 4. Compare the hex digest with the value after `sha256=` in the signature header (use constant-time comparison to prevent timing attacks). 5. Reject the payload if the timestamp is older than 5 minutes (replay protection). #### Webhook Payload Shape **JSON** ```json { "event": "quote.completed", "quote": { "public_id": "dapi_a3f9b2c1e4", "status": "DONE", "result": 12.34, "error_message": null }, "webhook_metadata": { "order_id": "ORD-123", "notify": true }, "timestamp": "2026-03-25T12:05:00.000Z" } ``` #### Expected Response Return any `2xx` status code to acknowledge receipt. We retry on non-2xx responses. #### Request body - `s3_key` (string, required): The S3 key returned from `POST /quotes/upload_file`. - `name` (string): Optional name or label for this quote (e.g. part name). - `store_id` (string): The store this quote belongs to. Required once your account has at least one store. An order may only reference quotes from its own store. - `webhook_metadata` (object): Optional flat key-value metadata object that will be echoed back in webhook payloads. Values must be strings (max 64 characters), numbers, or booleans. Maximum 20 keys. #### Returns 201 Created Quote accepted and queued for processing. Poll with the returned `publicId` to retrieve the result. Response attributes (V1CreateQuoteResponse): - `publicId` (string): Use this id with `GET /quotes/:publicId` to see when your quote is ready and to read prices. - `status` (string): `PROCESSING` - we accepted your request and are working on it. `ERROR` - we could not start the quote; try again or contact support. #### Responses - `201`: Quote accepted and queued for processing. Poll with the returned `publicId` to retrieve the result. - `400`: The `s3_key` is invalid, not found, or has already been submitted for another quote. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use quote endpoints. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v1/quotes" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "s3_key": "public-api/quotes/abc-123/input/1711000000000-upload.stl", "name": "helmet-v3", "store_id": "str_9f2c4a7b13d84e0fa6c5b8e21d47a903", "webhook_metadata": { "order_id": "ORD-123", "notify_slack": true, "priority": 1 } }' ``` **Response 201** ```json { "publicId": "dapi_a3f9b2c1e4", "status": "PROCESSING" } ``` ### Check quote access GET `/v1/quotes/status_check` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_getQuoteStatus` Verifies that your API key has permission to use quote endpoints. Call this before integrating the quote workflow if you want to confirm access is granted without side effects. #### Returns 200 OK The key has permission to submit and retrieve quotes. Response attributes (V1QuoteStatusCheckResponse): - `ok` (boolean): Always `true` when you receive a `200` - confirms the key has access to quote endpoints. - `status` (string): Access status for pricing endpoints. `pricing_access_granted` means you may submit and retrieve quotes. #### Responses - `200`: The key has permission to submit and retrieve quotes. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use quote endpoints. - `429`: Rate limit exceeded - wait until the window resets before retrying. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/quotes/status_check" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "ok": true, "status": "pricing_access_granted" } ``` ### Get one quote GET `/v1/quotes/{publicId}` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_getQuoteByPublicId` Returns the quote matching the given `publicId`. While `status` is `PROCESSING`, poll this endpoint periodically until it transitions to `DONE` or `ERROR`. When `status` is `DONE`, read **`result`** for the estimated per-unit price in USD. If a webhook URL is configured in your dashboard, you will be notified automatically when processing completes - no polling required. #### Path parameters - `publicId` (string, required): The `publicId` returned when the quote was submitted. #### Returns 200 OK The requested quote object. Returns [the quote object](https://public-api.dapi.digital/docs/v1/reference/quotes.md#v1_quote_public_object). #### Responses - `200`: The requested quote object. - `400`: The request could not be parsed or validated. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use quote endpoints. - `404`: No quote with this `publicId` exists for your account. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/quotes/dapi_a3f9b2c1e4" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/v1/reference/quotes. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Orders (API v1, deprecated) Deprecated: API v1 keeps working for existing integrations but gets no new features. New integrations should use API v2 (https://public-api.dapi.digital/docs/guides/quickstart.md). Orders placed from completed quotes, their shipping costs, and paying for them from the wallet. ### Endpoints - [GET `/v1/designer/orders`](https://public-api.dapi.digital/docs/v1/reference/orders.md#v1_listOrders) - [POST `/v1/designer/orders`](https://public-api.dapi.digital/docs/v1/reference/orders.md#v1_createOrder) - [GET `/v1/designer/orders/filaments`](https://public-api.dapi.digital/docs/v1/reference/orders.md#v1_listFilaments) - [GET `/v1/designer/orders/shipping/rates`](https://public-api.dapi.digital/docs/v1/reference/orders.md#v1_getShippingRates) - [POST `/v1/designer/orders/shipping/estimate`](https://public-api.dapi.digital/docs/v1/reference/orders.md#v1_estimateShipping) - [GET `/v1/designer/orders/{orderId}`](https://public-api.dapi.digital/docs/v1/reference/orders.md#v1_getOrderById) - [POST `/v1/orders/{orderId}/pay`](https://public-api.dapi.digital/docs/v1/reference/orders.md#v1_payOrder) ### The order object #### Attributes - `order_id` (string): Unique identifier for this order. - `status` (string): Current lifecycle stage of the order. Progresses from `pending` → `paid` → `in_production` → `shipping` → `completed`. May also be `rejected` or `returned`. - `delivery` (number): Flat delivery fee in USD, added on top of the item subtotals. - `order_total` (number): Grand total in USD, including all line items and the delivery fee. - `customer` (value): Recipient contact and shipping address details. - `items` (array of V1OrderItemPublicDto): Line items that make up this order, each derived from a completed quote. - `quoteId` (string): The `publicId` of the quote this line item was derived from. - `filaments` (array of string): Filament codes used for this item, one per colour slot, in slot order - the same order given when the order was placed. Single-colour items return a one-element array. See `GET /orders/filaments` for all codes. - `individual_price` (number): Price per unit in USD, taken from the quote result. - `quantity` (number): Number of units ordered for this line item. - `total` (number): Line-item subtotal in USD (`individual_price` × `quantity`). - `tracking_number` (object, optional): Carrier tracking number. Populated once the order moves to `shipping` status. - `courier` (object, optional): Name of the shipping carrier (e.g. `ups`, `dhl`). Populated alongside `tracking_number`. - `created_at` (timestamp): ISO 8601 timestamp of when this order was placed. - `updated_at` (timestamp): ISO 8601 timestamp of the most recent change to this order (status update, tracking added, etc.). **The order object** ```json { "order_id": "AP7K2M9X", "status": "pending", "delivery": 10, "order_total": 133.4, "customer": null, "items": [ { "quoteId": "dapi_a3f9b2c1e4", "filaments": [ "PLA-GREEN", "PLA-RED" ], "individual_price": 12.34, "quantity": 5, "total": 61.7 } ], "tracking_number": "1Z999AA10123456784", "courier": "ups", "created_at": "2026-03-24T12:00:00.000Z", "updated_at": "2026-03-24T12:05:00.000Z" } ``` ### List your orders GET `/v1/designer/orders` - **Credentials**: An API key with the `ORDER` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_listOrders` Returns a paginated list of your orders, sorted by creation date (newest first). Each entry includes the current lifecycle status, shipping address, item breakdown, and tracking details when available. Use the `order_id` field to fetch full details via `GET /orders/:orderId`. #### Query parameters - `page` (integer): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (integer): Page size (max 100). Range 1 to 100. Defaults to 20. - `store_id` (string): Return only orders belonging to this store. Omit to return orders from every store on your account. #### Returns 200 OK Paginated list of orders for the authenticated account. Response attributes (V1ListOrdersResponseDto): - `items` (array of V1OrderPublicResponseDto): Orders on this page, sorted by creation date (newest first). Described in [the order object](https://public-api.dapi.digital/docs/reference/v1-orders#v1_order_public_object). - `page` (number): Page number returned, matching the `page` query parameter. Range at least 1. - `page_size` (number): Number of items per page, matching the `page_size` query parameter. Range 1 to 100. - `total` (number): Total number of orders across all pages. Use this to determine whether more pages exist. Range at least 0. #### Responses - `200`: Paginated list of orders for the authenticated account. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use order endpoints. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/designer/orders" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "items": [ { "order_id": "AP7K2M9X", "status": "pending", "delivery": 10, "order_total": 133.4, "customer": null, "items": [ { "quoteId": "dapi_a3f9b2c1e4", "filaments": [ "PLA-GREEN", "PLA-RED" ], "individual_price": 12.34, "quantity": 5, "total": 61.7 } ], "tracking_number": "1Z999AA10123456784", "courier": "ups", "created_at": "2026-03-24T12:00:00.000Z", "updated_at": "2026-03-24T12:05:00.000Z" } ], "page": 1, "page_size": 20, "total": 42 } ``` ### Create an order from completed quotes POST `/v1/designer/orders` - **Credentials**: An API key with the `ORDER` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_createOrder` Places a new order by combining one or more completed quotes. Each item references a quote by its `publicId` and specifies the filament and quantity to produce. **Prerequisites:** - All referenced quotes must have `status` equal to `DONE`. - All filament codes must be valid - retrieve available codes from `GET /orders/filaments`. - At least one item is required. - Each item lists its filaments in `filaments`, one code per colour slot in slot order; a single-colour design sends a one-element array. **Multi-colour items:** `filaments` lists one code per colour slot in the design's own extruder order, so `["PLA-GREEN","PLA-RED"]` and `["PLA-RED","PLA-GREEN"]` order different products. Each distinct combination becomes its own SKU; repeating the same quote with the same combination reuses it. The order is created with status `pending`. Use `POST /orders/:orderId/pay` to pay for it and move it into production. #### Request body - `customer` (value, required): Recipient contact and shipping address. All nested fields are required. - `items` (array of V1OrderItemDto, required): One or more items to include in the order. Each item references a completed quote and specifies a filament and quantity. At least one item is required. - `quoteId` (string, required): The `publicId` of a completed quote (`status` must be `DONE`). Each quote may appear at most once per order. - `filaments` (array of string, required): Filament codes for this item, one per colour slot, **in slot order**. Slot order is the design's own extruder order, so `["PLA-GREEN","PLA-RED"]` and `["PLA-RED","PLA-GREEN"]` are different products. Give a single-element array for a single-colour design. Retrieve valid codes from `GET /orders/filaments`. - `quantity` (number, required): Number of units to produce for this item. Minimum is `1`. Range at least 1. - `store_id` (string): The store this order belongs to. Required once your account has at least one store. Every quote referenced in `items` must belong to this same store. - `customer_notes` (string): Optional notes for the order (e.g. delivery instructions). - `checkout_link` (boolean): When `true`, a hosted Stripe Checkout URL is generated and returned in the response as `checkout_link`. The customer can open this URL in a browser to pay for the order. The order status will automatically advance to `paid` once payment is completed via Stripe. Requires `checkout_success_url` and `checkout_cancel_url`. Defaults to false. - `checkout_success_url` (string): URL to redirect the customer to after a successful Stripe Checkout payment. Required when `checkout_link` is `true`. You may include `{CHECKOUT_SESSION_ID}` as a placeholder - Stripe will substitute it with the actual session ID. - `checkout_cancel_url` (string): URL to redirect the customer to if they cancel the Stripe Checkout flow. Required when `checkout_link` is `true`. #### Returns 201 Created Order created with status `pending`. Pay with `POST /orders/:orderId/pay` to proceed. Response attributes (V1CreateOrderResponseDto): - `orderId` (string): Unique identifier for the newly created order. Use this with `POST /orders/:orderId/pay` to pay for the order. - `status` (string): Initial status of the order. Always `pending` on creation - pay with `POST /orders/:orderId/pay` to advance it into production. - `delivery` (number): Flat delivery fee in USD. - `order_total` (number): Grand total in USD, including all line items and the delivery fee. - `items` (array of V1OrderItemResponseDto): Line items included in this order with their final pricing. - `quoteId` (string): The `publicId` of the quote this line item was created from. - `individual_price` (number): Price per unit in USD, taken from the quote result. - `quantity` (number): Number of units ordered for this line item. - `total` (number): Line-item subtotal in USD (`individual_price` × `quantity`). - `checkout_link` (string, optional): Hosted Stripe Checkout URL. Only present when `checkout_link: true` was passed in the request. Redirect your customer to this URL to complete payment in the browser. #### Responses - `201`: Order created with status `pending`. Pay with `POST /orders/:orderId/pay` to proceed. - `400`: Request body failed validation, a filament code is unrecognised, or a referenced quote does not have `status` `DONE`. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use order endpoints. - `404`: One or more referenced quote `publicId` values were not found for your account. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v1/designer/orders" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "customer": null, "items": [ { "quoteId": "dapi_a3f9b2c1e4", "filaments": [ "PLA-GREEN", "PLA-RED" ], "quantity": 5 } ], "store_id": "str_9f2c4a7b13d84e0fa6c5b8e21d47a903", "customer_notes": "Please leave at the door.", "checkout_link": false, "checkout_success_url": "https://yourstore.com/orders/success?ref={CHECKOUT_SESSION_ID}", "checkout_cancel_url": "https://yourstore.com/orders/cancelled" }' ``` **Response 201** ```json { "orderId": "AP7K2M9X", "status": "pending", "delivery": 10, "order_total": 133.4, "items": [ { "quoteId": "dapi_a3f9b2c1e4", "individual_price": 12.34, "quantity": 5, "total": 61.7 } ], "checkout_link": "https://checkout.stripe.com/c/pay/cs_test_..." } ``` ### List available filaments GET `/v1/designer/orders/filaments` - **Credentials**: An API key with the `ORDER` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_listFilaments` Returns all filament options currently available for ordering. Use the `code` value (e.g. `PLA-GREEN`) in the `filaments` array of each item when creating an order via `POST /orders`. #### Returns 200 OK All filaments available for use in orders. Response attributes (V1ListFilamentsResponseDto): - `items` (array of V1FilamentResponseDto): All filaments currently available for ordering. - `code` (string): Unique filament identifier to use in the `filament` field when creating an order. Format: `{MATERIAL}-{COLOR}` in uppercase with hyphens (e.g. `PLA-GREEN`, `PETG-BLACK`). - `name` (string): Human-readable display name of the filament, suitable for use in a UI. - `color` (object): Color of the filament in lowercase English. `null` when the filament is multi-color or the color is unspecified. #### Responses - `200`: All filaments available for use in orders. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use order endpoints. - `429`: Rate limit exceeded - wait until the window resets before retrying. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/designer/orders/filaments" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "items": [ { "code": "PLA-GREEN", "name": "PLA Green", "color": "green" } ] } ``` ### Get the shipping rate card GET `/v1/designer/orders/shipping/rates` - **Credentials**: An API key with the `ORDER` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_getShippingRates` Returns every shipping zone, the countries it covers as ISO 3166-1 alpha-2 codes, and the price of the first item in each weight tier plus each additional item. **How a parcel is priced:** - The tier comes from the HEAVIEST single item, not the summed weight of the order. Two small items ship as one Small plus one additional item, not as a Medium. - Items under `extra_small_max_grams` are exempt from `additional_item_price`. - A destination no zone lists falls to the zone with `catch_all` set. - An order that cannot be rated at all is charged `flat_rate`. Use `POST /orders/shipping/estimate` to price a specific order rather than deriving it. #### Returns 200 OK The active rate card. Response attributes (V1ShippingRatesResponseDto): - `zones` (array of V1ShippingZoneResponseDto) - `zone` (string): Zone identifier. - `label` (string): Human-readable zone name. - `countries` (array of string): ISO 3166-1 alpha-2 codes covered by this zone. Empty when `catch_all` is true. - `unmapped_countries` (array of string): Country names on the zone that do not map to an ISO code. Normally empty; a destination listed here still matches at order time but cannot be expressed as a code. - `catch_all` (boolean): Whether this is the fallback zone, used for any destination no other zone lists. - `small_first_price` (number): First item, Small tier. - `medium_first_price` (number): First item, Medium tier. - `large_first_price` (number): First item, Large tier. - `additional_item_price` (number): Charged for every billable item after the first. Extra-small items are exempt. - `tiers` (array of V1ShippingTierResponseDto): Weight bands a parcel is priced at. The tier is set by the HEAVIEST single item, not by the summed weight of the order. - `tier` (string) Possible values: `small`, `medium`, `large`. - `max_grams` (object): Upper bound in grams, inclusive. `null` on the largest tier. - `extra_small_max_grams` (number): Items under this weight are exempt from `additional_item_price`. - `flat_rate` (number): Charged when an order cannot be rated - an unweighed design, or a destination no zone covers. #### Responses - `200`: The active rate card. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use order endpoints. - `429`: Rate limit exceeded - wait until the window resets before retrying. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/designer/orders/shipping/rates" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "zones": [ { "zone": "EU", "label": "European Union", "countries": [ "AT", "BE", "DE", "FR" ], "unmapped_countries": [], "catch_all": false, "small_first_price": 4.5, "medium_first_price": 7.9, "large_first_price": 14, "additional_item_price": 1 } ], "tiers": [ { "tier": "small", "max_grams": 600 } ], "extra_small_max_grams": 100, "flat_rate": 10 } ``` ### Estimate shipping for an order POST `/v1/designer/orders/shipping/estimate` - **Credentials**: An API key with the `ORDER` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_estimateShipping` Prices shipping for a set of quotes and a destination, without placing an order. Runs the same weigh -> tier -> price steps order creation does, against the same rate card, so the number returned is the number the order will be charged. Filaments are not accepted: colour does not change what a parcel weighs. A destination that cannot be rated against the card is still priced - `shipping` is always what the order will be charged - but comes back with `zone` and `tier` null. #### Request body - `country` (string, required): 2-letter ISO 3166-1 alpha-2 destination code, uppercase. - `items` (array of V1EstimateShippingItemDto, required): Items to ship. Filaments are not needed: colour does not change what a parcel weighs. - `quoteId` (string, required): The `publicId` of a completed quote (`status` must be `DONE`). - `quantity` (number, required): Units of this quote. Range at least 1. #### Returns 200 OK The shipping cost this order would be charged. Response attributes (V1EstimateShippingResponseDto): - `country` (string) - `zone` (object): Null when the flat rate applied. - `zone_label` (object) - `tier` (object): Tier the parcel was priced at - the heaviest single item. - `item_count` (number): Units in the order. - `billable_item_count` (number): Units charged `additional_item_price` (after the first). Excludes extra-small items, so this can be 0. - `extra_small_items` (boolean): Whether any item was light enough to be exempt from the per-item charge. - `shipping` (number): Shipping cost in USD. This is what the order will be charged. `zone` and `tier` are null when the destination could not be rated against the card. #### Responses - `200`: The shipping cost this order would be charged. - `400`: Request body failed validation, or a quote has not finished slicing. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use order endpoints. - `404`: One or more quotes do not exist for your account. - `429`: Rate limit exceeded - wait until the window resets before retrying. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v1/designer/orders/shipping/estimate" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "country": "DE", "items": [ { "quoteId": "dapi_a3f9b2c1e4", "quantity": 5 } ] }' ``` **Response 200** ```json { "country": "DE", "zone": "EU", "zone_label": "European Union", "tier": "small", "item_count": 5, "billable_item_count": 0, "extra_small_items": true, "shipping": 4.5 } ``` ### Get one order GET `/v1/designer/orders/{orderId}` - **Credentials**: An API key with the `ORDER` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_getOrderById` Returns the order matching the given `orderId`. Includes current status, recipient details, item breakdown, and tracking information once the order ships. ### Webhook Notifications When an order status changes to `paid`, `in_production`, `shipping`, or `completed`, we send an HTTP `POST` to your configured webhook URL (set via the dashboard). Each notification is signed - verify the `X-Dapi-Webhook-Signature` header using your webhook secret. #### Webhook Payload Shape **JSON** ```json { "event": "order.in_production", "order": { "order_id": "AP7K2M9X", "status": "in_production", "tracking_number": null, "courier": null }, "timestamp": "2026-03-25T12:05:00.000Z" } ``` #### Expected Response Return any `2xx` status code to acknowledge receipt. We retry on non-2xx responses. #### Path parameters - `orderId` (string, required): The unique order identifier returned when the order was created. #### Returns 200 OK The requested order object. Returns [the order object](https://public-api.dapi.digital/docs/v1/reference/orders.md#v1_order_public_object). #### Responses - `200`: The requested order object. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use order endpoints. - `404`: No order with this `orderId` exists for your account. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/designer/orders/AP7K2M9X" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Pay for an order using wallet balance POST `/v1/orders/{orderId}/pay` - **Credentials**: An API key with the `ORDER` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_payOrder` Pay for a pending order. Three payment methods are available: - **`wallet`**: Debit the order amount directly from your wallet balance. Fails if the balance is insufficient. - **`wallet_auto`**: If wallet balance is insufficient, automatically top up from your saved card to the configured auto-topup amount, then debit. - **`wallet_difference`**: If wallet balance is insufficient, automatically top up only the deficit from your saved card, then debit. Both `wallet_auto` and `wallet_difference` require a saved card on your wallet. This endpoint is idempotent - calling it on an already-paid order returns `409 Conflict`. #### Path parameters - `orderId` (string, required): The unique order identifier returned when the order was created. #### Request body - `paymentMethod` (string, required): How to fund the payment. - `wallet` - deduct the full order amount from your wallet. Fails with `400` if the balance is insufficient. - `wallet_auto` - if your wallet balance is too low, top it up from your saved card to the configured auto-topup target, then deduct. Requires a saved card. - `wallet_difference` - if your wallet balance is too low, charge only the deficit to your saved card, then deduct. Requires a saved card. #### Returns 200 OK Payment successful. Order status is now `paid`. Response attributes (V1PayOrderResponseDto): - `orderId` (string): Identifier of the order that was paid. - `status` (string): Order status after successful payment. Always `paid` on a `200` response. - `topupAmountUsd` (number): Amount in USD charged to your saved card as a wallet top-up. `0` when no top-up was needed because the wallet already had sufficient funds. - `walletDebitedUsd` (number): Amount in USD deducted from your wallet to settle the order. #### Responses - `200`: Payment successful. Order status is now `paid`. - `400`: Wallet balance is insufficient and no auto-topup is configured, or no saved card is on file for the selected payment method. - `401`: API key is missing or invalid. - `402`: Card charge failed. The payment could not be confirmed - verify your saved card details or add a new card via the dashboard. - `403`: The API key does not have permission to use order endpoints, or this order belongs to a different account. - `404`: No order with this `orderId` exists for your account. - `409`: The order has already been paid. No further action is needed. - `429`: Rate limit exceeded - wait until the window resets before retrying. - `500`: An unexpected error occurred on our side. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v1/orders/AP-A1B2C3/pay" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "paymentMethod": "wallet" }' ``` **Response 200** ```json { "orderId": "AP-A1B2C3", "status": "paid", "topupAmountUsd": 50, "walletDebitedUsd": 25.5 } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/v1/reference/orders. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## Stores (API v1, deprecated) Deprecated: API v1 keeps working for existing integrations but gets no new features. New integrations should use API v2 (https://public-api.dapi.digital/docs/guides/quickstart.md). One store per storefront you run, so quotes and orders are kept apart per storefront. ### Endpoints - [GET `/v1/stores`](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_listStores) - [POST `/v1/stores`](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_createStore) - [GET `/v1/stores/{storeId}`](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_getStore) - [PATCH `/v1/stores/{storeId}`](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_updateStore) - [DELETE `/v1/stores/{storeId}`](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_archiveStore) ### The store object #### Attributes - `id` (string): Identifier for this store. Pass it as `store_id` on quotes and orders. - `name` (string): The name you gave this storefront. - `external_reference` (object, optional): Your own identifier for this storefront, or `null` if you did not set one. - `archived` (boolean): Whether this store is archived. An archived store keeps its history but refuses new quotes and orders. - `created_at` (timestamp): ISO 8601 timestamp of when this store was created. **The store object** ```json { "id": "str_9f2c4a7b13d84e0fa6c5b8e21d47a903", "name": "Clicker Shop UK", "external_reference": "shop_uk_001", "archived": false, "created_at": "2026-09-02T12:00:00.000Z" } ``` ### List your stores GET `/v1/stores` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_listStores` Returns your stores, newest first. Archived stores are excluded unless you pass `include_archived=true`. #### Query parameters - `page` (number): 1-based page index. Range at least 1. Defaults to 1. - `page_size` (number): Number of stores per page (max 100). Range 1 to 100. Defaults to 20. - `include_archived` (boolean): Include archived stores in the results. Defaults to `false`, so closed storefronts stay out of the way. Defaults to false. #### Returns 200 OK Paginated list of stores. Response attributes (V1ListStoresResponseDto): - `items` (array of V1StoreResponseDto): Stores on this page, newest first. Described in [the store object](https://public-api.dapi.digital/docs/reference/v1-stores#v1_store_object). - `page` (number): Page number returned. Range at least 1. - `page_size` (number): Number of items per page. Range 1 to 100. - `total` (number): Total number of stores matching the query, across all pages. Range at least 0. #### Responses - `200`: Paginated list of stores. - `400`: `page` or `page_size` is outside the allowed range. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use store endpoints. - `429`: Rate limit exceeded. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/stores" \ -H "x-api-key: $DAPI_API_KEY" ``` **Response 200** ```json { "items": [ { "id": "str_9f2c4a7b13d84e0fa6c5b8e21d47a903", "name": "Clicker Shop UK", "external_reference": "shop_uk_001", "archived": false, "created_at": "2026-09-02T12:00:00.000Z" } ], "page": 1, "page_size": 20, "total": 3 } ``` ### Create a store POST `/v1/stores` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_createStore` Creates a store representing one of your storefronts. A store keeps one storefront's quotes and orders bookkept apart from the others on your account. It is not an authentication boundary: your API key still reaches every store you own. > **Once your account has at least one store, `store_id` becomes required** when creating quotes and orders. This stops a storefront from silently omitting it and mixing its records in with the rest. #### Request body - `name` (string, required): Human-readable name for this storefront. Shown only to you. - `external_reference` (string): Your own identifier for this storefront, so you can reconcile without keeping a mapping table. Opaque to us and never interpreted. Must be unique across your live stores. #### Returns 201 Created Store created. Returns [the store object](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_store_object). #### Responses - `201`: Store created. - `400`: The request could not be validated. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use store endpoints. - `409`: Another live store already uses this `external_reference`. - `429`: Rate limit exceeded. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl -X POST "https://public-api.dapi.digital/v1/stores" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Clicker Shop UK", "external_reference": "shop_uk_001" }' ``` ### Get one store GET `/v1/stores/{storeId}` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_getStore` Returns the store matching the given id, archived or not. #### Path parameters - `storeId` (string, required): The store id returned when it was created. #### Returns 200 OK The requested store. Returns [the store object](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_store_object). #### Responses - `200`: The requested store. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use store endpoints. - `404`: No store with this id exists for your account. - `429`: Rate limit exceeded. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/stores/str_9f2c4a7b13d84e0fa6c5b8e21d47a903" \ -H "x-api-key: $DAPI_API_KEY" ``` ### Update a store PATCH `/v1/stores/{storeId}` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_updateStore` Updates a store's name or external reference. Omitted fields are left unchanged; pass `external_reference: null` to clear it. #### Path parameters - `storeId` (string, required): The store to update. #### Request body - `name` (string): New name for this storefront. - `external_reference` (object): New external reference. Pass `null` to clear it. Omit to leave it unchanged. #### Returns 200 OK The updated store. Returns [the store object](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_store_object). #### Responses - `200`: The updated store. - `400`: No updatable field was provided, or the body failed validation. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use store endpoints. - `404`: No store with this id exists for your account. - `409`: Another live store already uses this `external_reference`. - `429`: Rate limit exceeded. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl -X PATCH "https://public-api.dapi.digital/v1/stores/str_9f2c4a7b13d84e0fa6c5b8e21d47a903" \ -H "x-api-key: $DAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Clicker Shop UK & IE", "external_reference": "shop_uk_002" }' ``` ### Archive a store DELETE `/v1/stores/{storeId}` - **Credentials**: An API key with the `PRICING` or `FULL` permission. - **For**: Designers - **Operation id**: `v1_archiveStore` Archives a store. Its quotes and orders are kept and stay readable, but the store refuses new ones. Stores are never hard-deleted, because orders reference them and that history has to survive a storefront closing. Archiving twice is safe and leaves the original archive date intact. #### Path parameters - `storeId` (string, required): The store to archive. #### Returns 200 OK The archived store. Returns [the store object](https://public-api.dapi.digital/docs/v1/reference/stores.md#v1_store_object). #### Responses - `200`: The archived store. - `401`: API key is missing or invalid. - `403`: The API key does not have permission to use store endpoints. - `404`: No store with this id exists for your account. - `429`: Rate limit exceeded. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl -X DELETE "https://public-api.dapi.digital/v1/stores/str_9f2c4a7b13d84e0fa6c5b8e21d47a903" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/v1/reference/stores. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## API key (API v1, deprecated) Deprecated: API v1 keeps working for existing integrations but gets no new features. New integrations should use API v2 (https://public-api.dapi.digital/docs/guides/quickstart.md). Check that an API key works and which account it belongs to. ### Endpoints - [GET `/v1/me`](https://public-api.dapi.digital/docs/v1/reference/api-key.md#v1_getMe) ### The API key status object #### Attributes - `server_running` (boolean): Always `true` when you receive a `200` - confirms the server is reachable. - `api_key` (value): Identity and activation status of the key used to authenticate this request. - `rate_limit` (value): Current rate-limit counters for this key. Use `remaining` and `reset_at` to throttle your integration proactively. **The API key status object** ```json { "server_running": true, "api_key": null, "rate_limit": null } ``` ### API key health check GET `/v1/me` - **Credentials**: Any active API key. - **For**: Designers - **Operation id**: `v1_getMe` Returns server status, API key identity, and current rate-limit counters for the authenticated key. Call this to confirm connectivity and check how many requests remain before the limit resets. #### Returns 200 OK API key is valid and the server is reachable. Returns [the API key status object](https://public-api.dapi.digital/docs/v1/reference/api-key.md#v1_me_status_object). #### Responses - `200`: API key is valid and the server is reachable. - `401`: API key is missing, invalid, or inactive. - `429`: Rate limit exceeded - wait until the window resets before retrying. Errors use [the v1 error body](https://public-api.dapi.digital/docs/v1/reference.md#errors). **Request** ```bash curl "https://public-api.dapi.digital/v1/me" \ -H "x-api-key: $DAPI_API_KEY" ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/v1/reference/api-key. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.created Order created An order was placed, from any channel. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.created`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.created", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "paid", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": null, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.created. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.paid Order paid The order was paid. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.paid`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.paid", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "paid", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.paid. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.assigned Order assigned A production partner took the order. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.assigned`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.assigned", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "assigned", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.assigned. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.in\_production Order in production Production started. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.in_production`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.in_production", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "in_production", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.in_production. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.shipped Order shipped The order shipped; `shipping` has the tracking details. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.shipped`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.shipped", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "shipped", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.shipped. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.completed Order completed The order was delivered and settled. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.completed`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.completed", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "completed", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.completed. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.on\_hold Order on hold There is not enough stock to fulfil the order. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.on_hold`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.on_hold", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "on_hold", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.on_hold. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.rejected Order rejected The production partner refused the order. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.rejected`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.rejected", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "rejected", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.rejected. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.returned Order returned The order was sent back after shipping. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.returned`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.cancelled`](https://public-api.dapi.digital/docs/reference/events/order.cancelled.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.returned", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "returned", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.returned. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## order.cancelled Order cancelled The order was cancelled. Designers receive the order as get\_order returns it; integrators as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `order.cancelled`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (object) - Shape **Order** (expanded): [the order object](https://public-api.dapi.digital/docs/reference/orders.md#order_object). - Shape **IntegratorOrder** (expanded): [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`order.created`](https://public-api.dapi.digital/docs/reference/events/order.created.md) - [`order.paid`](https://public-api.dapi.digital/docs/reference/events/order.paid.md) - [`order.assigned`](https://public-api.dapi.digital/docs/reference/events/order.assigned.md) - [`order.in_production`](https://public-api.dapi.digital/docs/reference/events/order.in_production.md) - [`order.shipped`](https://public-api.dapi.digital/docs/reference/events/order.shipped.md) - [`order.completed`](https://public-api.dapi.digital/docs/reference/events/order.completed.md) - [`order.on_hold`](https://public-api.dapi.digital/docs/reference/events/order.on_hold.md) - [`order.rejected`](https://public-api.dapi.digital/docs/reference/events/order.rejected.md) - [`order.returned`](https://public-api.dapi.digital/docs/reference/events/order.returned.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "order.cancelled", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "PV-SCN-1701A372", "channel": "storefront", "status": "cancelled", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "buyer", "items": { "amount": 1800, "currency": "usd" }, "shipping": { "amount": 600, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 2400, "currency": "usd" } }, "earnings": { "manufacturing": { "amount": 900, "currency": "usd" }, "platform_fee": { "amount": 300, "currency": "usd" }, "payment_processing": { "amount": 102, "currency": "usd" }, "refunded": { "amount": 0, "currency": "usd" }, "net": { "amount": 498, "currency": "usd" } }, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "external": null, "customer_notes": null, "qc": { "open_tickets": 1, "blocks_shipping": true }, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 1, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "sku": "CLICK-BLUE", "quantity": 1, "unit_price": { "amount": 1800, "currency": "usd" }, "total": { "amount": 1800, "currency": "usd" }, "stock_used": [], "custom_file": null, "fulfilled_from_stock": false } ], "refunds": [] }, "previous": { "status": "paid" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/order.cancelled. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## checkout.expired Checkout link expired Integrators only. A `checkout` order was not paid within 24 hours of its link opening, so the order was cancelled. `data.object` is the order as get\_integrator\_order returns it. Sent as a signed POST to every endpoint subscribed to `checkout.expired`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (IntegratorOrder): An order for prints of your quotes: what was ordered, where it ships, its status, what was charged and, in `checkout` mode, what you earn. Described in [the integrator order object](https://public-api.dapi.digital/docs/reference/integrator-orders.md#integrator_order_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "checkout.expired", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "number": "2AC7K2M9X", "channel": "integrator_checkout", "status": "cancelled", "customer": { "name": "Ana Popescu", "email": "ana@example.com", "phone": null, "company": null }, "shipping_address": { "formatted": "Str. Test 1, Cluj, RO", "city": "Cluj", "country": "Romania", "country_code": "RO" }, "charges": { "paid_by": "you", "items": { "amount": 5000, "currency": "usd" }, "shipping": { "amount": 800, "currency": "usd" }, "vat": { "amount": { "amount": 0, "currency": "usd" }, "rate": 0, "included": false, "country": null }, "sample_credit": null, "total": { "amount": 5800, "currency": "usd" } }, "earnings": null, "shipping": { "tier": "small", "carrier": null, "tracking_number": null, "shipped_at": null }, "customer_notes": null, "created_at": "2026-10-09T08:39:29Z", "updated_at": "2026-10-09T08:40:02Z", "item_count": 10, "mode": "checkout", "checkout": { "object": "checkout_link", "url": "https://checkout.stripe.com/c/pay/cs_test_a1b2c3", "status": "expired", "expires_at": "2026-10-23T10:00:00.000Z" }, "items": [ { "id": "itm_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order_item", "quote": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "phone-stand.stl" }, "materials": [ { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Black" } ], "material_slots": [ { "slot": 1, "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Black" } } ], "quantity": 10, "unit_price": { "amount": 500, "currency": "usd" }, "production_unit_price": { "amount": 500, "currency": "usd" }, "extras": [], "total": { "amount": 5000, "currency": "usd" } } ], "refunds": [], "reference": "SHOP-1042" }, "previous": { "status": "awaiting_payment" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/checkout.expired. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## qc\_ticket.needs\_your\_action QC ticket needs your action A quality check has photos waiting for your review, or a production partner asked you a question. Sent as a signed POST to every endpoint subscribed to `qc_ticket.needs_your_action`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (QcTicket): A quality check, a question from the production partner, or an issue you reported on an order. Described in [the QC ticket object](https://public-api.dapi.digital/docs/reference/quality-control.md#qc_ticket_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`qc_ticket.resolved`](https://public-api.dapi.digital/docs/reference/events/qc_ticket.resolved.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "qc_ticket.needs_your_action", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "qct_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "qc_ticket", "kind": "quality_check", "reason": "spot_check", "status": "awaiting_your_review", "needs_your_action": true, "blocks_shipping": true, "order": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "name": "PV-SCN-1701A372" }, "round": 1, "replacement": null, "created_at": "2026-10-09T15:20:00Z", "submitted_at": "2026-10-10T09:01:00Z", "resolved_at": null, "items": [ { "id": "qci_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "qc_item", "title": "Clicker Blue", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "status": "in_review", "round": 1, "photos": [ { "id": "qcp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "url": "https://files.example.com/qc/clicker-front.jpg?signature=abc", "round": 1, "uploaded_at": "2026-10-10T09:00:00Z" } ], "history": [ { "action": "submitted", "by": "production_partner", "round": 1, "note": null, "at": "2026-10-10T09:01:00Z" } ] } ] }, "previous": { "status": "awaiting_photos" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/qc_ticket.needs_your_action. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## qc\_ticket.resolved QC ticket resolved A QC ticket was approved, closed or cancelled. Sent as a signed POST to every endpoint subscribed to `qc_ticket.resolved`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (QcTicket): A quality check, a question from the production partner, or an issue you reported on an order. Described in [the QC ticket object](https://public-api.dapi.digital/docs/reference/quality-control.md#qc_ticket_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`qc_ticket.needs_your_action`](https://public-api.dapi.digital/docs/reference/events/qc_ticket.needs_your_action.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "qc_ticket.resolved", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "qct_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "qc_ticket", "kind": "quality_check", "reason": "spot_check", "status": "approved", "needs_your_action": false, "blocks_shipping": false, "order": { "id": "ord_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "order", "name": "PV-SCN-1701A372" }, "round": 1, "replacement": null, "created_at": "2026-10-09T15:20:00Z", "submitted_at": "2026-10-10T09:01:00Z", "resolved_at": null, "items": [ { "id": "qci_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "qc_item", "title": "Clicker Blue", "product": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "Clicker" }, "variant": { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "name": "Clicker Blue" }, "status": "in_review", "round": 1, "photos": [ { "id": "qcp_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "url": "https://files.example.com/qc/clicker-front.jpg?signature=abc", "round": 1, "uploaded_at": "2026-10-10T09:00:00Z" } ], "history": [ { "action": "submitted", "by": "production_partner", "round": 1, "note": null, "at": "2026-10-10T09:01:00Z" } ] } ] }, "previous": { "status": "awaiting_your_review" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/qc_ticket.resolved. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## product.approved Product approved 3DAPI approved every design and extra in a product. Sent as a signed POST to every endpoint subscribed to `product.approved`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (Product): Something you sell: its variants, what they are made of, their prices and margins, and its storefront and review state. Described in [the product object](https://public-api.dapi.digital/docs/reference/products.md#product_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`product.rejected`](https://public-api.dapi.digital/docs/reference/events/product.rejected.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "product.approved", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "PR Tracker", "slug": "pr-tracker", "category": { "id": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Desk accessories" }, "review": { "status": "approved", "reason": null }, "publishing": { "is_public": true, "unpublished_by": null, "can_publish": true, "blockers": [] }, "variant_count": 1, "price_range": { "min": { "amount": 5000, "currency": "usd" }, "max": { "amount": 5000, "currency": "usd" } }, "images": [ { "url": "https://cdn.example.com/tracker.png", "primary": true } ], "created_at": "2026-04-21T07:34:06Z", "updated_at": "2026-10-02T11:12:40Z", "description": "A desk tracker for your personal records.", "options": [ { "name": "Color", "values": [ "Black", "Blue" ] } ], "variants": [ { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "sku": "TRACKER-BLUE", "name": "PR Tracker Blue", "status": "active", "options": [ { "name": "Color", "value": "Blue" } ], "category": null, "pricing": { "price": { "amount": 5000, "currency": "usd" }, "prices_include_vat": true, "costs": { "manufacturing": { "amount": 332, "currency": "usd" }, "extra_parts": { "amount": 40, "currency": "usd" }, "platform_fee": { "amount": 250, "currency": "usd" } }, "earnings": { "amount": 4378, "currency": "usd" } }, "shipping": { "tier": "medium", "determined_by": "volume", "chargeable_weight_grams": 820, "extra_small": false }, "contents": [ { "type": "design", "quantity": 1, "design": { "id": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design", "name": "tracker.3mf" }, "materials": [ { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false } ] }, { "type": "extra", "quantity": 4, "unit_price": { "amount": 10, "currency": "usd" }, "extra": { "id": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "extra", "name": "M3 screw" } } ], "image": null } ], "attachments": [ { "id": "att_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "attachment", "name": "assembly-guide.pdf" } ], "storefront": { "url": "https://dapi.digital/store/acme/pr-tracker", "show_compliance_labels": true, "disclaimers": [ { "title": "Production safety", "text": "Keep away from heat." } ] }, "custom_label_url": null, "compliance": { "object": "product_compliance", "enforced": false, "complete": false, "missing": 1 } }, "previous": { "review": { "status": "pending", "reason": null } }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/product.approved. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## product.rejected Product rejected 3DAPI rejected a design or extra in a product; `review.reason` says why. Sent as a signed POST to every endpoint subscribed to `product.rejected`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (Product): Something you sell: its variants, what they are made of, their prices and margins, and its storefront and review state. Described in [the product object](https://public-api.dapi.digital/docs/reference/products.md#product_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`product.approved`](https://public-api.dapi.digital/docs/reference/events/product.approved.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "product.rejected", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "prd_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "product", "name": "PR Tracker", "slug": "pr-tracker", "category": { "id": "cat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "category", "name": "Desk accessories" }, "review": { "status": "approved", "reason": null }, "publishing": { "is_public": true, "unpublished_by": null, "can_publish": true, "blockers": [] }, "variant_count": 1, "price_range": { "min": { "amount": 5000, "currency": "usd" }, "max": { "amount": 5000, "currency": "usd" } }, "images": [ { "url": "https://cdn.example.com/tracker.png", "primary": true } ], "created_at": "2026-04-21T07:34:06Z", "updated_at": "2026-10-02T11:12:40Z", "description": "A desk tracker for your personal records.", "options": [ { "name": "Color", "values": [ "Black", "Blue" ] } ], "variants": [ { "id": "var_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "variant", "sku": "TRACKER-BLUE", "name": "PR Tracker Blue", "status": "active", "options": [ { "name": "Color", "value": "Blue" } ], "category": null, "pricing": { "price": { "amount": 5000, "currency": "usd" }, "prices_include_vat": true, "costs": { "manufacturing": { "amount": 332, "currency": "usd" }, "extra_parts": { "amount": 40, "currency": "usd" }, "platform_fee": { "amount": 250, "currency": "usd" } }, "earnings": { "amount": 4378, "currency": "usd" } }, "shipping": { "tier": "medium", "determined_by": "volume", "chargeable_weight_grams": 820, "extra_small": false }, "contents": [ { "type": "design", "quantity": 1, "design": { "id": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design", "name": "tracker.3mf" }, "materials": [ { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false } ] }, { "type": "extra", "quantity": 4, "unit_price": { "amount": 10, "currency": "usd" }, "extra": { "id": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "extra", "name": "M3 screw" } } ], "image": null } ], "attachments": [ { "id": "att_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "attachment", "name": "assembly-guide.pdf" } ], "storefront": { "url": "https://dapi.digital/store/acme/pr-tracker", "show_compliance_labels": true, "disclaimers": [ { "title": "Production safety", "text": "Keep away from heat." } ] }, "custom_label_url": null, "compliance": { "object": "product_compliance", "enforced": false, "complete": false, "missing": 1 } }, "previous": { "review": { "status": "pending", "reason": null } }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/product.rejected. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## stock\_batch.purchased Stock batch purchased A stock batch was bought and queued for production, by you or by auto-reorder; `origin` says which. One checkout buying several batches sends one event per batch, sharing `purchase_reference`. Sent as a signed POST to every endpoint subscribed to `stock_batch.purchased`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (StockBatch): One purchase of a stock in one region: how many units were bought, how many are made and how many orders have used. Described in [the stock batch object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_batch_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`stock_batch.completed`](https://public-api.dapi.digital/docs/reference/events/stock_batch.completed.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "stock_batch.purchased", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "bat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock_batch", "stock": { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack" }, "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "status": "queued", "batches": 2, "units": { "purchased": 100, "made": 60, "used": 20, "available": 40 }, "price_paid": { "amount": 60000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "purchase_reference": "ST-8KD2X", "origin": "manual", "purchased_at": "2026-09-30T10:00:00Z", "completed_at": null }, "previous": null, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/stock_batch.purchased. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## stock\_batch.completed Stock batch completed Every unit of a stock batch has been made. Sent as a signed POST to every endpoint subscribed to `stock_batch.completed`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (StockBatch): One purchase of a stock in one region: how many units were bought, how many are made and how many orders have used. Described in [the stock batch object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_batch_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`stock_batch.purchased`](https://public-api.dapi.digital/docs/reference/events/stock_batch.purchased.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "stock_batch.completed", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "bat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock_batch", "stock": { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack" }, "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "status": "completed", "batches": 2, "units": { "purchased": 100, "made": 60, "used": 20, "available": 40 }, "price_paid": { "amount": 60000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "purchase_reference": "ST-8KD2X", "origin": "manual", "purchased_at": "2026-09-30T10:00:00Z", "completed_at": null }, "previous": { "status": "in_production" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/stock_batch.completed. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## stock.low Stock running low A region reached the restock threshold you set (`restock[].when_available_below`, checked when an order draws units). `data.region` names the region. Sent as a signed POST to every endpoint subscribed to `stock.low`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (Stock): Ready-made units you buy in batches ahead of time and that are kept in storage until orders use them. A variant can ship from a stock instead of being printed on demand. Described in [the stock object](https://public-api.dapi.digital/docs/reference/stocks.md#stock_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (object): The region that ran low. - `id` (string): Unique identifier of the region, prefixed with `reg_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `region`. - `name` (string): Display name of the region. **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "stock.low", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "stk_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "stock", "name": "Clicker 50 pack", "description": "Pre-assembled clickers, bagged.", "review": { "status": "approved", "reason": null, "reviewed_at": "2026-05-02T10:00:00Z" }, "units_per_batch": 50, "batch_price": { "amount": 30000, "currency": "usd" }, "unit_price": { "amount": 600, "currency": "usd" }, "contents": [ { "type": "design", "design": { "id": "dsg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "design", "name": "clicker.3mf" } }, { "type": "extra", "extra": { "id": "xtr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "extra", "name": "M3 screw" } } ], "inventory": { "available": 32, "in_production": 18, "by_region": [ { "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "available": 32, "in_production": 18 } ] }, "restock": [ { "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" }, "mode": "auto_buy", "when_available_below": 10, "reorder_units": 50 } ], "images": [ { "url": "https://cdn.example.com/clicker.png", "primary": true } ], "attachments": [ { "id": "att_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "attachment", "name": "packing-guide.pdf" } ], "created_at": "2026-04-30T12:00:00Z", "updated_at": "2026-05-02T10:00:00Z" }, "previous": null, "region": { "id": "reg_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "region", "name": "Western Europe" } } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/stock.low. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## quote.ready Quote ready Integrators only. Slicing finished and the quote is priced: `price` is set, for the file that gets printed (`file.production_version` when 3DAPI adapted your upload, otherwise the upload). Sent once per quote. `data.object` is the quote as get\_quote returns it; its download links were signed when the event was sent and expire 15 minutes later, so fetch the quote for fresh ones. Sent as a signed POST to every endpoint subscribed to `quote.ready`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (Quote): A price for printing one model file. Integrators upload model files to get quotes; until the account is approved, 10 approved quotes are also what 3DAPI reviews to approve the account (see `get_integrator_onboarding`). Described in [the quote object](https://public-api.dapi.digital/docs/reference/quotes.md#quote_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`quote.failed`](https://public-api.dapi.digital/docs/reference/events/quote.failed.md) - [`quote.approved`](https://public-api.dapi.digital/docs/reference/events/quote.approved.md) - [`quote.rejected`](https://public-api.dapi.digital/docs/reference/events/quote.rejected.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "quote.ready", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2", "file": { "name": "phone-stand-v2.3mf", "size_bytes": 2758723, "download_url": "https://files.example.com/public-api/quotes/7f3a/input/phone-stand-v2.3mf?signature=abc", "production_version": { "name": "phone-stand-v2.3mf", "format": "3mf", "size_bytes": 2913004, "download_url": "https://files.example.com/public-api/quotes/7f3a/production/phone-stand-v2.3mf?signature=def", "prepared_at": "2026-10-20T09:12:09Z" } }, "status": "ready", "suggested_materials": [ { "slot": 1, "file_color": "#C12E1F", "file_filament_type": "PLA", "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Red", "custom": false }, "match": "exact" }, { "slot": 3, "file_color": "#0B2A88", "file_filament_type": null, "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false }, "match": "close" } ], "price": { "amount": 1245, "currency": "usd" }, "failure_reason": null, "approval": { "status": "not_submitted", "reason": null }, "created_at": "2026-10-20T09:12:00Z", "finished_at": "2026-10-20T09:13:41Z" }, "previous": { "status": "processing" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/quote.ready. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## quote.failed Quote failed Integrators only. The file could not be priced: slicing failed, took too long and was given up, or could not be started. `failure_reason` says why; upload a corrected file as a new quote. A failed quote no longer counts toward your upload allowance. Sent as a signed POST to every endpoint subscribed to `quote.failed`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (Quote): A price for printing one model file. Integrators upload model files to get quotes; until the account is approved, 10 approved quotes are also what 3DAPI reviews to approve the account (see `get_integrator_onboarding`). Described in [the quote object](https://public-api.dapi.digital/docs/reference/quotes.md#quote_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`quote.ready`](https://public-api.dapi.digital/docs/reference/events/quote.ready.md) - [`quote.approved`](https://public-api.dapi.digital/docs/reference/events/quote.approved.md) - [`quote.rejected`](https://public-api.dapi.digital/docs/reference/events/quote.rejected.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "quote.failed", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2", "file": { "name": "phone-stand-v2.3mf", "size_bytes": 2758723, "download_url": "https://files.example.com/public-api/quotes/7f3a/input/phone-stand-v2.3mf?signature=abc", "production_version": { "name": "phone-stand-v2.3mf", "format": "3mf", "size_bytes": 2913004, "download_url": "https://files.example.com/public-api/quotes/7f3a/production/phone-stand-v2.3mf?signature=def", "prepared_at": "2026-10-20T09:12:09Z" } }, "status": "failed", "suggested_materials": [ { "slot": 1, "file_color": "#C12E1F", "file_filament_type": "PLA", "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Red", "custom": false }, "match": "exact" }, { "slot": 3, "file_color": "#0B2A88", "file_filament_type": null, "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false }, "match": "close" } ], "price": null, "failure_reason": "Slicing did not complete within 15 minutes. The quote was not produced; please try again.", "approval": { "status": "not_submitted", "reason": null }, "created_at": "2026-10-20T09:12:00Z", "finished_at": "2026-10-20T09:13:41Z" }, "previous": { "status": "processing" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/quote.failed. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## quote.approved Quote approved Integrators only. 3DAPI approved the file in your approval request: `approval.status` is `approved` and the file counts toward your account approval. Sent when 3DAPI completes the review of your approval request, with the final decision on the file, just before the outcome event. Sent as a signed POST to every endpoint subscribed to `quote.approved`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (Quote): A price for printing one model file. Integrators upload model files to get quotes; until the account is approved, 10 approved quotes are also what 3DAPI reviews to approve the account (see `get_integrator_onboarding`). Described in [the quote object](https://public-api.dapi.digital/docs/reference/quotes.md#quote_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`quote.ready`](https://public-api.dapi.digital/docs/reference/events/quote.ready.md) - [`quote.failed`](https://public-api.dapi.digital/docs/reference/events/quote.failed.md) - [`quote.rejected`](https://public-api.dapi.digital/docs/reference/events/quote.rejected.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "quote.approved", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2", "file": { "name": "phone-stand-v2.3mf", "size_bytes": 2758723, "download_url": "https://files.example.com/public-api/quotes/7f3a/input/phone-stand-v2.3mf?signature=abc", "production_version": { "name": "phone-stand-v2.3mf", "format": "3mf", "size_bytes": 2913004, "download_url": "https://files.example.com/public-api/quotes/7f3a/production/phone-stand-v2.3mf?signature=def", "prepared_at": "2026-10-20T09:12:09Z" } }, "status": "ready", "suggested_materials": [ { "slot": 1, "file_color": "#C12E1F", "file_filament_type": "PLA", "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Red", "custom": false }, "match": "exact" }, { "slot": 3, "file_color": "#0B2A88", "file_filament_type": null, "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false }, "match": "close" } ], "price": { "amount": 1245, "currency": "usd" }, "failure_reason": null, "approval": { "status": "approved", "reason": null }, "created_at": "2026-10-20T09:12:00Z", "finished_at": "2026-10-20T09:13:41Z" }, "previous": { "approval": { "status": "in_review", "reason": null } }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/quote.approved. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## quote.rejected Quote rejected Integrators only. 3DAPI rejected the file in your approval request; `approval.reason` says why. Rejected quotes cannot be submitted again: upload a corrected file as a new quote. Sent when 3DAPI completes the review of your approval request, with the final decision on the file. Sent as a signed POST to every endpoint subscribed to `quote.rejected`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (Quote): A price for printing one model file. Integrators upload model files to get quotes; until the account is approved, 10 approved quotes are also what 3DAPI reviews to approve the account (see `get_integrator_onboarding`). Described in [the quote object](https://public-api.dapi.digital/docs/reference/quotes.md#quote_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`quote.ready`](https://public-api.dapi.digital/docs/reference/events/quote.ready.md) - [`quote.failed`](https://public-api.dapi.digital/docs/reference/events/quote.failed.md) - [`quote.approved`](https://public-api.dapi.digital/docs/reference/events/quote.approved.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "quote.rejected", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2", "file": { "name": "phone-stand-v2.3mf", "size_bytes": 2758723, "download_url": "https://files.example.com/public-api/quotes/7f3a/input/phone-stand-v2.3mf?signature=abc", "production_version": { "name": "phone-stand-v2.3mf", "format": "3mf", "size_bytes": 2913004, "download_url": "https://files.example.com/public-api/quotes/7f3a/production/phone-stand-v2.3mf?signature=def", "prepared_at": "2026-10-20T09:12:09Z" } }, "status": "ready", "suggested_materials": [ { "slot": 1, "file_color": "#C12E1F", "file_filament_type": "PLA", "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Red", "custom": false }, "match": "exact" }, { "slot": 3, "file_color": "#0B2A88", "file_filament_type": null, "material": { "id": "mat_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "material", "name": "PLA Blue", "custom": false }, "match": "close" } ], "price": { "amount": 1245, "currency": "usd" }, "failure_reason": null, "approval": { "status": "rejected", "reason": "The model has open edges; close the mesh and upload it again." }, "created_at": "2026-10-20T09:12:00Z", "finished_at": "2026-10-20T09:13:41Z" }, "previous": { "approval": { "status": "in_review", "reason": null } }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/quote.rejected. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## approval\_request.approved Account approved Integrators only. Your account became approved: quotes are unlimited and you can place orders. Sent once, when a completed review approves the account or when 3DAPI approves it directly. `data.object` is your latest approval request as get\_approval\_request returns it (still `in_review` when approved directly during a review). Sent as a signed POST to every endpoint subscribed to `approval_request.approved`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (ApprovalRequest): A set of your quotes sent to 3DAPI to approve your integrator account. 3DAPI approves or rejects each file separately; the account is approved once 10 files are approved. Described in [the approval request object](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#approval_request_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`approval_request.changes_requested`](https://public-api.dapi.digital/docs/reference/events/approval_request.changes_requested.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "approval_request.approved", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "apr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "approval_request", "status": "reviewed", "quotes": [ { "quote": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2" }, "decision": "approved", "reason": null } ], "submitted_at": "2026-10-20T10:00:00Z", "reviewed_at": "2026-10-21T08:30:00Z" }, "previous": { "status": "in_review" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/approval_request.approved. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## approval\_request.changes\_requested Changes requested Integrators only. 3DAPI completed the review of your approval request and rejected some files, so your account is not approved yet. Each rejected file in `quotes` has a `reason`; upload corrected files and send a new request (get\_integrator\_onboarding says how many). You get a fresh upload allowance. Sent as a signed POST to every endpoint subscribed to `approval_request.changes_requested`. Signing, retries and deduplication work the same for every event; see [how delivery works](https://public-api.dapi.digital/docs/guides/webhooks.md#delivery). ### Payload The event. - `id` (string): Unique identifier of the event, prefixed with `evt_`. Treat it as an opaque string: store it and compare it, never parse it. - `object` (string): Names the type of this object. Always `event`. - `type` (string) - `created_at` (timestamp): When it happened. - `data` (object): The object as it is now, exactly as its GET endpoint returns it, and what changed. - `object` (ApprovalRequest): A set of your quotes sent to 3DAPI to approve your integrator account. 3DAPI approves or rejects each file separately; the account is approved once 10 files are approved. Described in [the approval request object](https://public-api.dapi.digital/docs/reference/integrator-onboarding.md#approval_request_object). - `previous` (object or null): The fields that changed, with their values before the change. Null when nothing changed, as on creation. - `region` (value or null): Always null: only `stock.low` names a region. ### Related events - [`approval_request.approved`](https://public-api.dapi.digital/docs/reference/events/approval_request.approved.md) **Payload** ```json { "id": "evt_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "event", "type": "approval_request.changes_requested", "created_at": "2026-10-14T10:02:00Z", "data": { "object": { "id": "apr_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "approval_request", "status": "reviewed", "quotes": [ { "quote": { "id": "qte_bfP0GSqKoZFrD72H5Os0rc7HV9XP6eQJu", "object": "quote", "name": "Phone stand v2" }, "decision": "rejected", "reason": "The model has open edges; close the mesh and upload it again." } ], "submitted_at": "2026-10-20T10:00:00Z", "reviewed_at": "2026-10-21T08:30:00Z" }, "previous": { "status": "in_review" }, "region": null } } ``` --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/reference/events/approval_request.changes_requested. Index of every page: https://public-api.dapi.digital/docs/llms.txt. --- ## API reference v1 API v1 is deprecated. It keeps working for existing integrations, but it gets no new features: new integrations should use API v2. v1 lets a designer price STL files (quotes), place orders from completed quotes and pay for them from the wallet, and keep separate books per storefront (stores). ### Production - [QuotesUpload an STL file and get its print price, then poll the quote or wait for its webhook.5 endpoints](https://public-api.dapi.digital/docs/v1/reference/quotes.md) ### Orders - [OrdersOrders placed from completed quotes, their shipping costs, and paying for them from the wallet.7 endpoints](https://public-api.dapi.digital/docs/v1/reference/orders.md) ### Platform - [StoresOne store per storefront you run, so quotes and orders are kept apart per storefront.5 endpoints](https://public-api.dapi.digital/docs/v1/reference/stores.md) - [API keyCheck that an API key works and which account it belongs to.1 endpoint](https://public-api.dapi.digital/docs/v1/reference/api-key.md) ### Authentication Send an API key in the `x-api-key` header. Keys are created on the API keys page of the 3DAPI dashboard. Each operation needs one of the permissions it lists; a key with `FULL` has them all. Permissions: `PRICING` for quotes and stores, `ORDER` for orders, `FULL` for everything. ### Approval The designer order endpoints need an approved account. Create quotes for at least 10 different printable models, then request approval on the API keys page of the dashboard. Until then they answer `403 Forbidden`. ### Rate limiting Requests are limited to 500 per 60-second window per API key. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. Designer accounts also have a daily cap on new quotes, answered with `429 Too Many Requests`. ### Errors Errors have the body `{ "statusCode", "error", "message" }`. `message` is a string, or a list of strings when the request failed validation. ### For AI agents and tools - [v1 OpenAPI documentThe deprecated v1 designer API, for code generators and tools.OpenAPI 3.0](https://public-api.dapi.digital/docs/v1.openapi.json) --- 3DAPI API Docs. This page on the web: https://public-api.dapi.digital/docs/v1/reference. Index of every page: https://public-api.dapi.digital/docs/llms.txt.