# Parse cXML ShipNoticeRequest (ASN) & Tracking to WMS JSON

**Use case:** 

Extract shipment IDs, carrier names, tracking numbers, related PO references, and shipped line quantities from SAP Ariba and Coupa cXML ShipNoticeRequest (Advance Ship Notice) documents for 3PL, WMS, and ERP receiving.

## Input

```json
{
  "operation_mode": "parse_and_audit_cxml",
  "cxml_documents": [
    "<cXML payloadID=\"asn-20261125-01@3pl.example\" timestamp=\"2026-11-25T08:30:00Z\"><Header><From><Credential domain=\"DUNS\"><Identity>081466849</Identity></Credential></From><To><Credential domain=\"NetworkID\"><Identity>AN01000998877</Identity></Credential></To></Header><Request deploymentMode=\"production\"><ShipNoticeRequest><ShipNoticeHeader shipmentID=\"ASN-2026-9001\" noticeDate=\"2026-11-25T08:00:00Z\" deliveryDate=\"2026-11-28T17:00:00Z\"><Extrinsic name=\"po_order_id\">PO-2026-88410</Extrinsic><Extrinsic name=\"carrier_name\">UPS Freight</Extrinsic><Extrinsic name=\"shipment_identifier\">1Z999AA10123456784</Extrinsic></ShipNoticeHeader><ShipNoticePortion><OrderReference orderID=\"PO-2026-88410\"/><ShipNoticeItem quantity=\"10\" lineNumber=\"10\"><ItemID><SupplierPartID>VLV-SS316-2IN</SupplierPartID></ItemID><UnitOfMeasure>EA</UnitOfMeasure></ShipNoticeItem></ShipNoticePortion></ShipNoticeRequest></Request></cXML>"
  ],
  "invoice_json_payloads": [],
  "strict_math_audit": true,
  "mask_contact_pii": false,
  "max_items": 25
}
```

## Output

```json
{
  "document_type": {
    "label": "Doc Type",
    "format": "string"
  },
  "document_id": {
    "label": "Document / PO / Invoice ID",
    "format": "string"
  },
  "related_order_id": {
    "label": "Ref PO ID",
    "format": "string"
  },
  "from_identity": {
    "label": "From (ANID/DUNS)",
    "format": "string"
  },
  "to_identity": {
    "label": "To (ANID/DUNS)",
    "format": "string"
  },
  "currency": {
    "label": "CCY",
    "format": "string"
  },
  "subtotal_amount": {
    "label": "Subtotal",
    "format": "string"
  },
  "tax_amount": {
    "label": "Tax",
    "format": "string"
  },
  "total_or_due_amount": {
    "label": "Total / Due",
    "format": "string"
  },
  "line_count": {
    "label": "Lines",
    "format": "integer"
  },
  "is_valid": {
    "label": "Valid",
    "format": "boolean"
  },
  "math_reconciled": {
    "label": "Math OK",
    "format": "boolean"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The cXML SAP Ariba & Coupa Order, ASN & Invoice JSON Bridge Actor is ready to run with the inputs already set for "Parse cXML ShipNoticeRequest (ASN) & Tracking to WMS JSON". [Sign up or log in](https://console.apify.com/create-task-from-example/aklk63d391jiB1wmk) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Parse cXML ShipNoticeRequest (ASN) & Tracking to WMS JSON" task

The cXML SAP Ariba & Coupa Order, ASN & Invoice JSON Bridge Actor will start running based on the input automatically. You can also change all the input fields, like operation mode, raw cxml xml documents, and more, to match your specific use case.

### 3. Receive the "Parse cXML ShipNoticeRequest (ASN) & Tracking to WMS JSON" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as doc type, document / po / invoice id, ref po id, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Parse cXML ShipNoticeRequest (ASN) & Tracking to WMS JSON" task via API](https://apify.com/bifrost-data/cxml-ariba-coupa-procurement-bridge.md).

## FAQ

### Does ShipNoticeRequest parsing fail when ASN lines omit unit prices?

No. Price-free ASN ShipNoticeItem lines are handled natively, extracting quantities, UOMs, part IDs, carrier names, and tracking numbers cleanly.

### How is the parent Purchase Order ID linked on incoming ASNs?

The parser extracts related_order_id from both <OrderReference orderID='...'> and PO extrinsic headers for automated 3-way PO-ASN-Invoice matching.

### Can 3PL warehouses trigger this directly from Ariba or Coupa webhooks?

Yes. Forward the raw webhook XML string to this stateless 256MB Actor and receive normalized JSON in milliseconds.

## About this Actor

This example demonstrates how to use [cXML SAP Ariba & Coupa Order, ASN & Invoice JSON Bridge](https://apify.com/bifrost-data/cxml-ariba-coupa-procurement-bridge.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/bifrost-data/cxml-ariba-coupa-procurement-bridge.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/bifrost-data/cxml-ariba-coupa-procurement-bridge.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
