In order to create a new mexican invoice with international commerce complement, you need to use the /documents endpoint with the proper parameters.

Endpoint: https://api.userow.com/billing/V1/documents

  • Method: POST
  • Required headers:
    • Content-Type: application/json
    • Authorization: Bearer <token>
    • Accept: */*
{
  "header": {
    "account_id": 141,
    "document_type_id": "76",

    "received_issued_flag": 1,
    "issue_date": "2025-01-07",
    "issuer_tax_id_code": "EKU9003173C9",
    "issuer_tax_id_type": "MX-RFC",
    "issuer_legal_name": "<string>",
    "issuer_address": "<string>",
    "issuer_district": "<string>",
    "issuer_city": "<string>",
    "issuer_country_id": "80",
    "issuer_phone": "<string>",
    "issuer_activity": "<string>",
    "receiver_tax_id_code": "EKU9003173C9",
    "receiver_tax_id_type": "MX-RFC",
    "receiver_legal_name": "ESCUELA KEMPER URGATE",
    "receiver_address": "<string>",
    "receiver_district": "<string>",
    "receiver_city": "<string>",
    "receiver_country_id": "80",
    "receiver_phone": "<string>",
    "receiver_activity": "<string>",
    "payment_conditions": "0",
    "currency_id": 31

  },
  "additional": {
	"exports": {
		"terms": "FOB",
		"exchange_rate": 20.6708,
		"total": 1624,
		"origin": {
			"address_street": "CALLE DEL PAPEL",
			"address_city_id": "01",
			"address_county_id": "1961",
			"address_state_id": "45",
			"address_country_id": "80",
			"address_postalcode": "76199"
		},
		"destination": {
			"tax_id_type" : "US-EIN",
			"tax_id_code": "222333444",
			"address_street": "2470 SW 19th",
			"address_state_id": "61",
			"address_country_id": "89",
			"address_postalcode": "00000"
		},
		"merchandise": {
			"details": [
				{
					"customs_code": "2402200100",
					"customs_quantity" : "117.64",
					"sku" : "aa111",
					"customs_measure_unit": "01",
					"customs_unit_value": "13.81",
					"customs_total_value": "1624.00"
				}
			]
		}
	}

  },
  "details": [
    {
      "quantity": 1,
      "sku": "aa111",
      "line_description": "Prueba ROW",
      "unit_measure": "UN",
      "unit_price": 1500,
      "long_description": "Esta es una linea de prueba",
      "modifier_amount": -100,
      "total_taxes": 224,
      "modifier_percentage": 0,
      "total_amount_line": 1624,
      "taxes": [
        {
          "tax_type_id": "362",
          "tax_percentage": 16,
          "tax_amount": 224
        }
      ]
    }
  ],
  "totals": {
    "net_amount": 1400,
    "taxes_amount": 224,
    "total_amount": 1624
  }
}