bill-and-fire-810

Automates NetSuite Sales Order billing and triggers outbound 810 EDI for Orderful test cycles.

6|6|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/Orderful/orderful-netsuite-skills --skill bill-and-fire-810
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bill-and-fire-810
Source: https://github.com/Orderful/orderful-netsuite-skills/tree/main/skills/bill-and-fire-810
Command: npx skills add https://github.com/Orderful/orderful-netsuite-skills --skill bill-and-fire-810

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotenv, oauth-1.0a, node:path, node:fs, crypto, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the manual NetSuite steps needed to convert shipped Sales Orders into Invoices and then trigger the outbound 810 EDI so Orderful can advance the customer test cycle.

Core Features & Use Cases

  • SO→Invoice transform with correct eligibility checks: Validates each Sales Order is in Pending Billing before attempting the transform, preventing NetSuite refusal and broken downstream EDI.
  • Invoice field verification against historical baseline: Confirms key Invoice values (dates, totals, and Orderful custbody fields) to match expected customer patterns, with a place to PATCH missing fields if required.
  • Outbound trigger orchestration: Sets custbody_orderful_ready_to_process_inv on each new Invoice and waits for the SuiteApp MR to complete, then surfaces the resulting 810 transaction status for validation or JSONata-based fixes.

Quick Start

Run /bill-and-fire-810 with the customer slug and one or more Sales Order internal IDs, for example: /bill-and-fire-810 <slug> 11521567 11521568.

Frequently Asked Questions about bill-and-fire-810

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate NetSuite Sales Order billing into Invoices and trigger an outbound 810 EDI?

You can automate NetSuite Sales Order billing by transforming eligible Pending Billing Sales Orders into Invoices via REST, then setting the custbody_orderful_ready_to_process_inv flag to trigger the outbound 810 EDI. The process polls the SuiteApp MapReduce job to completion and links the resulting customrecord_orderful_transaction rows to Orderful validation outcomes.

When do I need to trigger an 810 invoice EDI transaction from NetSuite?

You trigger an 810 invoice EDI transaction after a Sales Order is shipped and acknowledged via an 855 and 856. You must verify SuiteQL eligibility, transform the Sales Order into an Invoice, and flip the custbody_orderful_ready_to_process_inv flag to start SuiteApp processing for Orderful test cycles.

Can I override the transaction date when transforming a NetSuite Sales Order into an Invoice?

Yes, you can override the transaction date during the REST Sales Order to Invoice transform. After the transform, the process verifies key Invoice values against a historical baseline and allows PATCHing missing fields if required to match expected customer patterns.

How do I verify NetSuite Sales Order eligibility before creating an Invoice?

You verify NetSuite Sales Order eligibility using SuiteQL to check the order is in Pending Billing before attempting the transform. This prevents NetSuite refusal and broken downstream EDI by ensuring only eligible Sales Orders are billed into Invoices.

What happens if the NetSuite SuiteApp MapReduce job fails after triggering the 810 EDI?

The process polls for MapReduce completion after setting the custbody_orderful_ready_to_process_inv flag on each new Invoice. If the job fails, the resulting customrecord_orderful_transaction status is surfaced for validation or JSONata-based fixes to correct the outbound 810 transaction.

Does the Orderful 810 EDI trigger work with Sales Orders that have not been shipped?

No, the 810 EDI trigger applies to end-to-end flows after 855 acknowledgment and 856 shipment. The SuiteQL eligibility verification ensures the Sales Order is in Pending Billing, preventing NetSuite refusal and ensuring the Invoice creation plus outbound 810 trigger only occurs for shipped orders.