POST

Parse XML string to JSON. Uses xml2js

/v1/xml-json

Conversions · xml2js

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/xml-json
Content-Type: application/json

{
  "xml": "example"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Parse XML string to JSON. Uses xml2js.

Request schema

Body: JSON · application/json

FieldTypeDescription
xmlstringrequired
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/xml-json \
  -H "Content-Type: application/json" \
  -d '{
  "xml": "example"
}'

402 payment flow omitted — see Integrations for settlement.