latestOpenAPI 3.0.32026-08-101200629.5 KB

2c51a28d0f48

Empresa
Clientes, Moradas e Email
Clientes

Criar Clientes

Criar Clientes

post/api/customers

Request body

Example request

{
  "data": {
    "attributes": {
      "business_name": "Empresa de Contabilidade",
      "contact_name": "Utilizador",
      "email": "user@email.pt",
      "internal_observations": "Empresa de teste",
      "mobile_number": 939038342,
      "observations": "Empresa de teste",
      "phone_number": 309867004,
      "tax_registration_number": "221976302",
      "website": "https://toconline.pt"
    },
    "type": "customers"
  }
}

Response

Sucesso

Example response

{
  "data": {
    "attributes": {
      "business_name": "Empresa de Contabilidade",
      "contact_name": "Utilizador",
      "country_iso_alpha_2": "PT",
      "email": "testes@testes.pt",
      "internal_observations": "Empresa de teste",
      "mobile_number": "939038342",
      "observations": "Empresa de teste",
      "phone_number": "309867004",
      "tax_country_region": "PT",
      "tax_registration_number": "221976302",
      "website": "http://testes.pt"
    },
    "id": "62",
    "relationships": {
      "addresses": {
        "data": []
      },
      "company": {
        "data": {
          "id": "800000046",
          "type": "current_company"
        }
      },
      "email_addresses": {
        "data": []
      }
    },
    "type": "customers"
  }
}