Companies

Index

GET https://gofundo.nl/api/companies

Returns an overview of all companies with relationships (with exception to applications).

[
    {
        "id": 1,
        "name": "Webtraders",
        "kvk": "69599076",
        "street": "Regulusweg 123",
        "streetnumber": "11",
        "postalcode": "2516AC",
        "city": "Den Haag",
        "country": "Nederland",
        "created_at": "2020-06-25T09:29:05.000000Z",
        "updated_at": "2020-06-25T09:41:54.000000Z"
    }
]

Create by KVK

POST https://gofundo.nl/api/companies

Request Body

Name
Type
Description

kvk

string

Create

POST https://gofundo.nl/api/companies

Request Body

Name
Type
Description

postalcode

string

country

string

Full country name

city

string

streetnumber

string

House number with addition

street

string

name

string

kvk

string

Valid KVK number

{
    "id": 1,
    "name": "Webtraders",
    "kvk": "69599076",
    "street": "Regulusweg 123",
    "streetnumber": "11",
    "postalcode": "2516AC",
    "city": "Den Haag",
    "country": "Nederland",
    "created_at": "2020-06-25T13:40:45.000000Z",
    "updated_at": "2020-06-25T13:41:05.000000Z"
}

Show

GET https://gofundo.nl/api/companies/:id

{
    "id": 1,
    "name": "Test VOF Guus",
    "kvk": "69599076",
    "street": "Benny Goodmanstraat",
    "streetnumber": "60",
    "postalcode": "1311RB",
    "city": "Almere",
    "country": "Nederland",
    "created_at": "2020-06-26T12:30:01.000000Z",
    "updated_at": "2020-06-26T12:30:01.000000Z",
    "clients": [
        {
            "id": 1,
            "company_id": 1,
            "name": "Arnoud van Dorp",
            "email": "[email protected]",
            "phone": null,
            "created_at": "2020-06-26T14:15:19.000000Z",
            "updated_at": "2020-06-26T14:15:19.000000Z"
        }
    ],
    "intercompanies": [
        {
            "id": 1,
            "company_id": 1,
            "name": "Webtraders",
            "created_at": "2020-06-26T14:16:23.000000Z",
            "updated_at": "2020-06-26T14:16:23.000000Z"
        },
        {
            "id": 2,
            "company_id": 1,
            "name": "Learnspot",
            "created_at": "2020-06-26T14:16:28.000000Z",
            "updated_at": "2020-06-26T14:16:28.000000Z"
        }
    ]
}

Update

PUT https://gofundo.nl/api/companies/:id

Request Body

Name
Type
Description

postalcode

string

country

string

city

string

streetnumber

string

street

string

name

string

Last updated

Was this helpful?