Shops and payment accounts, run now
shopsShopify and Amazon, run on request. action=status: the connected Shopify stores and Amazon seller accounts, when each last ran and what came in, and Amazon's own sales figures of today per seller account (read). action=book_day with connection_id and day (YYYY-MM-DD): that day's Shopify orders proposed as one entry (once per shop and day; a repeat gives the same proposal). action=payouts with connection_id: Shopify Payments payouts and their transactions fetched now. action=products with connection_id: the store's products taken into Octobooks' products. action=amazon_pull with connection_id: new Amazon settlements fetched now and put forward once each, file kept. action=fba_count with connection_id and marketplace (GB, DE, FR, ...): Amazon's FBA Manage Inventory report taken as the count of the company's FBA warehouse; the difference is a count move there, SKUs that are no product are listed. action=locations with connection_id and mapping {Shopify location: warehouse} (Main warehouse for the company's own): Shopify's on hand per location taken as the count of each mapped warehouse; a store with one location counts it as the Main warehouse; unmapped locations are named and not counted. action=paddle_day with day: a company that sells through Paddle has that day's completed Paddle sales proposed as one entry, a sale to each Paddle company at what Paddle pays out (once a day). action=paddle_refunds: every approved Paddle refund or chargeback not yet in the books proposed as one entry. The daily jobs do the same at 06:20 (Shopify orders) and 06:30 (Amazon); this is for now. Stripe and PayPal: action=pay_payouts lists payouts taken apart into sales, refunds and fees with their bank line; action=pay_pull reads the connected accounts; action=pay_file with provider (stripe or paypal), label and content_base64 reads the provider's report for an account of that name; provider daily with label (the till's name) and a CSV of Date and Gross proposes each day's gross takings as sales at the standard rate (a retailer's daily takings, Notice 733 section 10); action=pay_propose with payout_id proposes one payout on its bank line, its fees under the exempt purchase code (UK_IN_EXEMPT, box 7; DE_IN_0, AT_IN_0) or the fee_tax_code given; action=pay_settle proposes everything ready, Amazon payouts included; action=pay_sales with connection_id and per_order (true: the account's payments are sales, false: they settle invoices). action=order_mode with connection_id and per_order (true: each order its own sales document, lines by VAT rate, shipping and the discount apart; false: one entry per day, the default). action=hospitality_mode with connection_id and hospitality (true: a restaurant, café or hotel store's day goes through the hospitality VAT split by category, food, drinks, rooms, service charge, tips; false: Shopify's tax lines). action=orders_from with connection_id and day: Book orders from, the day the store's orders start in the books (default the day it was connected; the daily job catches up missed days of the last week from that day on); every day since not yet proposed is proposed at once; without day the answer is that day. Everything proposed is booked on release by whoever this company lets release. Round 891: action=connect with provider (stripe, paypal, square, sumup, paddle, staffology or peppol) and key (the key the owner handed over: Stripe restricted key rk_live_, PayPal client_id:secret, Square EAAA token, SumUp merchant:key, Paddle API key, Staffology API key, the Peppol access point's API key) connects that account under the owner's switch ai_sets_provider_keys (Automatic posting, on until the owner switches it off); label names a payment account, fields {env: live or sandbox} for Paddle, {employer} for Staffology, {ap_company, participant, secret, test_network} for Peppol (test_network is needed unless a Peppol connection is live). The key is sealed at once and is in no answer. A connect where none of that kind is live stands on Home with Undo for 7 days; where a connection of that kind is live, connect is an ask on Home naming the account it replaces, confirmed by the owner. action=disconnect with provider (shopify, amazon, stripe, paypal, square, sumup, paddle) and connection_id (where more than one is live) disconnects it as Settings, Apps does, under the owner's setting for settings changes by the AI: set to apply at once it ends now, Ask me (default) it waits for the owner's one tap; what it read stays. Needs the right propose for every action but status and order. Round 913: action=order with key (the order's name, #1001) or fields {document_id}: an order the books keep (booked one per order) with its lines, shipping, VAT, total and refunds, and order_pdf, the page that downloads it as a PDF order confirmation. Round 1082: action=unleashed_read: the connected Unleashed account read (GET only) and its sales invoices, credit notes, supplier bills and stock journals proposed once each, a changed document reversed and booked again; status names the account with the stock account against Unleashed's stock on hand. The owner connects Unleashed on Shops and payouts. Round 1236, Account mapping (Channels): action=mapping with provider (amazon, the default, or shopify) reads every transaction type with its group, account, VAT treatment, source (A2X, History, Default, Set) and the VAT variance to Amazon's invoices; action=mapping_set with fields {kind: group, type or sales, key, account, vat} sets one row (vat: a VAT code of the books, none, auto, or empty for the group's); action=mapping_import with content_base64 (A2X's mapping export, CSV or Excel) proposes its accounts; action=mapping_approve takes every proposal over. The three that write need the right propose.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "shops"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | ||
| key | No | ||
| label | No | ||
| action | No | status | |
| fields | No | ||
| company | No | ||
| mapping | No | ||
| provider | No | ||
| payout_id | No | ||
| per_order | No | ||
| hospitality | No | ||
| marketplace | No | GB | |
| fee_tax_code | No | ||
| connection_id | No | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||