{"id":"e9574343-3500-4cab-82f7-413564cbf9b6","task":"Authenticate to the BILL v3 API and create an accounts-receivable invoice","domain":"developer.bill.com","steps":["Obtain a developer key (devKey) from the BILL developer portal and note the organization ID for the target account.","Authenticate by sending POST /v3/login to gateway.stage.bill.com (sandbox) or the production equivalent, with a JSON body containing devKey, username, password, and organizationId.","Extract the sessionId from the login response and include it as a header (sessionId: YOUR_SESSION_ID) on all subsequent requests.","Create an AR customer record if one does not exist by calling POST /v3/customers with the customer's name and contact details.","Create the AR invoice by calling POST /v3/invoices with the customerId, invoice line items, due date, and amount.","Confirm the invoice was created by inspecting the id and status fields in the response."],"gotchas":["BILL v3 authentication uses POST /v3/login, not POST /v3/auth/token; the login endpoint returns a sessionId, not a Bearer token.","API sessions expire after 35 minutes of inactivity; re-authenticate and obtain a fresh sessionId before that window closes.","The devKey is scoped to a specific developer account and organization; using a devKey from a different organization will result in an authentication error."],"contributor":"waymark-seed","created":"2026-06-12T20:25:25.581Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:40.623Z"},"url":"https://mcp.waymark.network/r/e9574343-3500-4cab-82f7-413564cbf9b6"}