Wiggo Systems
API Documentation v.2

Introduktion til Wiggo Systems API

Velkommen til Wiggo Systems API-dokumentation! Vores API er en kraftfuld og fleksibel RESTful tjeneste, designet til at levere en problemfri integration mellem dine applikationer og Wiggo Systems' løsninger. Uanset om du bygger en ny applikation fra bunden eller integrerer med eksisterende systemer, tilbyder vores API en pålidelig og effektiv måde at tilgå og manipulere data på.

Nøglefunktioner

  • HTTP Metoder: Brug standard HTTP metoder som GET, POST, PUT og DELETE til at interagere med ressourcer.
  • Autentificering: Sikrer din kommunikation med en API-nøgle.
  • JSON Format: Al data udveksles i JSON-format for enkel og hurtig manipulation.

Kom i gang

For at begynde at bruge Wiggo Systems API, skal du først generere en API-nøgle gennem Wiggo App. Følg disse trin for at skaffe din API-nøgle:
  1. Log ind på Wiggo App
    Gå til vores officielle hjemmeside og log ind med dine brugeroplysninger.
  2. Naviger til API-sektionen
    Efter login, gå til indstillinger eller API-sektionen på dit dashboard.
  3. Generer API-nøgle
    Klik på "Generer API-nøgle", og en unik nøgle vil blive oprettet for dig.
  4. Gem din API-nøgle sikkert
    Kopier og gem din API-nøgle et sikkert sted. Denne nøgle skal bruges i HTTP headers til authentication i dine API-opkald.
GET

v2/account

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

StoreID
Integer
Unikt Shop ID genereret af Wiggo Systems
UserName
String
Brugernavn til Wiggo Systems
StoreName
String
Visible businessname
StoreAddress
String
StoreAddressNo
String
StorePostalCode
String
StoreCity
String
StoreVAT
String
StorePhone
String
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/account",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/account" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/account",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [StoreID] => Integer
[UserName] => String
[StoreName] => String
[StoreAddress] => String
[StoreAddressNo] => String
[StorePostalCode] => String
[StoreCity] => String
[StoreVAT] => String
[StorePhone] => String
) )
GET

v2/employees

Dette API-endepunkt gør det muligt for en autoriseret bruger at hente en liste over alle medarbejdere. Det kræver, at brugeren er autentificeret.

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/employees",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/employees" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/employees",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
DEL

v2/clients/{id}

Denne endpoint tillader sletning af en specifik ressource identificeret ved dens unikke ID. Når anmodningen udføres korrekt, fjernes ressourcen permanent fra systemet.

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

Success
String
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/clients/{id}",
  CURLOPT_CUSTOMREQUEST => "DEL",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request DEL "https://api.wiggo.dk/v2/clients/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/clients/{id}",
  "method": "DEL",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [Success] => String
) )
GET

v2/clients

Denne endpoint returnerer en liste over alle registrerede klienter i systemet. Anmodningen kræver ingen specifikke parametre og returnerer den komplette klientliste i JSON-format.

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

limit
Optional
Default is 200
from
REQUIRED
format YY-MM-DD
to
REQUIRED
format YY-MM-DD

Response

ClientID
Integer
FirmName
String
Firstname
String
Lastname
String
Kundes efternavn
PhoneCode
String
Phone
String
Email
String
Date
DateTime()
Format YYYY-MM-DD H:i:s.
Saldo
String
Den aktueller klients konto saldo
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/clients/?limit={100}&from={YY-MM-DD}&to={YY-MM-DD}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/clients/?limit={100}&from={YY-MM-DD}&to={YY-MM-DD}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/clients/?limit={100}&from={YY-MM-DD}&to={YY-MM-DD}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [ClientID] => Integer
[FirmName] => String
[Firstname] => String
[Lastname] => String
[PhoneCode] => String
[Phone] => String
[Email] => String
[Date] => DateTime()
[Saldo] => String
) )
GET

v2/clients/{id}

Hent specifik Client baseret på ClientID. Kan multipliceres ved kommaseperation.

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.
ClientID
{id},{id}

Request

Response

ClientID
Integer
Denne endpoint tillader sletning af en specifik ressource identificeret ved dens unikke ID. Når anmodningen udføres korrekt, fjernes ressourcen permanent fra systemet.
FirmName
String
Firstname
String
Lastname
String
Kundes efternavn
PhoneCode
String
Phone
String
Email
String
Date
String
Saldo
String
Den aktueller klients konto saldo
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/clients/{id}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/clients/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/clients/{id}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [ClientID] => Integer
[FirmName] => String
[Firstname] => String
[Lastname] => String
[PhoneCode] => String
[Phone] => String
[Email] => String
[Date] => String
[Saldo] => String
) )
POST

v2/clients

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

FirstName
REQUIRED
LastName
REQUIRED
Email
REQUIRED
PhoneCode
REQUIRED
Landekode
Phone
REQUIRED
Telefonnummer - op til 11 cifre, uden landekode. Ingen mellemrum.

Response

ClientID
Integer
Unikt ID, System genereret
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/clients/?FirstName={str}&LastName={str}&Email={str}&PhoneCode={int}&Phone={int}",
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request POST "https://api.wiggo.dk/v2/clients/?FirstName={str}&LastName={str}&Email={str}&PhoneCode={int}&Phone={int}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/clients/?FirstName={str}&LastName={str}&Email={str}&PhoneCode={int}&Phone={int}",
  "method": "POST",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [ClientID] => Integer
) )
PUT

v2/clients/{id}

Denne endpoint giver mulighed for at opdatere oplysninger om eksisterende klienter i systemet.

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/clients/{id}",
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request PUT "https://api.wiggo.dk/v2/clients/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/clients/{id}",
  "method": "PUT",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
DEL

v2/products/{id}

Denne endpoint tillader sletning af en specifik ressource identificeret ved dens unikke ID. Når anmodningen udføres korrekt, fjernes ressourcen permanent fra systemet.

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/products/{id}",
  CURLOPT_CUSTOMREQUEST => "DEL",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request DEL "https://api.wiggo.dk/v2/products/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/products/{id}",
  "method": "DEL",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
GET

v2/productgroups

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/productgroups",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/productgroups" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/productgroups",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
GET

v2/productgroups/{id}

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/productgroups/{id}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/productgroups/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/productgroups/{id}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
GET

v2/products

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

limit
Optional
Default is 5000

Response

ProductID
Integer
Unik Produkt ID generet af Wiggo Systems
HideFromWeb
Integer
Skjul produktet fra Website
Title
String
Titel på produktet
Url
String
Link til produktet
Description
String
Beskrivelse af produktet
Price
Integer
Produkt pris, uden decimaler og i mindste valør
OfferPrice
Integer
Tilbudspris på produktet uden decimaler og i mindste valør
Date
DateTime()
Format YYYY-MM-DD H:i:s.
GroupTitle
String
GroupID
Integer
Brand
String
BrandID
Integer
BrandLink
String
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/products/?limit={100}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/products/?limit={100}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/products/?limit={100}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [ProductID] => Integer
[HideFromWeb] => Integer
[Title] => String
[Url] => String
[Description] => String
[Price] => Integer
[OfferPrice] => Integer
[Date] => DateTime()
[GroupTitle] => String
[GroupID] => Integer
[Brand] => String
[BrandID] => Integer
[BrandLink] => String
) )
GET

v2/products/{id}

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/products/{id}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/products/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/products/{id}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
GET

v2/invoices

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

from
REQUIRED
format YY-MM-DD
to
REQUIRED
format YY-MM-DD

Response

Customer
Array()
Kundeinformationer pakket ind i et array
InvoiceID
Integer
InvoiceNo
Integer
Fakturanummer i numerisk rækkefølge
Amount
Integer
Total calculated amount of the invoice.
Tax
String
InvoiceDate
DateTime()
Format YYYY-MM-DD H:i:s.
DueDate
DateTime()
Format YYYY-MM-DD H:i:s.
OrderID
Integer
Unikt Ordre ID genereret af Wiggo Systems
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/invoices/?from={YY-MM-DD}&to={YY-MM-DD}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/invoices/?from={YY-MM-DD}&to={YY-MM-DD}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/invoices/?from={YY-MM-DD}&to={YY-MM-DD}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [Customer] => Array()
[InvoiceID] => Integer
[InvoiceNo] => Integer
[Amount] => Integer
[Tax] => String
[InvoiceDate] => DateTime()
[DueDate] => DateTime()
[OrderID] => Integer
) )
GET

v2/invoices/{id}

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

Customer
Array()
Kundeinformationer pakket ind i et array
InvoiceLines
Array()
InvoiceID
Integer
InvoiceNo
Integer
Fakturanummer i numerisk rækkefølge
Amount
Integer
Total calculated amount of the invoice.
Tax
Integer
InvoiceDate
DateTime()
Format YYYY-MM-DD H:i:s.
DueDate
DateTime()
Format YYYY-MM-DD H:i:s.
OrderID
Integer
Unikt Ordre ID genereret af Wiggo Systems
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/invoices/{id}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/invoices/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/invoices/{id}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [Customer] => Array()
[InvoiceLines] => Array()
[InvoiceID] => Integer
[InvoiceNo] => Integer
[Amount] => Integer
[Tax] => Integer
[InvoiceDate] => DateTime()
[DueDate] => DateTime()
[OrderID] => Integer
) )
GET

v2/orders

Alle ordre listet, med mulighed for filtrering

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

OrderID
Integer
Unikt Ordre ID genereret af Wiggo Systems
OrderNo
Integer
Ordrenummer i numerisk rækkefølge
InvoiceNo
Integer
Fakturanummer i numerisk rækkefølge
Terminal
Integer
Terminal hvor Ordren er ekspederet fra
Date
DateTime()
Format YYYY-MM-DD H:i:s.
Customer
Array()
Kundeinformationer pakket ind i et array
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/orders",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/orders" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/orders",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [OrderID] => Integer
[OrderNo] => Integer
[InvoiceNo] => Integer
[Terminal] => Integer
[Date] => DateTime()
[Customer] => Array()
) )
GET

v2/orders/{id}

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

OrderID
Integer
Unikt Ordre ID genereret af Wiggo Systems
OrderNo
Integer
Ordrenummer i numerisk rækkefølge
InvoiceNo
Integer
Fakturanummer i numerisk rækkefølge
Terminal
Integer
Terminal hvor Ordren er ekspederet fra
Date
DateTime()
Format YYYY-MM-DD H:i:s.
Customer
Array()
Kundeinformationer pakket ind i et array
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/orders/{id}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/orders/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/orders/{id}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [OrderID] => Integer
[OrderNo] => Integer
[InvoiceNo] => Integer
[Terminal] => Integer
[Date] => DateTime()
[Customer] => Array()
) )
POST

v2/orders

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/orders",
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request POST "https://api.wiggo.dk/v2/orders" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/orders",
  "method": "POST",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
GET

v2/stocklocations

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/stocklocations",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/stocklocations" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/stocklocations",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
GET

v2/stockreports

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/stockreports",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/stockreports" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/stockreports",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( ) )
GET

v2/articles

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

ArticleID
Integer
Page
String
Title
String
TitleURL
String
Created
String
Tags
String
Image
String
Image_full
String
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/articles",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/articles" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/articles",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [ArticleID] => Integer
[Page] => String
[Title] => String
[TitleURL] => String
[Created] => String
[Tags] => String
[Image] => String
[Image_full] => String
) )
GET

v2/articles/{id}

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.
ArticleID
{id},{id}

Request

Response

ArticleID
Integer
Page
String
Title
String
TitleURL
String
Created
DateTime()
Format YYYY-MM-DD H:i:s.
Tags
String
Image
String
Image_full
String
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/articles/{id}",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/articles/{id}" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/articles/{id}",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [ArticleID] => Integer
[Page] => String
[Title] => String
[TitleURL] => String
[Created] => DateTime()
[Tags] => String
[Image] => String
[Image_full] => String
) )
GET

v2/pages

Alle sider oprettet i backend.

Headers

AppSecretToken
{key}

REQUIRED
Generated Key for secure connection to Wiggo.

Request

Response

PagesID
Integer
Unikt Side ID genereret af Wiggo Systems
Type
String
Hvilken type siden defineres som
Template
String
Hvilken skabelon der er valgt til siden
Logo
String
URL-Sti til logo
MainTitle
String
ContactMail
String
Menubar
Array()
Title
String
Url
String
Description
String
Meta
String
Rotations
Array()
Content
String
Information
Array()
PHP Code
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiggo.dk/v2/pages",
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_USERAGENT => "wiggo",
  CURLOPT_HTTPHEADER => array(
	"AppSecretToken: {key}"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
cURL Code
curl --location --request GET "https://api.wiggo.dk/v2/pages" \
  --header "AppSecretToken: {key}" \
  --data ""
}
Jquery Code
var settings = {
  "url": "https://api.wiggo.dk/v2/pages",
  "method": "GET",
  "timeout": 0,
  "headers": {
	"AppSecretToken": "{key}"
  },
};
Example (JSON)
Array
(
[0] => stdClass Object
( [PagesID] => Integer
[Type] => String
[Template] => String
[Logo] => String
[MainTitle] => String
[ContactMail] => String
[Menubar] => Array()
[Title] => String
[Url] => String
[Description] => String
[Meta] => String
[Rotations] => Array()
[Content] => String
[Information] => Array()
) )