Skip to main content

API Workflows

Xano workspace 4 exposes REST APIs organized by domain. All endpoints require authentication unless noted.

API Groups

GroupDescriptionTag
productsProduct catalog CRUDAR:products
b2bDistributors, contacts, purchase ordersAR:b2b
financeInvoices, payments, AR agingAR:financials
integrationsExternal system syncAR:integrations
agentsAI-powered automationAR:agents
webhooksInbound from Shopify, Xero, StripeAR:webhooks

Products API

CRUD operations for the product catalog.

Endpoints

MethodPathDescription
GET/productsList all products
GET/products/{product_id}Get single product
POST/productsCreate product
PATCH/products/{product_id}Update product
GET/variantsList all variants
POST/variantsCreate variant
PATCH/variants/{variant_id}Update variant

B2B API

Manage distributors, contacts, and purchase orders.

Distributors

MethodPathDescription
GET/distributorsList distributors
GET/distributors/{distributor_id}Get distributor
POST/distributorsCreate distributor
PATCH/distributors/{distributor_id}Update distributor

Contacts

MethodPathDescription
GET/contactsList contacts
POST/contactsCreate contact
PATCH/contacts/{contact_id}Update contact

Purchase Orders

MethodPathDescription
GET/purchase-ordersList POs
GET/purchase-orders/{po_id}Get PO details
POST/purchase-ordersCreate PO
PATCH/purchase-orders/{po_id}Update PO
POST/purchase-orders/{po_id}/confirmConfirm PO
POST/purchase-orders/{po_id}/linesAdd line items

AI-Powered PO Processing

MethodPathDescription
POST/pdf_parsingParse PDF purchase order via AI
POST/create_order_from_parsedCreate PO from parsed data

Finance API

Invoice management, payments, and AR tracking.

Invoices

MethodPathDescription
GET/invoicesList invoices
GET/invoices/{invoice_id}Get invoice
POST/invoicesCreate invoice
PATCH/invoices/{invoice_id}Update invoice
POST/invoices/{invoice_id}/sendSend invoice email
POST/invoices/{invoice_id}/xeroPush to Xero

Payments

MethodPathDescription
POST/paymentsRecord payment

AR Management

MethodPathDescription
GET/ar-agingAR aging report
POST/purchase-orders/{po_id}/invoiceGenerate invoice from PO

Integrations API

Sync status and triggers for external systems.
MethodPathDescription
GET/statusIntegration health check
POST/xero/push-invoice/{invoice_id}Push invoice to Xero
POST/shopify/sync-productsSync products to Shopify
POST/shopify/sync-inventorySync inventory levels

AI Agents API

AI-powered automation for PO parsing and AR collection.
MethodPathDescription
POST/po-parseParse PO document (AI agent)
POST/ar-nudge/{invoice_id}Send AR reminder for single invoice
POST/ar-nudge/batchBatch AR nudge for overdue invoices

Webhooks API

Inbound webhooks from external systems.
MethodPathDescription
POST/shopify/ordersShopify order created/updated
POST/shopify/productsShopify product sync
POST/xero/invoicesXero invoice webhook
POST/stripe/paymentsStripe payment events

AI Agents

PO Parser

Automatically extracts line items from PDF purchase orders. Capabilities:
  • Parses variable PDF formats from different distributors
  • Extracts: PO number, line items, quantities, SKUs
  • Returns confidence score (0-1)
  • Creates draft PO for human review
Trigger: Email attachment to [email protected] or manual upload

AR Nudger

Sends automated payment reminders for overdue invoices. Capabilities:
  • Generates personalized reminder emails
  • Escalates tone based on days overdue
  • Tracks nudge history per invoice
  • Respects contact preferences
Trigger: Scheduled task or manual batch trigger

Functions

Reusable backend functions.
FunctionDescription
b2b/process_parsed_poProcess AI-parsed PO data into draft order
generate_invoice_htmlGenerate HTML invoice view (trigger)

Authentication

All APIs use JWT authentication via the Authentication group:
MethodPathDescription
POST/auth/loginLogin with email/password
POST/auth/signupCreate new user
GET/auth/meGet current user
GET/reset/request-reset-linkRequest password reset
POST/reset/magic-link-loginLogin via magic link
POST/reset/update_passwordUpdate password