API Documentation

This document is a work in progress and your opinion helps us to improve. Please let us know what we can do better. Thanks! support@procurios.com

Webshop Promotions

A promotion is a special deal or discount designed to convince people to order products.

Accept header for requests to Webshop Promotions

application/vnd.procurios.webshop+json; version=1

Read BOGO promotions GET

URL: /l/webshop2_api/webshops/1/bogo

Scope:

Last used: Never

Read multiple "Buy one/get one" promotions

Parameters

Parameter Type Description
page int

The api will provide 100 results per page

ids array of uuid

Ids of bogo promotions to search for

Live testing disabled

Read BOGO promotions

Request

json

Response

jsonStatus: 200
[
    {
        "id": "9166ff79-e7be-424b-a559-cad0958d80cc",
        "title": "Bogo title",
        "titleInWebshop": "Webshop title",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1990-12-31 00:00:00",
        "quantityInShoppingCart": 3,
        "quantityDiscounted": 2,
        "articleNumbers": [],
        "modifiedDateTime": "1985-03-04 00:00:00",
        "discountType": "percentage",
        "discountPercentage": {
            "amount": 1250,
            "precision": 2
        }
    },
    {
        "id": "48fce697-3941-4c84-a2d8-d965c259d79c",
        "title": "Bogo title",
        "titleInWebshop": "Webshop title",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1990-12-31 00:00:00",
        "quantityInShoppingCart": 3,
        "quantityDiscounted": 2,
        "articleNumbers": [],
        "modifiedDateTime": "1985-03-04 00:00:00",
        "discountType": "percentage",
        "discountPercentage": {
            "amount": 1250,
            "precision": 2
        }
    }
]

Read product set promotions GET

URL: /l/webshop2_api/webshops/1/productSet

Scope:

Last used: Never

Read multiple "Buy these together for a fixed price" promotions

Parameters

Parameter Type Description
page int

The api will provide 100 results per page

ids array of uuid

Ids of productset promotions to search for

Live testing disabled

Read product set promotions

Request

json

Response

jsonStatus: 200
[
    {
        "id": "93bfc6ee-0dc9-4089-87b0-cfadb426318b",
        "title": "ProductSet title",
        "titleInWebshop": "Webshop title",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1990-12-31 00:00:00",
        "price": {
            "amount": 15,
            "precision": 0
        },
        "articleNumberCounts": [],
        "modifiedDateTime": "1985-03-04 00:00:00"
    },
    {
        "id": "0748136e-d5ef-4acf-9a4a-c61618881c36",
        "title": "ProductSet title",
        "titleInWebshop": "Webshop title",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1990-12-31 00:00:00",
        "price": {
            "amount": 15,
            "precision": 0
        },
        "articleNumberCounts": [],
        "modifiedDateTime": "1985-03-04 00:00:00"
    }
]

Read discount promotions GET

URL: /l/webshop2_api/webshops/1/promotion

Scope:

Last used: Never

Read multiple "This product is temporarily discounted" promotions

Parameters

Parameter Type Description
page int

The api will provide 100 results per page

ids array of int

Ids of productset promotions to search for

Live testing disabled

Read discount promotions

Request

json

Response

jsonStatus: 200
[
    {
        "id": 123,
        "title": "Promotion Title",
        "titleInWebshop": "Title in webshop",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1985-03-03 00:00:00",
        "articleNumbers": [],
        "modifiedDateTime": "1982-02-03 00:00:00",
        "applicationType": "shipping",
        "discountType": "percentage",
        "discountPercentage": {
            "amount": 1250,
            "precision": 2
        }
    },
    {
        "id": 123,
        "title": "Promotion Title",
        "titleInWebshop": "Title in webshop",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1985-03-03 00:00:00",
        "articleNumbers": [],
        "modifiedDateTime": "1982-02-03 00:00:00",
        "applicationType": "shipping",
        "discountType": "percentage",
        "discountPercentage": {
            "amount": 1250,
            "precision": 2
        }
    }
]