Skip to content

Instantly share code, notes, and snippets.

Ilja Zaglov Zaglov

Block or report user

Report or block Zaglov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tracking-links.json
@Zaglov
Zaglov / response.json
Created Feb 17, 2018
ERP: Response batch update stock
View response.json
{
"data": [
{
"sku": "VARTEST.ONE",
"backorders": "no",
"manage_stock": true,
"stock_status": "instock",
"stock": 100,
"expected_to_return": "2018-01-01"
},
@Zaglov
Zaglov / payload.json
Created Feb 17, 2018
ERP: Batch Update Stock
View payload.json
[
{
"sku": "VARTEST.ONE",
"stock": 100,
"stock_status": "instock",
"manage_stock": true,
"backorders": "no",
"expected_to_return":"2018-01-01"
},
{
@Zaglov
Zaglov / response.json
Created Feb 17, 2018
ERP - Batch Update Prices Response
View response.json
{
"data": [
[
{
"regular_price": "100.19",
"sale_price": "99.99",
"name": "B2C Price List",
"slug": "default",
"currency": "EUR",
"sku": "VARTEST.ONE",
@Zaglov
Zaglov / update-prices.json
Created Feb 17, 2018
ERP - Update multiple prices
View update-prices.json
[
{
"sku": "VARTEST.ONE",
"price_list": "default",
"shop": "demo-shop",
"regular_price": "100.19",
"sale_price": "99.99",
"sale_price_dates_from": "",
"sale_price_dates_to": ""
},
View update-prices-response.json
{
"data": [
{
"regular_price": "100.45",
"sale_price": "12.99",
"sale_price_dates_from": "2018-01-01T00:00:00+0100",
"sale_price_dates_to": "2018-02-01T00:00:00+0100",
"name": "default",
"slug": "default",
"currency": "EUR"
View update-product-prices.json
[
{
"regular_price": "100.45",
"sale_price": "12.99",
"sale_price_dates_from": "2018-01-01",
"sale_price_dates_to": "2018-02-01",
"price_list": "default"
},
{
"regular_price": "190.20",
View customer-creation-response.json
{
"data": {
"username": "b2b-test",
"email": "test@foobar.com",
"registrationDate": "2016-01-01T08:43:14+0100",
"lastUpdate": "2018-02-04T15:04:33+0100",
"roles": {
"0": "ROLE_CUSTOMER",
"2": "ROLE_USER"
},
View customer-creation.json
{
"data": {
"user": {
"customer_number": "",
"vat_number": "",
"is_b2b": "1",
"is_b2b_validated": "1",
"price_list": "default",
"custom_discount": "50",
"user_login": "b2b-test",
View multiple-attributes-variation.json
{
"data": {
"sku": "ABC",
"title": "Kurstest",
"slug": "",
"description": "",
"type": "product",
"backorders": "no",
"manage_stock": false,
"stock": null,
You can’t perform that action at this time.