Client area

MCP tool · Services & subscriptions

validate_order_contact

Validate the contact details an order will need — country code, phone number (E.164), Swedish person/org-number and VAT rules — before placing an order.

validate_order_contact
R Read
Scope read:orders
Read-onlyIdempotent

Description

Validate the contact details an order will need — country code, phone number (E.164), Swedish person/org-number and VAT rules — before placing an order. Always answers HTTP 200: {valid:true, normalized:{…}} or {valid:false, errors:{field:[…]}}, so fix the fields and retry. It creates nothing and charges nothing. company is required when entity_type=company; organization_number is always required.

Input

Name Type Description
entity_type required enum Whether the contact is a private individual or a company. One of individual, company.
name required string The contact / company name.
email required string The contact email address.
phone_number required string The contact phone number; validated against the country as E.164.
country required string ISO 3166-1 alpha-2 country code, e.g. SE.
street required string Street address.
postalcode required string Postal code.
city required string City.
organization_number required string Organisation / registration number (always required; validated for Swedish contacts).
company string Company name — required when entity_type=company.
vat_number string VAT number, if any; validated when present.
Esc
navigate open Esc close