# CAPA Record JSON Payload Generator

> Source: https://netray.co/tools/capa-record-json-payload-generator
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: Free Tools

## Short answer

Build a clean JSON payload for a corrective and preventive action record to test an API, seed a sandbox or define an integration contract.

## Category

developer

## Audience

- Integration developer
- QMS administrator
- ERP analyst

## Tool

**Kind:** template

**Output:** code

**Language:** json

**Fields:**

#### CAPA number

**Key:** capa_id

**Type:** text

**Default:** CAPA-2026-0042

#### Source NCR number

**Key:** source_ncr

**Type:** text

**Default:** NCR-2026-0317

#### Title

**Key:** title

**Type:** text

**Default:** Burrs on bore of housing PN-48213

#### Type

**Key:** type

**Type:** select

**Options:**

- Corrective
- Preventive

**Default:** Corrective

#### Severity

**Key:** severity

**Type:** select

**Options:**

- Minor
- Major
- Critical

**Default:** Major

#### Root cause

**Key:** root_cause

**Type:** textarea

**Default:** Boring tool wear limit not defined in the work instruction

#### Corrective action

**Key:** action

**Type:** textarea

**Default:** Define tool life limit of 400 parts and add tool change check to the control plan

#### Action owner

**Key:** owner

**Type:** text

**Default:** Manufacturing engineer

#### Due date

**Key:** due_date

**Type:** date

**Default:** 2026-11-30

#### Effectiveness check date

**Key:** check_date

**Type:** date

**Default:** 2027-02-28

**Blocks:**

#### Payload

**Body:** {
  "capaId": "{{capa_id}}",
  "sourceRecords": [
    { "type": "NCR", "id": "{{source_ncr}}" }
  ],
  "title": "{{title}}",
  "type": "{{type}}",
  "severity": "{{severity}}",
  "status": "Open",
  "rootCause": {
    "description": "{{root_cause}}",
    "verified": false
  },
  "actions": [
    {
      "description": "{{action}}",
      "owner": "{{owner}}",
      "dueDate": "{{due_date}}",
      "status": "Planned"
    }
  ],
  "effectivenessCheck": {
    "plannedDate": "{{check_date}}",
    "criteria": "No recurrence of the defect in the next 3 production lots",
    "result": null
  }
}

**Notes:** This is a generic data model for testing and design discussions, not the schema of any specific QMS or ERP. Map the field names to your system's API documentation before use. Do not send test payloads to a production endpoint.

## Content

**Intro:** When quality records need to move between a QMS, an ERP and a dashboard, the first step is agreeing on the fields. This generator produces a readable CAPA JSON payload you can use for API testing or integration design.

**Sections:**

#### How to use the payload

**Body:** Fill in the fields to match a realistic record, then copy the JSON into your API testing tool, a mock server or an integration specification. It shows a model with a link back to the source NCR, a verified flag on the root cause, a list of actions with owners and dates, and a planned effectiveness check. Adjust field names to the target system. Use it to agree with your vendor which fields are mandatory before building the interface.

#### Why these fields matter

**Body:** The model reflects what auditors look for in a CAPA record: the trigger, the verified cause, actions with accountability, and a planned check that the fix worked. Keeping the effectiveness check as a first-class object avoids the common failure of closing a CAPA once actions are done. Linking the CAPA to its source records supports trend reports that show how many NCRs lead to a CAPA, and how long each stays open.

**Bullets:**

- Source link to NCR, audit finding or complaint
- Verified root cause with evidence
- Actions with owner and due date
- Effectiveness criteria stated up front

#### Integration cautions

**Body:** Write-back into a quality system should use the vendor's supported API and a service account with limited rights, and anything that changes a record should be reviewed by a person. Avoid free-text dates; use ISO 8601 format as shown. Plan how attachments such as photos and 8D reports are handled, because many APIs treat them separately from the main record. Test on a sandbox, never on production data.

**Cta:** If you are connecting CAPA data to an ERP, we can help design a read-only integration with human approval for any write-back.

**Faq:**

#### Is this the format of a specific QMS?

**Answer:** No. It is a generic model for design and testing. Each QMS has its own field names and required values, so map this to your vendor's API documentation.

#### Why is the root cause marked verified false?

**Answer:** Because a record is often created before the cause is proven. Setting the flag to true only after evidence is attached prevents unproven causes from being treated as confirmed.

#### Can I add more actions?

**Answer:** Yes. Add more objects to the actions array, each with its own owner and due date. Most CAPAs have a containment action, a corrective action and an update to documents.

#### What date format should I use?

**Answer:** Use ISO 8601 dates, such as 2026-11-30. They sort correctly, avoid day and month confusion between regions, and are accepted by most APIs.

## Search terms

capa json schema, capa api payload example, quality management api json, corrective action record json, capa integration erp qms, capa data model fields, ncr to capa integration, capa rest api test data

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
