{"openapi":"3.1.0","info":{"title":"NSN Resolve machine access","version":"1.1.0","description":"Account-owned catalog records consume one shared credit per successful request. MPP purchases fund the same balance used by MCP and bulk jobs."},"servers":[{"url":"https://app.nsnresolve.com"}],"x-service-info":{"categories":["data"],"docs":{"homepage":"https://nsnresolve.com","apiReference":"https://nsnresolve.com/machine-payments.md","llms":"https://nsnresolve.com/llms.txt"}},"x-nsn-mpp-status":"enabled","components":{"securitySchemes":{"accountKey":{"type":"apiKey","in":"header","name":"X-NSN-Key","description":"An API key belonging to a verified NSN Resolve account. Payment authorization is supplied separately."}}},"paths":{"/api/machine/records/{nsn}":{"get":{"operationId":"getMachineRecord","summary":"Read one catalog record for one account credit","security":[{"accountKey":[]}],"parameters":[{"name":"nsn","in":"path","required":true,"schema":{"type":"string","pattern":"^(?:[0-9]{9}|[0-9]{13}|[0-9]{4}-[0-9]{2}-[0-9]{3}-[0-9]{4})$"}}],"responses":{"200":{"description":"Record, catalog date, and usage receipt"},"401":{"description":"Verified account API key required"},"402":{"description":"Account credits exhausted; replenish through account Checkout or enabled MPP"},"404":{"description":"No record; no credit consumed"},"429":{"description":"Rate limited"},"503":{"description":"Unavailable; credit refunded"}}}},"/api/machine/credits":{"post":{"operationId":"buyMachineCredits","summary":"Buy 1,000 non-expiring account credits for $10 through Stripe MPP","security":[{"accountKey":[]}],"description":"Send the same X-NSN-Key and Idempotency-Key on the challenge request and paid retry. Send the MPP credential in Authorization. Never retry a purchase with a new Idempotency-Key while its outcome is unknown.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"x-payment-info":{"method":"stripe","intent":"charge","amount":"1000","currency":"usd","description":"1,000 non-expiring account credits","methodDetails":{"networkId":"profile_61VKFA6SIvZzvv5bjA6VKFA6MjSQScuy593JncOAKOsK","paymentMethodTypes":["card"]}},"responses":{"200":{"description":"Purchased credits and Payment-Receipt; safe duplicate returns same purchase"},"401":{"description":"Verified account API key required"},"402":{"description":"MPP challenge in WWW-Authenticate"},"409":{"description":"Payment in progress, changed credential, or payment held for review"},"410":{"description":"Pending order expired; check account balance before starting another"},"503":{"description":"Provider unavailable or payment awaiting reconciliation; retry same order"}}}}}}