Colors

GET {domain}/api/colors?since={since}

Get colors

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "colors": [
        {
            "id": 1,
            "code": "Aqua",
            "description": null,
            "priority": 21,
            "hex": "#b7e0d8",
            "is_white": false,
            "deleted": false,
            "updated_at": "2017-05-09T02:50:43.693"
        }
    ]
}
                                    
GET {domain}/api/colors?id={id}

Get color

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "color": {
        "id": 1,
        "code": "Aqua",
        "description": null,
        "priority": 21,
        "hex": "#b7e0d8",
        "is_white": false,
        "deleted": false,
        "updated_at": "2017-05-09T02:50:43.693"
    }
}
                                    

Sizes

GET {domain}/api/sizes?since={since}

Get sizes

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "sizes": [
        {
            "id": 1,
            "code": "Extra Small",
            "description": null,
            "priority": 28,
            "deleted": false,
            "updated_at": "2017-05-01T06:42:48.927"
        }
    ]
}
                                    
GET {domain}/api/sizes?id={id}

Get size

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "size": {
        "id": 1,
        "code": "Extra Small",
        "description": null,
        "priority": 28,
        "deleted": false,
        "updated_at": "2017-05-01T06:42:48.927"
    }
}
                                    

Print areas

GET {domain}/api/print_areas?since={since}

Get print areas

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "print_areas": [
        {
            "id": 1,
            "code": "Front",
            "description": null,
            "priority": 1,
            "width": 4200,
            "height": 4800,
            "deleted": false,
            "updated_at": "2016-10-16T23:19:04.987"
        }
    ]
}
                                    
GET {domain}/api/print_areas?id={id}

Get print area

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "print_area": {
        "id": 1,
        "code": "Front",
        "description": null,
        "priority": 1,
        "width": 4200,
        "height": 4800,
        "deleted": false,
        "updated_at": "2016-10-16T23:19:04.987"
    }
}
                                    

Shops

GET {domain}/api/shops?since={since}

Get shops

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "shops": [
        {
            "id": 1,
            "name": "ogo-dev",
            "endpoint": "ogo-dev.myshopify.com",
            "api_key": "449004e967922dfc3e47402152bef851",
            "api_password": "aa7bd68f6167f9fa1fc8d850187bd101",
            "token": "cb34f1d6aa49d066f8cce31f021b6e49",
            "active": true,
            "created_at": "2016-08-29T07:45:59.683",
            "updated_at": "2020-06-01T13:44:45.167",
            "auto_size_setting": false,
            "shop_name": null,
            "shop_email": null,
            "shop_domain": null,
            "shop_created_at": null,
            "shop_updated_at": null,
            "shop_province": null,
            "shop_country": null,
            "shop_address1": null,
            "shop_zip": null,
            "shop_city": null,
            "shop_source": null,
            "shop_phone": null,
            "shop_owner": null,
            "merchant_location_id": null,
            "fulfillment_services": []
        }
    ]
}
                                    
GET {domain}/api/shops?id={id}

Get shop

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "shop": {
        "id": 1,
        "name": "ogo-dev",
        "endpoint": "ogo-dev.myshopify.com",
        "api_key": "449004e967922dfc3e47402152bef851",
        "api_password": "aa7bd68f6167f9fa1fc8d850187bd101",
        "token": "cb34f1d6aa49d066f8cce31f021b6e49",
        "active": true,
        "created_at": "2016-08-29T07:45:59.683",
        "updated_at": "2020-06-01T13:44:45.167",
        "auto_size_setting": false,
        "shop_name": null,
        "shop_email": null,
        "shop_domain": null,
        "shop_created_at": null,
        "shop_updated_at": null,
        "shop_province": null,
        "shop_country": null,
        "shop_address1": null,
        "shop_zip": null,
        "shop_city": null,
        "shop_source": null,
        "shop_phone": null,
        "shop_owner": null,
        "merchant_location_id": null,
        "fulfillment_services": []
    }
}
                                    

Users

GET {domain}/api/users?since={since}

Get users

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "users": [
        {
            "id": "023fa0f7-2e48-4bca-9362-19d46e721296",
            "email": "giorgi.nakeuri8@gmail.com",
            "user_name": "giorgi.nakeuri8@gmail.com",
            "created_at": "2019-04-15T08:35:17.727"
        }
    ]
}
                                    
GET {domain}/api/users?id={id}

Get user

For authentication pass correct key in request header "x-ogo-access-token"

id

string - not nullable

{
    "user": {
        "id": "023fa0f7-2e48-4bca-9362-19d46e721296",
        "email": "giorgi.nakeuri8@gmail.com",
        "user_name": "giorgi.nakeuri8@gmail.com",
        "created_at": "2019-04-15T08:35:17.727"
    }
}
                                    

User shops

GET {domain}/api/user_shops?since={since}

Get user shops

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "user_shops": [
        {
            "id": 6,
            "user_id": "d2c0b421-0cc3-4dfb-a03f-c0986dea55b6",
            "shop_id": 1,
            "created_at": "2016-08-29T07:45:59.687"
        }
    ]
}
                                    
GET {domain}/api/user_shops?user_id={user_id}

Get user shops

For authentication pass correct key in request header "x-ogo-access-token"

user_id

string - not nullable

{
    "user_shops": [
        {
            "id": 6,
            "user_id": "d2c0b421-0cc3-4dfb-a03f-c0986dea55b6",
            "shop_id": 1,
            "created_at": "2016-08-29T07:45:59.687"
        }
    ]
}
                                    

User accounts

GET {domain}/api/user_accounts?since={since}

Get user accounts

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "user_accounts": [
        {
            "user_id": "023fa0f7-2e48-4bca-9362-19d46e721296",
            "chargebee_id": "HqVjt18RUK9oW02dRH",
            "created_at": "2019-06-24T14:57:20.59"
        }
    ]
}
                                    
GET {domain}/api/user_accounts?user_id={user_id}

Get user account

For authentication pass correct key in request header "x-ogo-access-token"

user_id

string - not nullable

{
    "user_account": {
        "user_id": "023fa0f7-2e48-4bca-9362-19d46e721296",
        "chargebee_id": "HqVjt18RUK9oW02dRH",
        "created_at": "2019-06-24T14:57:20.59"
    }
}
                                    

User bank details

GET {domain}/api/user_bank_details?since={since}

Get user bank details

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "user_bank_details": [
        {
            "user_id": "3594bd1a-9e19-414d-a678-1c09d828b61b",
            "bank_name": "Commonwealth Bank of Australia",
            "account_name": "The Aussie Huntress",
            "account_number": "10162011",
            "created_at": "2018-10-15T22:05:30.21",
            "updated_at": "2018-10-15T22:05:52.903"
        }
    ]
}
                                    
GET {domain}/api/user_bank_details?user_id={user_id}

Get user bank details

For authentication pass correct key in request header "x-ogo-access-token"

user_id

string - not nullable

{
    "user_bank_details": [
        {
            "user_id": "3594bd1a-9e19-414d-a678-1c09d828b61b",
            "bank_name": "Commonwealth Bank of Australia",
            "account_name": "The Aussie Huntress",
            "account_number": "10162011",
            "created_at": "2018-10-15T22:05:30.21",
            "updated_at": "2018-10-15T22:05:52.903"
        }
    ]
}
                                    

Base skus

GET {domain}/api/base_skus?since={since}

Get base skus

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "base_skus": [
        {
            "id": 1,
            "code": "AS_1001",
            "title": "AS Colour - Canvas Tote 'Carrie' Bag",
            "description": "Say goodbye to boring supermarket carry bags!",
            "base_price": null,
            "retail_price1": null,
            "retail_price2": null,
            "priority": 1,
            "deleted": true,
            "enabled": true,
            "catalog_image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/24/003275cddbc14297a4dea30501efcd91.png",
            "updated_at": "2017-03-24T00:38:31.817"
        }
    ]
}
                                    
GET {domain}/api/base_skus?id={id}

Get base sku

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "base_sku": {
        "id": 1,
        "code": "AS_1001",
        "title": "AS Colour - Canvas Tote 'Carrie' Bag",
        "description": "Say goodbye to boring supermarket carry bags!",
        "base_price": null,
        "retail_price1": null,
        "retail_price2": null,
        "priority": 1,
        "deleted": true,
        "enabled": true,
        "catalog_image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/24/003275cddbc14297a4dea30501efcd91.png",
        "updated_at": "2017-03-24T00:38:31.817"
    }
}
                                    

Base sku size colors

GET {domain}/api/base_sku_size_colors?since={since}

Get base sku size colors

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "base_sku_size_colors": [
        {
            "id": 1,
            "base_sku_id": 1,
            "size_id": 1,
            "color_id": 1,
            "stock": 1000,
            "price": 107.65,
            "client_price": 107.65,
            "weight_in_grams": 100,
            "print_classification_id": 1,
            "blocked": true,
            "deleted": false,
            "updated_at": "2017-10-11T10:51:21+10:30"
        }
    ]
}
                                    
GET {domain}/api/base_sku_size_colors?id={id}

Get base sku size color

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "base_sku_size_color": {
        "id": 1,
        "base_sku_id": 1,
        "size_id": 1,
        "color_id": 1,
        "stock": 1000,
        "price": 107.65,
        "client_price": 107.65,
        "weight_in_grams": 100,
        "print_classification_id": 1,
        "blocked": true,
        "deleted": false,
        "updated_at": "2017-10-11T10:51:21+10:30"
    }
}
                                    
PUT {domain}/api/base_sku_size_colors

Updates base sku size color details

For authentication pass correct key in request header "x-ogo-access-token"

{
	"id": 1,
	"stock": 1000
}
                                    

Products

GET {domain}/api/products?shop={shop}&since={since}&page={page}&size={size}

Get products

For authentication pass correct key in request header "x-ogo-access-token"

shop

int - nullable

since

date - nullable

page

int - not nullable

size

int - not nullable

{
    "products": [
        {
            "id": 1,
            "shopify_id": "8291712203",
            "title": "111",
            "description": "111",
            "main_print_area_id": 1,
            "main_color_id": 1,
            "deleted": false,
            "created_at": "2017-03-09T08:33:33.87",
            "updated_at": null,
            "deleted_at": null,
            "print_areas": [
                {
                    "id": 15,
                    "base_sku_id": 40,
                    "print_area_id": 1,
                    "user_design_image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Uploads/2017/03/09/af4110e397d24518aa82a519cefce2cd.png",
                    "width": 528,
                    "height": 264,
                    "top": 0,
                    "left": 44,
                    "final_design_image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Mockups/2017/03/09/27507cc6667643e08dca4e3a3c9ad191.png",
                    "cropped_final_design_image": null,
                    "cropped_final_design_center_offset_x": null,
                    "cropped_final_design_center_offset_y": null,
                    "deleted": false,
                    "created_at": "2017-03-09T08:33:33.887",
                    "updated_at": null,
                    "deleted_at": null
                }
            ],
            "variants": [
                {
                    "id": 351,
                    "shopify_id": "28069496011",
                    "price": 23,
                    "base_price": null,
                    "print_price": null,
                    "cost": null,
                    "color": 1,
                    "size": 2,
                    "product_print_area_id": 15,
                    "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/2d01525d777f4a48bbe2030139c75ac2.png",
                    "deleted": false,
                    "created_at": "2017-03-09T08:33:33.887",
                    "updated_at": null,
                    "deleted_at": null
                },
                {
                    "id": 352,
                    "shopify_id": "28069496075",
                    "price": 23,
                    "base_price": null,
                    "print_price": null,
                    "cost": null,
                    "color": 1,
                    "size": 3,
                    "product_print_area_id": 15,
                    "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/2d01525d777f4a48bbe2030139c75ac2.png",
                    "deleted": false,
                    "created_at": "2017-03-09T08:33:33.887",
                    "updated_at": null,
                    "deleted_at": null
                },
                {
                    "id": 353,
                    "shopify_id": "28069496139",
                    "price": 23,
                    "base_price": null,
                    "print_price": null,
                    "cost": null,
                    "color": 2,
                    "size": 2,
                    "product_print_area_id": 15,
                    "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/8fb0af98aca3404cbe0e051b9d2553a0.png",
                    "deleted": false,
                    "created_at": "2017-03-09T08:33:33.887",
                    "updated_at": null,
                    "deleted_at": null
                },
                {
                    "id": 354,
                    "shopify_id": "28069496203",
                    "price": 23,
                    "base_price": null,
                    "print_price": null,
                    "cost": null,
                    "color": 2,
                    "size": 3,
                    "product_print_area_id": 15,
                    "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/8fb0af98aca3404cbe0e051b9d2553a0.png",
                    "deleted": false,
                    "created_at": "2017-03-09T08:33:33.887",
                    "updated_at": null,
                    "deleted_at": null
                },
                {
                    "id": 355,
                    "shopify_id": "28069496267",
                    "price": 23,
                    "base_price": null,
                    "print_price": null,
                    "cost": null,
                    "color": 31,
                    "size": 2,
                    "product_print_area_id": 15,
                    "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/8adc225259734349a20b227f264469d2.png",
                    "deleted": false,
                    "created_at": "2017-03-09T08:33:33.887",
                    "updated_at": null,
                    "deleted_at": null
                },
                {
                    "id": 356,
                    "shopify_id": "28069496331",
                    "price": 23,
                    "base_price": null,
                    "print_price": null,
                    "cost": null,
                    "color": 31,
                    "size": 3,
                    "product_print_area_id": 15,
                    "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/8adc225259734349a20b227f264469d2.png",
                    "deleted": false,
                    "created_at": "2017-03-09T08:33:33.887",
                    "updated_at": null,
                    "deleted_at": null
                }
            ],
            "shop": {
                "id": 236,
                "name": "testingstore1234567test",
                "endpoint": "testingstore1234567test.myshopify.com",
                "api_key": null,
                "api_password": null,
                "token": null,
                "active": false,
                "created_at": "0001-01-01T00:00:00",
                "updated_at": "2019-08-14T17:01:03.607",
                "auto_size_setting": false,
                "shop_name": null,
                "shop_email": null,
                "shop_domain": null,
                "shop_created_at": null,
                "shop_updated_at": null,
                "shop_province": null,
                "shop_country": null,
                "shop_address1": null,
                "shop_zip": null,
                "shop_city": null,
                "shop_source": null,
                "shop_phone": null,
                "shop_owner": null,
                "merchant_location_id": null,
                "fulfillment_services": null
            }
        }
    ]
}
                                    
GET {domain}/api/products?id={id}

Get product

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "product": {
        "id": 1,
        "shopify_id": "8291712203",
        "title": "111",
        "description": "111",
        "main_print_area_id": 1,
        "main_color_id": 1,
        "deleted": false,
        "created_at": "2017-03-09T08:33:33.87",
        "updated_at": null,
        "deleted_at": null,
        "print_areas": [
            {
                "id": 15,
                "base_sku_id": 40,
                "print_area_id": 1,
                "user_design_image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Uploads/2017/03/09/af4110e397d24518aa82a519cefce2cd.png",
                "width": 528,
                "height": 264,
                "top": 0,
                "left": 44,
                "final_design_image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Mockups/2017/03/09/27507cc6667643e08dca4e3a3c9ad191.png",
                "cropped_final_design_image": null,
                "cropped_final_design_center_offset_x": null,
                "cropped_final_design_center_offset_y": null,
                "deleted": false,
                "created_at": "2017-03-09T08:33:33.887",
                "updated_at": null,
                "deleted_at": null
            }
        ],
        "variants": [
            {
                "id": 351,
                "shopify_id": "28069496011",
                "price": 23,
                "base_price": null,
                "print_price": null,
                "cost": null,
                "color": 1,
                "size": 2,
                "product_print_area_id": 15,
                "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/2d01525d777f4a48bbe2030139c75ac2.png",
                "deleted": false,
                "created_at": "2017-03-09T08:33:33.887",
                "updated_at": null,
                "deleted_at": null
            },
            {
                "id": 352,
                "shopify_id": "28069496075",
                "price": 23,
                "base_price": null,
                "print_price": null,
                "cost": null,
                "color": 1,
                "size": 3,
                "product_print_area_id": 15,
                "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/2d01525d777f4a48bbe2030139c75ac2.png",
                "deleted": false,
                "created_at": "2017-03-09T08:33:33.887",
                "updated_at": null,
                "deleted_at": null
            },
            {
                "id": 353,
                "shopify_id": "28069496139",
                "price": 23,
                "base_price": null,
                "print_price": null,
                "cost": null,
                "color": 2,
                "size": 2,
                "product_print_area_id": 15,
                "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/8fb0af98aca3404cbe0e051b9d2553a0.png",
                "deleted": false,
                "created_at": "2017-03-09T08:33:33.887",
                "updated_at": null,
                "deleted_at": null
            },
            {
                "id": 354,
                "shopify_id": "28069496203",
                "price": 23,
                "base_price": null,
                "print_price": null,
                "cost": null,
                "color": 2,
                "size": 3,
                "product_print_area_id": 15,
                "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/8fb0af98aca3404cbe0e051b9d2553a0.png",
                "deleted": false,
                "created_at": "2017-03-09T08:33:33.887",
                "updated_at": null,
                "deleted_at": null
            },
            {
                "id": 355,
                "shopify_id": "28069496267",
                "price": 23,
                "base_price": null,
                "print_price": null,
                "cost": null,
                "color": 31,
                "size": 2,
                "product_print_area_id": 15,
                "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/8adc225259734349a20b227f264469d2.png",
                "deleted": false,
                "created_at": "2017-03-09T08:33:33.887",
                "updated_at": null,
                "deleted_at": null
            },
            {
                "id": 356,
                "shopify_id": "28069496331",
                "price": 23,
                "base_price": null,
                "print_price": null,
                "cost": null,
                "color": 31,
                "size": 3,
                "product_print_area_id": 15,
                "image": "https://sydney-image-bucket-dev.s3.amazonaws.com/Admin/2017/03/09/8adc225259734349a20b227f264469d2.png",
                "deleted": false,
                "created_at": "2017-03-09T08:33:33.887",
                "updated_at": null,
                "deleted_at": null
            }
        ],
        "shop": {
            "id": 236,
            "name": "testingstore1234567test",
            "endpoint": "testingstore1234567test.myshopify.com",
            "api_key": null,
            "api_password": null,
            "token": null,
            "active": false,
            "created_at": "0001-01-01T00:00:00",
            "updated_at": "2019-08-14T17:01:03.607",
            "auto_size_setting": false,
            "shop_name": null,
            "shop_email": null,
            "shop_domain": null,
            "shop_created_at": null,
            "shop_updated_at": null,
            "shop_province": null,
            "shop_country": null,
            "shop_address1": null,
            "shop_zip": null,
            "shop_city": null,
            "shop_source": null,
            "shop_phone": null,
            "shop_owner": null,
            "merchant_location_id": null,
            "fulfillment_services": null
        }
    }
}
                                    
POST {domain}/api/products

Adds product to the queue

For authentication pass correct key in request header "x-ogo-access-token"

{
    "print_type": 1,
    "shop_id": 1,
    "user_id": "e58e1a88-cd31-4642-be2c-e739522b1b51",
    "base_sku_id": 11,
    "title": "rest 1 title",
    "description": "rest 1 description",
    "price": 10,
    "collection_name": "collection_name",
    "collection_description": "collection_description",
    "vendor": "vendor",
    "is_hidden": true,
    "main_print_area_id": 1,
    "main_color_id": 31,
    "html_mockup_ratio": 1600,
    "sizes": [5],
    "tags": null,
    "prints": [
        {
            "print_area_id": 1,
            "color_id": 31,
            "image_url": "https://i.stack.imgur.com/ILTQq.png",
            "top": 0,
            "left": 15,
            "width": 641,
            "height": 6768,
            "customisations": [
                {
                    "text": "Text 1",
                    "number_of_characters": 10,
                    "font_id": 1,
                    "font_size": 56,
                    "bold": false,
                    "italic": false,
                    "color": "#000000",
                    "top": 0,
                    "left": 0,
                    "width": 140,
                    "height": 68,
                    "align": 0,
                    "enable": true
                }
            ]
        }
    ]
}
                                    
{
    "queue_id": 1
}
                                

Orders

GET {domain}/api/orders?shop={shop}&since={since}&page={page}&size={size}

Get orders

For authentication pass correct key in request header "x-ogo-access-token"

shop

int - nullable

since

date - nullable

page

int - not nullable

size

int - not nullable

{
    "orders": [
        {
            "id": "100012228638",
            "reference": 1,
            "email": "christo.weber@gmail.com",
            "closed_at": "2017-10-11T10:51:21+10:30",
            "created_at": "2017-10-09T13:26:24+10:30",
            "updated_at": "2017-10-11T10:51:21+10:30",
            "total_price": 107.65,
            "currency": "AUD",
            "financial_status": "paid",
            "confirmed": true,
            "total_discounts": 0,
            "total_line_items_price": 80,
            "name": "#6776",
            "cancelled_at": null,
            "cancel_reason": null,
            "processed_at": "2017-10-09T13:26:24+10:30",
            "fulfillment_status": "fulfilled",
            "contact_email": "christo.weber@gmail.com",
            "note": null,
            "updated_date": "2018-10-12T18:35:03.2",
            "is_sample": false,
            "shipping_first_name": "Christopher",
            "shipping_address1": "Unit 1006",
            "shipping_phone": "+61417271505",
            "shipping_city": "Richmond",
            "shipping_zip": "3121",
            "shipping_province": "Victoria",
            "shipping_country": "Australia",
            "shipping_last_name": "Weber",
            "shipping_address2": "140 Swan Street",
            "shipping_company": "",
            "shipping_latitude": "-37.8128137",
            "shipping_longitude": "145.0111032",
            "shipping_name": "Christopher Weber",
            "shipping_country_code": "AU",
            "shipping_province_code": "VIC",
            "billing_first_name": "Christopher",
            "billing_address1": "Unit 1006",
            "billing_phone": "+61417271505",
            "billing_city": "Richmond",
            "billing_zip": "3121",
            "billing_province": "Victoria",
            "billing_country": "Australia",
            "billing_last_name": "Weber",
            "billing_address2": "140 Swan Street",
            "billing_company": "",
            "billing_latitude": "-37.8128137",
            "billing_longitude": "145.0111032",
            "billing_name": "Christopher Weber",
            "billing_country_code": "AU",
            "billing_province_code": "VIC",
            "shipping_price": 0,
            "status": 7,
            "shipping_lines": [
                {
                    "id": "72740306974",
                    "title": "Express post up to 5 kilo (no scooters, inlines or skateboards)",
                    "price": 27.7,
                    "code": "Express post up to 5 kilo (no scooters, inlines or skateboards)",
                    "source": "shopify",
                    "phone": null,
                    "carrier_identifier": null,
                    "deleted": false
                }
            ],
            "line_items": [
                {
                    "id": "188507226142",
                    "order_id": "100012228638",
                    "title": "Triple 8 Certified Helmet Gun Metal",
                    "quantity": 1,
                    "price": 79.95,
                    "cost": null,
                    "base_price": null,
                    "print_price": null,
                    "sku": "Triple 8 Certified Helmet Gun Metal-3",
                    "variant_title": "L/XL (59-61cm) SweatSaver Liner",
                    "name": "Triple 8 Certified Helmet Gun Metal - L/XL (59-61cm) SweatSaver Liner",
                    "total_discount": 0,
                    "fulfillment_service": null,
                    "fulfillment_status": "fulfilled",
                    "product_id": "8222512133",
                    "variant_id": "32348985221",
                    "status": 7,
                    "status_reason": null,
                    "deleted": false,
                    "color_id": null,
                    "size_id": null,
                    "user_color_id": null,
                    "user_size_id": null,
                    "base_sku_id": null,
                    "print_area_id1": null,
                    "mockup_image1": null,
                    "design_image1": null,
                    "design_image_width1": null,
                    "design_image_height1": null,
                    "cropped_design_image1": null,
                    "cropped_design_image_width1": null,
                    "cropped_design_image_height1": null,
                    "cropped_design_image_offset_x1": null,
                    "cropped_design_image_offset_y1": null,
                    "print_area_id2": null,
                    "mockup_image2": null,
                    "design_image2": null,
                    "design_image_width2": null,
                    "design_image_height2": null,
                    "cropped_design_image2": null,
                    "cropped_design_image_width2": null,
                    "cropped_design_image_height2": null,
                    "cropped_design_image_offset_x2": null,
                    "cropped_design_image_offset_y2": null,
                    "print_area_id3": null,
                    "mockup_image3": null,
                    "design_image3": null,
                    "design_image_width3": null,
                    "design_image_height3": null,
                    "cropped_design_image3": null,
                    "cropped_design_image_width3": null,
                    "cropped_design_image_height3": null,
                    "cropped_design_image_offset_x3": null,
                    "cropped_design_image_offset_y3": null,
                    "print_area_id4": null,
                    "mockup_image4": null,
                    "design_image4": null,
                    "design_image_width4": null,
                    "design_image_height4": null,
                    "cropped_design_image4": null,
                    "cropped_design_image_width4": null,
                    "cropped_design_image_height4": null,
                    "cropped_design_image_offset_x4": null,
                    "cropped_design_image_offset_y4": null,
                    "user_id": null
                }
            ],
            "fulfillment": null,
            "shop": {
                "id": 9,
                "name": "skatescool-shop",
                "endpoint": "skatescool-shop.myshopify.com",
                "api_key": null,
                "api_password": null,
                "token": null,
                "active": false,
                "created_at": "0001-01-01T00:00:00",
                "updated_at": "2019-08-14T17:01:03.607",
                "auto_size_setting": false,
                "shop_name": null,
                "shop_email": null,
                "shop_domain": null,
                "shop_created_at": null,
                "shop_updated_at": null,
                "shop_province": null,
                "shop_country": null,
                "shop_address1": null,
                "shop_zip": null,
                "shop_city": null,
                "shop_source": null,
                "shop_phone": null,
                "shop_owner": null,
                "merchant_location_id": null,
                "fulfillment_services": null
            }
        }
    ]
}
                                    
GET {domain}/api/orders?id={id}

Get order

For authentication pass correct key in request header "x-ogo-access-token"

id

string - not nullable

{
    "order": {
        "id": "100012228638",
        "reference": 1,
        "email": "christo.weber@gmail.com",
        "closed_at": "2017-10-11T10:51:21+10:30",
        "created_at": "2017-10-09T13:26:24+10:30",
        "updated_at": "2017-10-11T10:51:21+10:30",
        "total_price": 107.65,
        "currency": "AUD",
        "financial_status": "paid",
        "confirmed": true,
        "total_discounts": 0,
        "total_line_items_price": 80,
        "name": "#6776",
        "cancelled_at": null,
        "cancel_reason": null,
        "processed_at": "2017-10-09T13:26:24+10:30",
        "fulfillment_status": "fulfilled",
        "contact_email": "christo.weber@gmail.com",
        "note": null,
        "updated_date": "2018-10-12T18:35:03.2",
        "is_sample": false,
        "shipping_first_name": "Christopher",
        "shipping_address1": "Unit 1006",
        "shipping_phone": "+61417271505",
        "shipping_city": "Richmond",
        "shipping_zip": "3121",
        "shipping_province": "Victoria",
        "shipping_country": "Australia",
        "shipping_last_name": "Weber",
        "shipping_address2": "140 Swan Street",
        "shipping_company": "",
        "shipping_latitude": "-37.8128137",
        "shipping_longitude": "145.0111032",
        "shipping_name": "Christopher Weber",
        "shipping_country_code": "AU",
        "shipping_province_code": "VIC",
        "billing_first_name": "Christopher",
        "billing_address1": "Unit 1006",
        "billing_phone": "+61417271505",
        "billing_city": "Richmond",
        "billing_zip": "3121",
        "billing_province": "Victoria",
        "billing_country": "Australia",
        "billing_last_name": "Weber",
        "billing_address2": "140 Swan Street",
        "billing_company": "",
        "billing_latitude": "-37.8128137",
        "billing_longitude": "145.0111032",
        "billing_name": "Christopher Weber",
        "billing_country_code": "AU",
        "billing_province_code": "VIC",
        "shipping_price": 0,
        "status": 7,
        "shipping_lines": [
            {
                "id": "72740306974",
                "title": "Express post up to 5 kilo (no scooters, inlines or skateboards)",
                "price": 27.7,
                "code": "Express post up to 5 kilo (no scooters, inlines or skateboards)",
                "source": "shopify",
                "phone": null,
                "carrier_identifier": null,
                "deleted": false
            }
        ],
        "line_items": [
            {
                "id": "188507226142",
                "order_id": "100012228638",
                "title": "Triple 8 Certified Helmet Gun Metal",
                "quantity": 1,
                "price": 79.95,
                "cost": null,
                "base_price": null,
                "print_price": null,
                "sku": "Triple 8 Certified Helmet Gun Metal-3",
                "variant_title": "L/XL (59-61cm) SweatSaver Liner",
                "name": "Triple 8 Certified Helmet Gun Metal - L/XL (59-61cm) SweatSaver Liner",
                "total_discount": 0,
                "fulfillment_service": null,
                "fulfillment_status": "fulfilled",
                "product_id": "8222512133",
                "variant_id": "32348985221",
                "status": 7,
                "status_reason": null,
                "deleted": false,
                "color_id": null,
                "size_id": null,
                "user_color_id": null,
                "user_size_id": null,
                "base_sku_id": null,
                "print_area_id1": null,
                "mockup_image1": null,
                "design_image1": null,
                "design_image_width1": null,
                "design_image_height1": null,
                "cropped_design_image1": null,
                "cropped_design_image_width1": null,
                "cropped_design_image_height1": null,
                "cropped_design_image_offset_x1": null,
                "cropped_design_image_offset_y1": null,
                "print_area_id2": null,
                "mockup_image2": null,
                "design_image2": null,
                "design_image_width2": null,
                "design_image_height2": null,
                "cropped_design_image2": null,
                "cropped_design_image_width2": null,
                "cropped_design_image_height2": null,
                "cropped_design_image_offset_x2": null,
                "cropped_design_image_offset_y2": null,
                "print_area_id3": null,
                "mockup_image3": null,
                "design_image3": null,
                "design_image_width3": null,
                "design_image_height3": null,
                "cropped_design_image3": null,
                "cropped_design_image_width3": null,
                "cropped_design_image_height3": null,
                "cropped_design_image_offset_x3": null,
                "cropped_design_image_offset_y3": null,
                "print_area_id4": null,
                "mockup_image4": null,
                "design_image4": null,
                "design_image_width4": null,
                "design_image_height4": null,
                "cropped_design_image4": null,
                "cropped_design_image_width4": null,
                "cropped_design_image_height4": null,
                "cropped_design_image_offset_x4": null,
                "cropped_design_image_offset_y4": null,
                "user_id": null
            }
        ],
        "fulfillment": null,
        "shop": {
            "id": 9,
            "name": "skatescool-shop",
            "endpoint": "skatescool-shop.myshopify.com",
            "api_key": null,
            "api_password": null,
            "token": null,
            "active": false,
            "created_at": "0001-01-01T00:00:00",
            "updated_at": "2019-08-14T17:01:03.607",
            "auto_size_setting": false,
            "shop_name": null,
            "shop_email": null,
            "shop_domain": null,
            "shop_created_at": null,
            "shop_updated_at": null,
            "shop_province": null,
            "shop_country": null,
            "shop_address1": null,
            "shop_zip": null,
            "shop_city": null,
            "shop_source": null,
            "shop_phone": null,
            "shop_owner": null,
            "merchant_location_id": null,
            "fulfillment_services": null
        }
    }
}
                                    
PUT {domain}/api/orders

Updates order details

For authentication pass correct key in request header "x-ogo-access-token"

{
	"id": "2768914481221",
	"line_items": [
		
		{
			"id": "5986819670085",
			"status" : 4
		}
	],
	"fulfillment": {
			"tracking_company": "australia post",
			"tracking_details": [
				{
					"tracking_number": "55"
				}
			]
		}
}
                                    

Print classifications

GET {domain}/api/print_classifications?since={since}

Get print classifications

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "print_classifications": [
        {
            "id": 1,
            "name": "name",
            "print_price1": 1,
            "print_price2": 2,
            "print_price3": 3,
            "print_price4": 4,
            "special_print_area_id1": 1,
            "special_price1": 1,
            "special_print_area_id2": 2,
            "special_price2": 2,
            "deleted": false,
            "updated_at": "2017-05-09T02:50:43.693"
        }
    ]
}
                                    
GET {domain}/api/print_classifications?id={id}

Get print classification

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "print_classification": {
        "id": 1,
        "name": "name",
        "print_price1": 1,
        "print_price2": 2,
        "print_price3": 3,
        "print_price4": 4,
        "special_print_area_id1": 1,
        "special_price1": 1,
        "special_print_area_id2": 2,
        "special_price2": 2,
        "deleted": false,
        "updated_at": "2017-05-09T02:50:43.693"
    }
}
                                    

Base sku print areas

GET {domain}/api/base_sku_print_areas?since={since}

Get base sku print areas

For authentication pass correct key in request header "x-ogo-access-token"

since

date - nullable

{
    "base_sku_print_areas": [
        {
            "id": 1,
            "base_sku_id": 1,
            "print_area_id": 1,
            "ratio": 1,
            "width": 3,
            "height": 4,
            "offset_top": 1,
            "offset_left": 1,
            "inkxe_product_id": 1,
            "shadow_image": "shadow_image",
            "deleted": false,
            "updated_at": "2017-05-09T02:50:43.693"
        }
    ]
}
                                    
GET {domain}/api/base_sku_print_areas?id={id}

Get base sku print area

For authentication pass correct key in request header "x-ogo-access-token"

id

int - not nullable

{
    "base_sku_print_area": {
        "id": 1,
        "base_sku_id": 1,
        "print_area_id": 1,
        "ratio": 1,
        "width": 3,
        "height": 4,
        "offset_top": 1,
        "offset_left": 1,
        "inkxe_product_id": 1,
        "shadow_image": "shadow_image",
        "deleted": false,
        "updated_at": "2017-05-09T02:50:43.693"
    }
}