Sync store ↔ policy links
A redemption policy only applies at the stores linked to it. Each link is a (store, wallet) pair, where wallet is the policy id.
Sets all the links of one side at once, in a single transaction. Anchor one side and send the complete list of the other:
{"wallet": 108, "stores": [22, 23, 41]}— the policy will apply exactly at these stores.{"store": 22, "wallets": [108, 109]}— exactly these policies will apply at this store.
The list is the final state, not an increment: links missing from it are removed, and an
empty list removes every link of the anchor. Invalid ids (0, negative, non-numeric) are
ignored, and repeated ids are merged. Sending the same body twice gives the same result.
If any store does not exist in the organization, nothing is changed and the response is 422.
Try-it values populated from environment ACME (Demo)
Authentication
Token
Send your user token in the x-guper-authorization header.
Headers
Request body
Content-Type:
application/json