.png)
NewStore Integration Guide
Integrate NewStore retail commerce, order management, inventory, fulfillment, and customer data with enterprise systems through REST APIs, selected event notifications, and OAuth 2.0 authentication.
NewStore integration options at a glance
NewStore’s primary integration mechanism is its documented REST API surface for commerce and retail operations, including Orders, Products, Customers, Locations, Inventory, and fulfillment orders. Selected operational events can support webhook-style or callback-driven workflows, although event coverage and delivery behavior must be confirmed for each API and tenant. OAuth 2.0 bearer access tokens, tenant-specific endpoints, scopes, and client permissions govern access. Bulk or asynchronous operations may be available for selected processes, but no universal bulk API was confirmed. Martini can consume NewStore APIs, receive supported notifications, schedule incremental synchronization, transform payloads, expose callback endpoints, and orchestrate downstream processing.
Common NewStore integration patterns
Common NewStore data objects used in integrations
Authentication and security considerations
OAuth 2.0 and tenant configuration
NewStore API access generally uses OAuth 2.0 bearer access tokens. The grant type, token audience, scopes, client registration, base URL, and tenant configuration can vary by API product and environment.
Secrets and permissions
- Store client secrets, tokens, and environment-specific endpoints in protected Martini configuration or secrets management.
- Request only the permissions required for each workflow, such as order, inventory, fulfillment, or customer access.
- Use separate credentials and endpoints for sandbox and production where NewStore provisions them.
Webhook protection and privacy
Protect callback endpoints using the authentication or signature mechanism specified by NewStore. Minimize customer data passed downstream and avoid logging payment credentials or unnecessary personal information.
Operational considerations for NewStore integrations
Rate limits and pagination
Confirm quotas, burst limits, and pagination behavior for every NewStore API. Use bounded concurrency, exponential backoff for throttling and transient server failures, and checkpoints or overlap windows for incremental reads.
Idempotency and state
Event deliveries and scheduled reads can overlap or repeat. Store source identifiers and correlation keys, use idempotent target operations, and model order and fulfillment statuses as state machines with explicit handling for cancellation, returns, partial fulfillment, and split orders.
Inventory and schema quality
Clarify whether quantities represent available-to-sell, on-hand, reserved, or another measure. Validate required fields and enumerations, monitor additive or breaking schema changes, and prevent stale inventory writes from replacing newer availability.
Testing and reconciliation
Test sandbox and production payloads because tenant configuration can affect fields and behavior. Classify failures, preserve partial batch visibility, and provide reconciliation paths for rejected orders, inventory mismatches, and fulfillment failures.
Why use Martini instead of scripts or point-to-point integrations?
Orchestration across systems
Martini provides a workflow layer for coordinating NewStore API calls, event notifications, ERP or commerce updates, transformation, validation, and reconciliation without embedding the full integration in isolated scripts.
Reusable integration logic
REST consumption, API exposure, mappings, business rules, authentication configuration, and error handling can be organized into maintainable reusable integration assets. This supports different NewStore tenants and downstream contracts without duplicating core logic.
Operational control
Martini can combine scheduled and event-driven processing, checkpointed synchronization, idempotent writes, retry policies, and workflow monitoring. This makes failures and partial processing visible and supports controlled recovery as APIs and business rules evolve.