Sign in

List store ↔ policy links

GET https://{organization}.myguper.com/api/register/store/walletLink

A redemption policy only applies at the stores linked to it. Each link is a (store, wallet) pair, where wallet is the policy id.

Lists the links. Filter by one side with q[wallet]=108 (stores of a policy) or q[store]=22 (policies of a store). Send with=store to get each store as an object (id, name, refId, interface) instead of the id.

How the policies are applied to an order (cap, aggregation mode and the competition between policies), with examples: Redemption policies.

Try-it values populated from environment ACME (Demo)


Authentication

Token

Send your user token in the x-guper-authorization header.

Headers

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Query parameters

Name Type Description
q object Filters: `q[wallet]=108`, `q[store]=22`.
with string `store` = return each store as an object instead of the id.
e integer Entries per page. `0` = all.
p integer Page.

Responses

{
    "list": [
        {
            "store": { "id": 22, "name": "Boutique Centro", "refId": "BTQ01", "interface": "zoku" },
            "wallet": 108
        }
    ],
    "total": 1,
    "pagination": {
        "entries": 0,
        "order": [],
        "totalPages": 1,
        "currentPage": 1,
        "isInitial": true,
        "isEnd": true,
        "totalPrevPages": 0,
        "totalNextPages": 0
    }
}
Copied to clipboard