Przejdź do głównej zawartości

Referencja API

Dla: Programista

Referencja powstaje automatycznie z publicznego schematu GraphQL przy każdym wydaniu dokumentacji, więc opisuje dokładnie to, co udostępnia API. Opisy operacji i pól są po angielsku, tak jak w schemacie. Każda operacja podaje wymagany zakres, stabilność i wersję Prynt, od której jest dostępna.

Zapytania

  • billingEntitiesBetareference:readThe print shop's own companies that invoice its orders (billing entities), one page at a time, with the total count: what `Order.billingEntityId`, `Client.defa…
  • billingEntityBetareference:readOne billing entity by its identifier; null when there is no such entity.
  • clientBetaclients:readOne client by its identifier; null when there is no such client.
  • clientsBetaclients:readClients, one page at a time, with the total count.
  • clientTagsBetaclients:readEvery tag the print shop marks clients with, by name.
  • currenciesBetareference:readCurrencies the print shop sells in, in its display order: what `Order.currencyId`, `Client.defaultCurrencyId` and `ProductInvoice.currencyId` point at.
  • currentApiKeyBetaThe API key this request was made with: its integration, the scopes it may use, when the key and the approval of the integration expire, and the rate limit.
  • dieCutBetawarehouse:readOne die-cut by its identifier, archived or not; null when there is no such die-cut.
  • dieCutsBetawarehouse:readDie-cuts in the warehouse, one page at a time, with the total count; archived ones only on request (`isArchived`) or when syncing.
  • foilBetawarehouse:readOne foil by its identifier; null when there is no such foil.
  • foilsBetawarehouse:readFoils in the warehouse with their stock, one page at a time, with the total count.
  • machineBetareference:readOne machine by its identifier; null when there is no such machine.
  • machinesBetareference:readMachines of the print shop, one page at a time, with the total count: what `Operation.machineId` and `Task.machineId` point at, decommissioned ones included (`…
  • matricesBetawarehouse:readMatrices in the warehouse, one page at a time, with the total count; archived ones only on request (`isArchived`) or when syncing.
  • matrixBetawarehouse:readOne matrix by its identifier, archived or not; null when there is no such matrix.
  • operationBetaorders:readOne operation of an order by its identifier; null when there is none.
  • operationsBetaorders:readOperations of the orders' elements, one page at a time, with the total count: the shop floor's work by machine, by where production stands (with the production…
  • orderBetaorders:readOne order by its identifier; null when there is no such order.
  • ordersBetaorders:readOrders, one page at a time, with the total count.
  • paintBetawarehouse:readOne paint by its identifier; null when there is no such paint.
  • paintsBetawarehouse:readPaints in the warehouse with their stock, one page at a time, with the total count.
  • paperBetawarehouse:readOne paper by its identifier; null when there is no such paper.
  • papersBetawarehouse:readPapers in the warehouse with their stock, one page at a time, with the total count.
  • productBetaorders:readOne product of an order by its identifier; null when there is no such product.
  • productInvoiceBetainvoices:readOne sales invoice of a product by its identifier; null when there is no such invoice.
  • productInvoicesBetainvoices:readSales invoices of the products of orders, one page at a time, with the total count.
  • purchaseInvoiceBetainvoices:readOne purchase invoice by its identifier; null when there is no such invoice.
  • purchaseInvoicesBetainvoices:readPurchase invoices (from suppliers), one page at a time, with the total count.
  • purchaseOrderBetawarehouse:readOne purchase order by its identifier; null when there is no such order.
  • purchaseOrdersBetawarehouse:readPurchase orders to suppliers, one page at a time, with the total count.
  • referenceDataBetareference:readEntries of one dictionary of the print shop (operation types, color profiles, product categories…), in its display order: what the `…TypeId`, `colorProfileId`…
  • stockMovementsBetawarehouse:readMovements of paper, paint and foil stock — receipts (also purchase-order deliveries), issues, corrections and stock-take adjustments — one page at a time, with…
  • stockTakeBetawarehouse:readOne stock take by its identifier; null when there is no such stock take.
  • stockTakesBetawarehouse:readStock takes, one page at a time, with the total count; newest first unless sorted.
  • supplierBetawarehouse:readOne supplier by its identifier; null when there is no such supplier.
  • suppliersBetawarehouse:readSuppliers of warehouse materials, one page at a time, with the total count.
  • taskBetaproduction:readOne production task by its identifier; null when there is no such task.
  • tasksBetaproduction:readProduction tasks, one page at a time, with the total count: what the shop floor is doing on the operations of orders, with status and times.
  • vatRatesBetareference:readVAT rates the print shop uses on products and invoices, in its display order.

Mutacje

Typy obiektowe

  • AdditionalCostAn additional cost charged on an order or one of its products, for example design work or express handling.
  • BillingEntitiesResultOne page of billing entities and the size of the whole list.
  • BillingEntityA company of the print shop that invoices its orders (a billing entity): the seller's data on its invoices.
  • ClientA client of the print shop — a company, a sole proprietorship or an individual — with its contact persons, addresses, CRM notes and tags.
  • ClientAddressAn address of a client: its headquarters, a delivery address, a warehouse, a billing address.
  • ClientContactA contact person of a client — someone who orders or receives goods — from the client's address book (not a user of Prynt).
  • ClientNoteA CRM note about a client: a call, a meeting, an e-mail or a plain note, by a member of the staff or an integration.
  • ClientsResultPaginated list of clients.
  • ClientTagA tag the print shop marks clients with, for example `VIP` or `Hurt`.
  • CurrencyA currency the print shop sells in.
  • CurrentApiKeyThe API key a request was made with: whose it is, what it may do now and until when.
  • CurrentApiKeyIntegrationThe integration an API key belongs to: the account Prynt shows as the author of its changes.
  • DieCutA die-cut (cutting die) kept in the warehouse: a tool, counted by uses, not by stock.
  • DieCutsResultOne page of die-cuts and the size of the whole list.
  • ElementAn element of a product: a part made separately, for example the cover or the inside pages of a book, with the operations that make it.
  • ElementSpecTechnology of an element of an order, copied from the calculation it was priced with: sheet formats, ups, colours, plates and sheets.
  • FileA file stored in Prynt and attached to a record, for example a print file of a product.
  • FoilA foil kept in the warehouse in rolls (for laminating or stamping), cut into sheets when issued.
  • FoilsResultOne page of foils and the size of the whole list.
  • InitiateUploadResultWhere and how to send the file content: a single HTTP request to `uploadUrl`, then `completeFileUpload`.
  • MachineA machine of the print shop (a press, a cutter, a laminator…): where operations and tasks run.
  • MachinesResultOne page of machines and the size of the whole list.
  • MatricesResultOne page of matrices and the size of the whole list.
  • MatrixA matrix (embossing or stamping die) kept in the warehouse: a tool, counted by uses, not by stock.
  • OperationA production operation on an element, for example printing or laminating, done on one machine.
  • OperationCommentA note for production on an operation, as a label and a value (for example `Papier`: `Kreda 130 g`).
  • OperationsResultOne page of operations and the size of the whole list.
  • OrderA client's order at the print shop: the products to make, for whom, when and how to deliver them, and how the order is paid.
  • OrderContactThe person to contact about an order, as saved on the order (a copy: later changes in the client's records do not change it).
  • OrderDeliveryA delivery address of an order, with the packages and pallets that go there.
  • OrderInvoiceBilling details of an order: who the invoice is made out to.
  • OrderPaymentA payment received for an order, as recorded in Prynt.
  • OrdersResultOne page of orders and the size of the whole list.
  • PageInfoPosition of a page within a paginated list.
  • PaintA paint (ink) kept in the warehouse, with its stock in grams.
  • PaintsResultOne page of paints and the size of the whole list.
  • PaperA paper (or other substrate) kept in the warehouse, with its stock in sheets.
  • PapersResultOne page of papers and the size of the whole list.
  • ProductA product of an order: one item the print shop makes (for example a book or leaflets), with its print run, price and production status.
  • ProductInvoiceA sales invoice the print shop issued for a product of an order, as recorded in Prynt (the invoice itself is issued in the accounting system).
  • ProductInvoicesResultOne page of product invoices and the size of the whole list.
  • ProductionProgressHow far production of an element, a product or an order has got: the roll-up of all its operations.
  • PurchaseInvoiceA purchase invoice: an invoice a supplier issued to the print shop, recorded in the warehouse.
  • PurchaseInvoicesResultOne page of purchase invoices and the size of the whole list.
  • PurchaseOrderAn order of materials from a supplier.
  • PurchaseOrderItemAn item of a purchase order.
  • PurchaseOrdersResultOne page of purchase orders and the size of the whole list.
  • ReferenceDataItemAn entry of a dictionary of the print shop, for example an operation type or a color profile.
  • StockMovementOne change of a material stock: a receipt, an issue, a correction or a stock-take adjustment.
  • StockMovementsResultOne page of stock movements and the size of the whole list.
  • StockTakeA stock take: counting what the warehouse holds.
  • StockTakesResultOne page of stock takes and the size of the whole list.
  • SupplierA supplier of warehouse materials.
  • SupplierMaterialAn entry of a supplier's price list: a material and the price the supplier asks for it.
  • SuppliersResultOne page of suppliers and the size of the whole list.
  • TaskA production task: the shop floor working on one operation of an order, from start to completion.
  • TasksResultOne page of tasks and the size of the whole list.
  • VatRateA VAT rate the print shop uses: what `Product.taxRate` and `ProductInvoice.vatRate` hold.

Typy wejściowe

Enumy

Skalary

  • DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.