# DocAccord

> Check letter of credit documents and review credits with DocAccord, and find your cases and past results.

App · 6 actions. Web page: https://docs.lodol.com/docs/integrations/docaccord

## Actions

### Get account

Check the connected key and see its account email and plan.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DocAccord.

**Example output**

```json
{
  "data": {
    "account_email": "trade-ops@example.com",
    "ok": true,
    "plan": "ENTERPRISE"
  }
}
```

### Get check

Get the result of a past LC check.

**Inputs**

- Check ID (`id`, number, required): The ID of the check, from Run LC check.

**Outputs**

- `data` (object): The response from DocAccord.

**Example output**

```json
{
  "data": {
    "compliance_score": 85,
    "created_at": "2026-09-23T09:14:02.118204",
    "findings": [
      {
        "affected_doc_type": "INVOICE",
        "affected_document": "Commercial Invoice #INV-2291",
        "expected_value": "100% cotton men's shirts, style X",
        "explanation_code": "goodsDescExactMismatch",
        "explanation_params": {},
        "field_name": "Goods Description",
        "found_value": "100% cotton men's shirts",
        "requires_acknowledgment": false,
        "rule_reference": "UCP 600 Art. 18(c) / ISBP 821 C3",
        "severity": "CRITICAL_ERROR",
        "suggested_fix_code": "goodsDescExactMismatchFix",
        "suggested_fix_params": {}
      }
    ],
    "id": 1842,
    "lc_reference": "LC-2026-0457",
    "overall_status": "REJECTED_DISCREPANCIES",
    "report_number": "LCC-2026-001842"
  }
}
```

### List cases

List your cases, each with whether a credit is saved to it.

**Inputs**

- Credit reference (`lc_reference`, text): Only the case for this credit reference number, such as LC-2026-0457.

**Outputs**

- `data` (object): The response from DocAccord.

**Example output**

```json
{
  "data": {
    "cases": [
      {
        "credit": {
          "saved": true,
          "saved_at": "2026-09-24T08:12:44.101233",
          "source": "credit_review",
          "terms_available": true,
          "version": 2
        },
        "id": 1842,
        "latest_shipment_date": "2026-10-31",
        "lc_expiry_date": "2026-11-30",
        "lc_reference": "LC-2026-0457"
      }
    ],
    "storage_enabled": true
  }
}
```

### Pre-check invoice

Check an invoice, and optionally the bill of lading and sales order, against the credit saved with a case. Billed as one check.

**Inputs**

- Case (`case_id`, number, required): The case whose saved credit to check against. Pick one, or use a case ID from List cases.
- Repeat-safe key (`idempotency_key`, text): Any text, 8 or more characters, unique to this set of documents. Sending the same key again returns the stored result instead of running and billing a second time.
- Invoice file (`invoice_file`, text): The commercial invoice, as a file (an EN 16931 e-invoice works too). Give this or Invoice text, not both.
- Invoice text (`invoice_text`, text): The commercial invoice as text. Give this or Invoice file, not both.
- Bill of lading file (`bill_of_lading_file`, text): The bill of lading as a file, or a DCSA eBL 3.0 JSON file.
- Bill of lading text (`bill_of_lading_text`, text): The bill of lading as text.
- Sales order file (`order_file`, text): The sales order, order confirmation, proforma invoice or contract, to compare with the credit.
- Sales order text (`order_text`, text): The sales order as text, to compare with the credit.
- Sales order data (`order_json`, text): The sales order as JSON from your own system, such as {"order_number": "5000123", "currency": "EUR", "amount": 248000}. It is compared without being read.
- Strictness (`strictness`, text): How strictly to check. DocAccord uses Standard if left empty. One of: `STANDARD`, `STRICT`.
- Amount to draw (`amount_to_be_drawn`, number): The amount you claim under the credit, in its currency. It decides when the invoice is above the credit. At least 0.
- Presentation date (`presentation_date`, date): The day you'll present the documents to the bank, so the presentation period is checked too.

**Outputs**

- `data` (object): The response from DocAccord.

**Example output**

```json
{
  "data": {
    "case_id": 4711,
    "created_at": "2026-09-23T09:14:02.118204",
    "credit": {
      "case_id": 4711,
      "case_reference": "LC-2026-0457",
      "saved_at": "2026-09-24T08:12:44.101233",
      "source": "credit_review",
      "version": 2
    },
    "documents_checked": [
      "INVOICE"
    ],
    "findings": [
      {
        "affected_doc_type": "INVOICE",
        "affected_document": "Commercial Invoice #INV-2291",
        "expected_value": "100% cotton men's shirts, style X",
        "explanation_code": "goodsDescExactMismatch",
        "explanation_params": {},
        "field_name": "Goods Description",
        "found_value": "100% cotton men's shirts",
        "requires_acknowledgment": false,
        "rule_reference": "UCP 600 Art. 18(c) / ISBP 821 C3",
        "severity": "CRITICAL_ERROR",
        "suggested_fix_code": "goodsDescExactMismatchFix",
        "suggested_fix_params": {}
      }
    ],
    "id": 1842,
    "lc_reference": "LC-2026-0457",
    "order_check": {
      "compared": [
        "buyer",
        "currency",
        "amount"
      ],
      "not_compared": [
        {
          "key": "unit_price",
          "reason": "not_on_order"
        }
      ],
      "order_kind": "OTHER"
    },
    "overall_status": "REJECTED_DISCREPANCIES",
    "report_number": "LCC-2026-001842"
  }
}
```

### Review credit

Review a letter of credit's terms, as the seller or the buyer, before any documents exist. It uses no check.

**Inputs**

- Repeat-safe key (`idempotency_key`, text): Any text, 8 or more characters, unique to this set of documents. Sending the same key again returns the stored result instead of running and billing a second time.
- Credit file (`lc_file`, text): The letter of credit as a PDF, scan or photo. Give this or Credit text, not both.
- Credit text (`lc_text`, text): The credit as text, such as the pasted MT700 with its MT701s. Give this or Credit file, not both.
- Review as (`side`, text): Whose view to take. DocAccord reviews as the seller if left empty. One of: `exporter` (Seller (exporter)), `importer` (Buyer (importer)).
- Draft (`is_draft`, true/false): Turn on if the credit is a draft still being negotiated. A draft is never saved to a case.
- Sales order file (`order_file`, text): The sales order, order confirmation, proforma invoice or contract, to compare with the credit.
- Sales order text (`order_text`, text): The sales order as text, to compare with the credit.
- Save to case (`case_id`, number): The case to save the reviewed terms to. Terms are saved only when nothing in the reading is in doubt.
- Save terms (`save_to_case`, true/false): Turn on to save the terms to the case for this credit's reference, opening one if needed.

**Outputs**

- `data` (object): The response from DocAccord.

**Example output**

```json
{
  "data": {
    "created_at": "2026-09-23T09:14:02.118204",
    "dimensions": [
      {
        "band": "HIGH",
        "colour": "red",
        "finding_ids": [
          "IR-001"
        ],
        "key": "unit_price",
        "score": 25,
        "summary_code": "dimension.payment.HIGH"
      }
    ],
    "error_count": 1,
    "findings": [
      {
        "amendment_strategy": "MUST_FIX",
        "change_basis": "SIDE_OBJECTIVE",
        "counterparty_severity": "CRITICAL_ERROR",
        "dimension": "payment",
        "explanation_code": "goodsDescExactMismatch",
        "explanation_params": {},
        "field_name": "Goods Description",
        "id": "IR-001",
        "requires_acknowledgment": false,
        "rule_reference": "UCP 600 Art. 18(c) / ISBP 821 C3",
        "score_points": 25,
        "severity": "CRITICAL_ERROR",
        "suggested_clause": {
          "clause_id": "LC-INS-02",
          "guidance_code": "clause.insuranceRisks",
          "locked": false,
          "rule_reference": "UCP 600 Art. 18(c) / ISBP 821 C3",
          "wording": "The insurance line in field 46A is amended to state the risks to be covered."
        }
      }
    ],
    "is_draft": false,
    "lc_reference": "LC-2026-0457",
    "overall_status": "BLOCKED",
    "risk_band": "HIGH",
    "risk_score": 25,
    "ruleset_version": "2026-09-29",
    "side": "exporter",
    "warning_count": 0
  }
}
```

### Run LC check

Check a presentation's documents against the letter of credit. Each check is billed like one in the app.

**Inputs**

- Repeat-safe key (`idempotency_key`, text): Any text, 8 or more characters, unique to this set of documents. Sending the same key again returns the stored result instead of running and billing a second time.
- Credit file (`lc_file`, text): The letter of credit as a PDF, scan or photo. Give this or Credit text, not both.
- Credit text (`lc_text`, text): The credit as text, such as the pasted MT700 with its MT701s. Give this or Credit file, not both.
- Invoice file (`invoice_file`, text): The commercial invoice, as a file (an EN 16931 e-invoice works too). Give this or Invoice text, not both.
- Invoice text (`invoice_text`, text): The commercial invoice as text. Give this or Invoice file, not both.
- Bill of lading file (`bill_of_lading_file`, text): The bill of lading as a file, or a DCSA eBL 3.0 JSON file.
- Bill of lading text (`bill_of_lading_text`, text): The bill of lading as text.
- Sea waybill (`sea_waybill_file`, text): The sea waybill, if that is the transport document.
- Air waybill (`air_transport_doc_file`, text): The air transport document, if that is the transport document.
- Multimodal transport document (`multimodal_transport_doc_file`, text): The multimodal transport document, if that is the transport document.
- Road, rail or inland waterway document (`road_rail_inland_waterway_doc_file`, text): The road, rail or inland waterway transport document, if that is the transport document.
- Charter party bill of lading (`charter_party_bill_of_lading_file`, text): The charter party bill of lading, if that is the transport document.
- Courier receipt (`courier_receipt_file`, text): The courier or post receipt, if that is the transport document.
- Packing list (`packing_list_file`, text): The packing list, if the credit asks for one.
- Weight list (`weight_list_file`, text): The weight list, if the credit asks for one.
- Certificate of origin (`certificate_of_origin_file`, text): The certificate of origin, if the credit asks for one.
- Insurance certificate (`insurance_certificate_file`, text): The insurance certificate or policy, if the credit asks for one.
- Inspection certificate (`inspection_certificate_file`, text): The inspection certificate, if the credit asks for one.
- Bill of exchange (`bill_of_exchange_file`, text): The draft (bill of exchange), if the credit asks for one.
- Beneficiary certificate (`beneficiary_certificate_file`, text): The beneficiary's certificate, if the credit asks for one.
- Amendment (`amendment_file`, text): An amendment you haven't answered yet (an MT707 or the bank's letter), to check against the credit as issued and as amended.
- Amendment status (`amendment_status`, text): Whether you've accepted the amendment. DocAccord assumes Pending if left empty. Only with Amendment. One of: `PENDING`, `ACCEPTED`, `REJECTED`.
- Strictness (`strictness`, text): How strictly to check. DocAccord uses Standard if left empty. One of: `STANDARD`, `STRICT`.
- Amount to draw (`amount_to_be_drawn`, number): The amount you claim under the credit, in its currency. It decides when the invoice is above the credit. At least 0.
- Presentation date (`presentation_date`, date): The day you'll present the documents to the bank, so the presentation period is checked too.
- Presentation medium (`presentation_medium`, text): How the documents go to the bank. It matters only for a credit subject to eUCP. One of: `PAPER`, `ELECTRONIC`, `MIXED`.

**Outputs**

- `data` (object): The response from DocAccord.

**Example output**

```json
{
  "data": {
    "compliance_score": 85,
    "created_at": "2026-09-23T09:14:02.118204",
    "findings": [
      {
        "affected_doc_type": "INVOICE",
        "affected_document": "Commercial Invoice #INV-2291",
        "expected_value": "100% cotton men's shirts, style X",
        "explanation_code": "goodsDescExactMismatch",
        "explanation_params": {},
        "field_name": "Goods Description",
        "found_value": "100% cotton men's shirts",
        "requires_acknowledgment": false,
        "rule_reference": "UCP 600 Art. 18(c) / ISBP 821 C3",
        "severity": "CRITICAL_ERROR",
        "suggested_fix_code": "goodsDescExactMismatchFix",
        "suggested_fix_params": {}
      }
    ],
    "id": 1842,
    "lc_reference": "LC-2026-0457",
    "overall_status": "REJECTED_DISCREPANCIES",
    "report_number": "LCC-2026-001842"
  }
}
```
