Skip to content

Instantly share code, notes, and snippets.

View Zaglov's full-sized avatar

Ilja Zaglov Zaglov

View GitHub Profile
{
"data": [
{
"name": "Demo Shop",
"url": "https://my-demoshop.com",
"slug": "demo-shop",
"locale": "en_EN",
"type": "woocommerce"
}
],
{
"data": [
{
"slug": "colors",
"label": "Colors",
"options": [
{
"label": "Red",
"slug": "red"
{
"data": {
(...)
"categories": [
"media",
"some-other-category"
],
"tags": [
"hot"
],
{
"data": {
"sku": "TSHIRT",
"title": "T-Shirt",
"slug": "tshirt",
"description": "Product description",
"type": "product",
"backorders": "yes",
"manage_stock": true,
"stock": 0,
[
{
"available_events": "264",
"current_offset": "0",
"time": "2018-01-09T13:32:10+0100",
"route": "http://erp.test/api/erp/products?key=foo",
"method": "DELETE",
"duration": "0.01"
}
]
{
"data": {
(...)
"attributes": [
{
"label": "Color",
"slug": "color",
"visible": 1,
"variation": false,
@Zaglov
Zaglov / product-deleted.json
Created January 10, 2018 15:31
IMBAA ERP Product Deleted Response
{
"processing_time": 0.04,
"errors": [],
"messages": [
{
"name": "product_not_found",
"message": "The product with the SKU TEST was deleted."
}
],
"event_log": [
@Zaglov
Zaglov / api-response.json
Created January 10, 2018 15:39
Basic API Response of IMBAA ERP
{
"processing_time": 0.04,
"errors": [],
"messages": [
{
"name": "product_not_found",
"message": "The product with the SKU ITA-PROMO was deleted."
}
],
"event_log": [
@Zaglov
Zaglov / private-attribute.json
Last active January 12, 2018 11:47
Send a private product attribute
{
"data": {
(...)
"attributes": [
{
"label": "Important notice",
"slug": "product-note",
"visible": 1,
"taxonomy": false,
"options": [
@Zaglov
Zaglov / schneider-variation.json
Created January 12, 2018 11:52
Beispieldaten für ein Variationsprodukt Sprachschule Schneider
{
"data": {
"sku": "3017-6150",
"title": "Deutsch Diplom Goethe-Zertifikat B1",
"description": "Allgemeine Beschreibung des Kurses",
"type": "product",
"backorders": "no",
"manage_stock": true,
"stock": 7,
"stock_status": "instock",