DocAccord
App · 6 actions
Check letter of credit documents and review credits with DocAccord, and find your cases and past results.
Actions
| Action | What it does |
|---|---|
| Get account | Check the connected key and see its account email and plan. |
| Get check | Get the result of a past LC check. |
| List cases | List your cases, each with whether a credit is saved to it. |
| Pre-check invoice | Check an invoice, and optionally the bill of lading and sales order, against the credit saved with a case. |
| Review credit | Review a letter of credit's terms, as the seller or the buyer, before any documents exist. |
| Run LC check | Check a presentation's documents against the letter of credit. |
Get account
Check the connected key and see its account email and plan.
Inputs
None.
Outputs
dataobject- The response from DocAccord.
Example output
{
"data": {
"account_email": "trade-ops@example.com",
"ok": true,
"plan": "ENTERPRISE"
}
}Get check
Get the result of a past LC check.
Inputs
- Check ID
idnumberRequired - The ID of the check, from Run LC check.
Outputs
dataobject- The response from DocAccord.
Example output
{
"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_referencetext - Only the case for this credit reference number, such as LC-2026-0457.
Outputs
dataobject- The response from DocAccord.
Example output
{
"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_idnumberRequired - The case whose saved credit to check against. Pick one, or use a case ID from List cases.
- Repeat-safe key
idempotency_keytext - 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_filetext - The commercial invoice, as a file (an EN 16931 e-invoice works too). Give this or Invoice text, not both.
- Invoice text
invoice_texttext - The commercial invoice as text. Give this or Invoice file, not both.
- Bill of lading file
bill_of_lading_filetext - The bill of lading as a file, or a DCSA eBL 3.0 JSON file.
- Bill of lading text
bill_of_lading_texttext - The bill of lading as text.
- Sales order file
order_filetext - The sales order, order confirmation, proforma invoice or contract, to compare with the credit.
- Sales order text
order_texttext - The sales order as text, to compare with the credit.
- Sales order data
order_jsontext - 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
strictnesstext - How strictly to check. DocAccord uses Standard if left empty.One of:
STANDARD,STRICT. - Amount to draw
amount_to_be_drawnnumber - 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_datedate - The day you'll present the documents to the bank, so the presentation period is checked too.
Outputs
dataobject- The response from DocAccord.
Example output
{
"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_keytext - 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_filetext - The letter of credit as a PDF, scan or photo. Give this or Credit text, not both.
- Credit text
lc_texttext - The credit as text, such as the pasted MT700 with its MT701s. Give this or Credit file, not both.
- Review as
sidetext - Whose view to take. DocAccord reviews as the seller if left empty.One of:
exporter(Seller (exporter)),importer(Buyer (importer)). - Draft
is_drafttrue/false - Turn on if the credit is a draft still being negotiated. A draft is never saved to a case.
- Sales order file
order_filetext - The sales order, order confirmation, proforma invoice or contract, to compare with the credit.
- Sales order text
order_texttext - The sales order as text, to compare with the credit.
- Save to case
case_idnumber - The case to save the reviewed terms to. Terms are saved only when nothing in the reading is in doubt.
- Save terms
save_to_casetrue/false - Turn on to save the terms to the case for this credit's reference, opening one if needed.
Outputs
dataobject- The response from DocAccord.
Example output
{
"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_keytext - 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_filetext - The letter of credit as a PDF, scan or photo. Give this or Credit text, not both.
- Credit text
lc_texttext - The credit as text, such as the pasted MT700 with its MT701s. Give this or Credit file, not both.
- Invoice file
invoice_filetext - The commercial invoice, as a file (an EN 16931 e-invoice works too). Give this or Invoice text, not both.
- Invoice text
invoice_texttext - The commercial invoice as text. Give this or Invoice file, not both.
- Bill of lading file
bill_of_lading_filetext - The bill of lading as a file, or a DCSA eBL 3.0 JSON file.
- Bill of lading text
bill_of_lading_texttext - The bill of lading as text.
- Sea waybill
sea_waybill_filetext - The sea waybill, if that is the transport document.
- Air waybill
air_transport_doc_filetext - The air transport document, if that is the transport document.
- Multimodal transport document
multimodal_transport_doc_filetext - The multimodal transport document, if that is the transport document.
- Road, rail or inland waterway document
road_rail_inland_waterway_doc_filetext - The road, rail or inland waterway transport document, if that is the transport document.
- Charter party bill of lading
charter_party_bill_of_lading_filetext - The charter party bill of lading, if that is the transport document.
- Courier receipt
courier_receipt_filetext - The courier or post receipt, if that is the transport document.
- Packing list
packing_list_filetext - The packing list, if the credit asks for one.
- Weight list
weight_list_filetext - The weight list, if the credit asks for one.
- Certificate of origin
certificate_of_origin_filetext - The certificate of origin, if the credit asks for one.
- Insurance certificate
insurance_certificate_filetext - The insurance certificate or policy, if the credit asks for one.
- Inspection certificate
inspection_certificate_filetext - The inspection certificate, if the credit asks for one.
- Bill of exchange
bill_of_exchange_filetext - The draft (bill of exchange), if the credit asks for one.
- Beneficiary certificate
beneficiary_certificate_filetext - The beneficiary's certificate, if the credit asks for one.
- Amendment
amendment_filetext - 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_statustext - Whether you've accepted the amendment. DocAccord assumes Pending if left empty. Only with Amendment.One of:
PENDING,ACCEPTED,REJECTED. - Strictness
strictnesstext - How strictly to check. DocAccord uses Standard if left empty.One of:
STANDARD,STRICT. - Amount to draw
amount_to_be_drawnnumber - 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_datedate - The day you'll present the documents to the bank, so the presentation period is checked too.
- Presentation medium
presentation_mediumtext - How the documents go to the bank. It matters only for a credit subject to eUCP.One of:
PAPER,ELECTRONIC,MIXED.
Outputs
dataobject- The response from DocAccord.
Example output
{
"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"
}
}