StillDeep SDK: generate a client in any language

Generate a client for the StillDeep POS API from the .proto files in TypeScript, Python, Go, .NET, Java or Rust, then open a shift and make a sale.

<!-- updated: 2026-11-13 -->

The .proto contracts are public. This guide shows how to generate a client and run a sale.

Overview

Every POS screen talks to POSIntelligenceSvc over gRPC (HTTP/2), on localhost:50051 by default. A sale uses these services:

Service Description .proto
UserService employee sign-in (Authenticate) user.proto
ShiftService open, read, pause and close the shift shift.proto
SalesService cart, payment, finalization sales.proto
CatalogService products, categories, taxes catalog.proto
MemberService members, memberships, wallets member.proto
DeviceService printers, scanners, terminals device.proto
EventService real-time stream of sale events events.proto

DeviceService and EventService are declared in the contract but not served by the current POSIntelligenceSvc: calls return UNIMPLEMENTED.

All services share the types in common.proto (Money, Quantity, Percentage, Pagination, ...). sales.proto imports receipt.proto and dining.proto, and events.proto imports sales.proto and device.proto, so generate them together.

Conventions

  • Package stilldeep.v1. A V2 would be a separate package (V1 has no breaking changes).
  • Money: Money { int64 cents; string currency_code; }. Never double or float.
  • Percentages: Percentage { int64 basis_points; }, the rate in millionths of the whole, as in common.proto: 1000000 = 100%, 99750 = 9.975% (QST), 50000 = 5% (GST). Despite the field name, the unit is not a basis point.
  • Quantities: Quantity { int64 milli_units; }, where 1 unit = 1000 (1500 = 1.5).
  • Timestamps: google.protobuf.Timestamp (UTC).
  • IDs are opaque strings returned by earlier calls. Never hardcode them; take the register ID from your configuration.
  • Errors: standard gRPC status codes, with ErrorDetail in details[] when present.

Call sequence

Every call after OpenShift should carry the open shift ID as gRPC metadata: x-shift-id: <shift_id>. The server rejects a sensitive RPC without it (UNAUTHENTICATED) or with a shift that is not the open shift of this register (PERMISSION_DENIED).

Step RPC Required Notes
1 UserService.Authenticate yes post_id (from configuration), mode = AUTH_MODE_PASSWORD, login, password. Keep user.user_id. If must_change_password is true, call UserService.ChangePassword first.
2 ShiftService.GetCurrentShift optional post_id. Returns the open or paused Shift, or NOT_FOUND.
3 ShiftService.OpenShift yes, if step 2 returned NOT_FOUND post_id, user_id, opening_cash (Money, 0 cents allowed), idempotency_key. Keep shift.shift_id.
4 SalesService.CreateCart yes post_id, idempotency_key. cashier_user_id is optional (defaults to the shift's employee). Keep cart.cart_id.
5 SalesService.AddItem yes, once per item cart_id, one of product_id / sku / barcode, quantity (Quantity, defaults to 1000 = 1 unit), idempotency_key.
6 SalesService.BeginPayment optional cart_id. Moves the cart to checkout. If CartResponse.question is set, send the call again with answers[question.code].
7 SalesService.SelectPaymentMethod optional cart_id, method_code. Begins payment if needed.
8 SalesService.ProcessPayment yes cart_id, method_code, amount (Money), idempotency_key. Selects the method and begins payment if that is not done yet. For split payments, repeat until cart.remaining_due.cents is 0. A card read by a standalone terminal passes its authorization in reference (no integrated terminal is driven: a requires_terminal method is refused terminal_required). A refused payment fails the call with FAILED_PRECONDITION and its code in the x-failure-code trailer (e.g. overpayment): nothing is taken.
9 SalesService.FinalizeTransaction yes cart_id, idempotency_key. Returns transaction with transaction_id and receipt_number.

Payment method codes come from ConfigService.GetPostConfig (config.proto, payment_methods[].code). The client never sends totals: it reads them from CartResponse.cart (grand_total, remaining_due).

idempotency_key: a new UUID for each logical operation, reused when you retry that same operation.

Get the .proto files

The StillDeep source code is private; the client contract is public and versioned. The StillDeep website publishes the .proto files of stilldeep.v1 in one archive. It holds every file except pos_proxy.proto, which is reserved for registers and Server.Service. .NET clients use the StillDeep.Intelligence.Contracts NuGet package.

curl -LO https://stilldeeppos.com/downloads/stilldeep-contracts.zip
unzip stilldeep-contracts.zip && cp -r stilldeep-contracts/protos ./protos

Guides by language

Language Guide
TypeScript / Node.js TypeScript client
Python 3 Python client
Go Go client
.NET use the StillDeep.Intelligence.Contracts NuGet package directly

Other languages with official gRPC support (Java, Kotlin, C++, Rust, Ruby, PHP, Dart, Swift) follow the same pattern: protoc --proto_path=./protos --<lang>_out=./generated protos/*.proto.

Versioning

  • V1 has no breaking changes. New fields are added as proto3 optional.
  • A field stays deprecated for two major versions before it is removed.
  • A breaking change goes to a separate stilldeep.v2.* package.

The generated gRPC reference lists every service, message and call metadata.