Developer guide · Version 1

External POS API

Keep checkout and receipts in your POS. Send completed sales and refunds to Simplify Accounting for your accountant to review.

Review only. Importing or reviewing an event does not post a journal, create a payment or contact, change stock, or issue a fiscal receipt.

Quickstart

1. Create a sandbox connection

In Accounting, a company accountant selects the intended company and opens Catalog & Parties → External POS. Create a Sandbox connection for your POS. The key is shown once. Store it in the POS backend's secret store as POS_TOKEN; don't put it in a browser, app bundle, URL, log, or support ticket.

A key is tied to one company, one connection, and one environment. It can send and read the status of its own events only. You don't send a company ID, use the built-in POS, or use PointSimplify credentials.

Sandbox · use synthetic data only
https://accounting.pointsimplify.com/api/integrations/pos/sandbox/v1
Production · separate key for completed sales and refunds
https://accounting.pointsimplify.com/api/integrations/pos/v1

Sandbox submissions stay in the sandbox review queue. When production intake is enabled, a company accountant creates a separate connection in External POS → Production for the selected company. Verify that GET /connection returns environment: "production" and mode: "review_only". Reconcile the first small batch with your accountant before sending more.

2. Verify your key and send a sale

Use HTTPS from your backend or a development terminal. GET /connection returns the environment and mode: "review_only". Download the synthetic sale, then send it to POST /events:

POS_BASE='https://accounting.pointsimplify.com/api/integrations/pos/sandbox/v1'

curl -sS -H "Authorization: Bearer ${POS_TOKEN}" "$POS_BASE/connection"

curl -fsS https://accounting.pointsimplify.com/developers/pos/v1/sale.json -o sale.json
curl -sS -H "Authorization: Bearer ${POS_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data-binary @sale.json "$POS_BASE/events"

202 Accepted means the event was stored, not reviewed or posted. The same response is returned when you retry a previously accepted event:

{"event_id":"demo-event-sale-001","status":"received"}

3. Check review status and send a refund

Ask the accountant to open the sale in the sandbox review queue. Check its status with GET /events/{event_id}. The following synthetic refund returns one of the two units from the sale's first line, to card:

curl -sS -H "Authorization: Bearer ${POS_TOKEN}" \
  "$POS_BASE/events/demo-event-sale-001"

curl -fsS https://accounting.pointsimplify.com/developers/pos/v1/refund.json -o refund.json
curl -sS -H "Authorization: Bearer ${POS_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data-binary @refund.json "$POS_BASE/events"

curl -sS -H "Authorization: Bearer ${POS_TOKEN}" \
  "$POS_BASE/events/demo-event-refund-001"

Payload rules

Send one finalized transaction per request. Only the documented fields are accepted. Keep customer and employee personal data, card numbers and terminal credentials out of every field, including identifiers.

See the OpenAPI contract for field types and response schemas.

Review and refunds

GET /events/{event_id} returns the event ID, status, review reason (if applicable), and UTC timestamps. Status is needs_review, reviewed, or rejected. reviewed means an accountant reviewed the submitted data; it does not mean a sale, payment or refund was posted.

Send a refund as a new refund event with its own sale_id, positive values, and the original transaction's sale_id in original_sale_id. Reuse the original line_id, SKU and VAT treatment/rate for each returned line. The sale and refund must use the same connection and location. An accountant can review the refund only after reviewing its original sale. Reviewed refunds count against the original quantities, net and VAT amounts, and cash/card amounts.

Some systems carry a rounding remainder into the last partial refund. V1 validates the VAT on each refund line independently, so those splits may not reconcile exactly. Preserve the original figures and ask the accountant to reconcile the difference; don't adjust a finalized receipt to fit the API.

original_sale_pending
The original sale has not arrived on this connection. Keep the refund's IDs and submit the original sale if it was not sent.
original_sale_not_reviewed
The original must be reviewed before the refund. Ask the accountant to check it.
refund_location_mismatch
The refund does not match the original location or currency.
refund_line_mismatch
A refund line does not match the original line ID, SKU, VAT treatment or rate.
refund_exceeds_original
The refund exceeds the remaining quantity, net/VAT or tender amount.

Finalized review decisions and accepted payloads cannot be edited through the API. If something was imported incorrectly, ask the accountant to reconcile it before submitting anything else. Don't generate replacement IDs to bypass a conflict.

Retries and limits

Queue outbound events durably in your POS. On a timeout or temporary service failure, retry on the same connection with the same IDs and values. Object key order does not matter, but array order and field values do. If no change is needed, use the same stored body. After an acknowledgment, poll at a reasonable interval or have the accountant check the queue.

400 / 413 / 415
Fix the invalid payload, oversized body, or media type before retrying. Send uncompressed UTF-8 JSON, at most 128 KiB.
401
Check the key and environment with the accountant. A rotated key replaces the old one without changing event history. A revoked key cannot be reused.
404
The status lookup did not find the event on this connection. Check the ID and confirm the original submission was acknowledged.
409
Stop and check for an existing event, conflicting content or a sandbox limit. Don't make a fresh ID for an existing transaction.
429
Back off and respect Retry-After when present. The application limits a connection to 120 requests per minute; shared ingress limits also apply.
503 with production_disabled
Production isn't enabled. Don't keep retrying it; use the sandbox with synthetic data and coordinate rollout with the deployment operator.

Each sandbox connection accepts up to 1,000 distinct events. For support, share the event ID, environment, timestamp and error code with the accountant. Never send the key or any customer or card data.