POST
/
cards
/
transaction_simulations
/
clearing
/
l2l3
Simulate L2l3
curl --request POST \
  --url https://api.synctera.com/v1/cards/transaction_simulations/clearing/l2l3 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "enhanced_data_id": "ED123456",
  "financial": {
    "tax_id": "TAX123",
    "total_tax_amount": 200,
    "total_tax_amount_indicator": "Indicator"
  },
  "fleet_emv": {
    "employee_number": "EMP001",
    "expanded_fuel_type": "TypeC",
    "fuel_gross_amount": 165,
    "fuel_net_amount": 150,
    "fuel_quantity": 40,
    "fuel_unit_of_measure": "Gallons",
    "fuel_unit_price": 1.1,
    "non_fuel_gross_amount": 275,
    "non_fuel_item_details": [
      {
        "description": "Item description",
        "product_code": "PC001",
        "quantity": 10,
        "unit_of_measure": "Units",
        "unit_price": 15
      }
    ],
    "non_fuel_net_amount": 250,
    "odometer_reading": "654321",
    "service_type": "Repair",
    "trailer_number": "TR002",
    "type_of_purchase": "Non-Fuel",
    "vat_tax_rate": 0.15
  },
  "fleets": {
    "driver_id": "DR789",
    "expanded_fuel_type": "TypeB",
    "fleet_number": "FL123",
    "fuel_gross_amount": 220,
    "fuel_net_amount": 200,
    "fuel_product_qualifier": "QualifierA",
    "fuel_purchase_type": "TypeA",
    "fuel_quantity": 50,
    "fuel_service_type": "ServiceA",
    "fuel_tax_amount": 20,
    "fuel_tax_exemption_status": "Exempt",
    "fuel_type": "Diesel",
    "fuel_unit_of_measure": "Liters",
    "fuel_unit_price": 1.5,
    "job_number": "JN456",
    "non_fuel_gross_amount": 330,
    "non_fuel_item_details": [
      {
        "description": "Item description",
        "product_code": "PC001",
        "quantity": 10,
        "unit_of_measure": "Units",
        "unit_price": 15
      }
    ],
    "non_fuel_net_amount": 300,
    "non_fuel_tax_amount": 30,
    "non_fuel_tax_exemption_status": "Non-Exempt",
    "odometer_reading": "123456",
    "sales_tax_amount": 100,
    "service_type": "Maintenance",
    "type_of_purchase": "Fuel",
    "vat_tax_rate": 0.15,
    "vehicle_id": "VH012"
  },
  "inventory_details": [
    {
      "commodity_code": "COM123",
      "description": "Item description",
      "discount_amount": "5.00",
      "item_detail_taxes": [
        {
          "detail_tax_amount": 1,
          "detail_tax_amount_inclusion_indicator": "Included",
          "detail_tax_amount_indicator": "D",
          "detail_tax_rate": 1,
          "detail_tax_type_applied": "VAT",
          "detail_tax_type_identifier": "VAT123"
        }
      ],
      "item_discount_amount": 500,
      "item_discount_amount_indicator": "D",
      "item_discount_applied_indicator": "true",
      "item_discount_rate": 10,
      "item_extended_amount": 1000,
      "item_extended_amount_indicator": "E",
      "item_total_amount": 1500,
      "item_total_amount_indicator": "T",
      "item_vat_amount": 200,
      "item_vat_rate": 20,
      "product_code": "PROD123",
      "quantity": 10,
      "total_amount": "1500.00",
      "unit_of_measure": "Piece",
      "unit_price": 100,
      "vat_tax_amount": "200.00",
      "vat_tax_rate": "0.20"
    }
  ],
  "original_transaction_id": "<string>",
  "purchase_order": "PO987654"
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

L2l3 details

The body is of type object.

Response

201
application/json

Success

The response is of type object.