{"v":1,"capabilities":[{"cap":"basket:read","class":"read","level":1,"constraints":["scope"],"description":"The person's basket: lines, delivery fee and total_to_pay (send it to /checkout)"},{"cap":"basket:write","class":"write","level":1,"constraints":["scope"],"description":"Put a product in the basket, or change its quantity (qty 0 removes it)"},{"cap":"orders:checkout","class":"irreversible","level":2,"constraints":["scope","amount"],"description":"Pay for the basket and have it delivered. Send total_to_pay from GET /basket. The person approves the exact amount and shares their delivery details on the approval page"},{"cap":"orders:read","class":"read","level":1,"constraints":["scope"],"description":"The person's orders and their status"},{"cap":"aby:link","class":"write","level":1,"constraints":["scope"],"description":"Link the person's AllowedBy identity to their account here (send the code the signed-in account page shows)"}],"templates":{"basket:read":{"summary":{"en":"See your basket"},"lines":{"en":"See your basket"}},"basket:write":{"summary":{"en":"Add and remove items in your basket"},"lines":{"en":"Add and remove items in your basket"}},"orders:checkout":{"summary":{"en":"Pay {amount.max} {amount.currency} for your basket"},"lines":{"en":"Pay {amount.max} {amount.currency} for your basket at Pantry & Co, delivered to the address you share"}},"orders:read":{"summary":{"en":"See your orders"},"lines":{"en":"See your orders"}},"aby:link":{"summary":{"en":"Link your approvals to your account at shop.demo.upto.tech"},"lines":{"en":"Link your approvals to your account (shop.demo.upto.tech)"}}},"keys":[{"kty":"OKP","crv":"Ed25519","x":"BbEr1OhIPMzA-Fa_cw3SmyqceemLrh-8buXDzIejicQ","kid":"T31r_6eh_rTGAB1vbYFmU-PW-ab_R0keh4mMq9uYP2k"}],"org":"eyJhbGciOiJFZERTQSIsImtpZCI6IlQzMXJfNmVoX3JUR0FCMXZiWUZtVS1QVy1hYl9SMGtlaDRtTXE5dVlQMmsiLCJ0eXAiOiJhYnktb3JnK2p3dCJ9.eyJjb3VudHJ5IjoiRlIiLCJkcG8iOiJtYWlsdG86cHJpdmFjeUBwYW50cnkuZXhhbXBsZSIsImV4cCI6MTgyNTY4NjcxNCwiaWF0IjoxNzk0MTUwNzE0LCJsZWdhbF9uYW1lIjoiUGFudHJ5ICYgQ28gU0FTIiwib3JnIjoiaHR0cHM6Ly9zaG9wLmRlbW8udXB0by50ZWNoIiwicHJpdmFjeV9wb2xpY3kiOiJodHRwczovL3Nob3AuZGVtby51cHRvLnRlY2gvcHJpdmFjeSIsInByb29mIjp7ImJ5IjoiZGVtby51cHRvLnRlY2giLCJ0eXBlIjoidm91Y2gifSwidiI6MX0.VRq4RqDNak2awJR2os0-bM7bf9kSwSP47K3oL4QeOZeXrwKpcy1IS5a1BJouRXvbT4MMelim6XvYWoZF0evtCg","openapi":"https://shop.demo.upto.tech/openapi.json","link":"https://shop.demo.upto.tech/allowedby/link","disclosure":{"legal_name":{"purpose":{"en":"Name on the parcel and the invoice"},"retention_days":3650},"address":{"purpose":{"en":"Where we deliver your order"},"retention_days":365},"email":{"purpose":{"en":"Order confirmation and receipt"},"retention_days":365},"phone":{"purpose":{"en":"The courier calls if nobody is home"},"retention_days":30}},"disclosure_key":{"kty":"EC","crv":"P-256","kid":"d1","use":"enc","x":"2MDmMPbnV2_BA6W_T8ZC8yjnJRHCebzSg-JGm6b2480","y":"qbn4vGcWC7SdGLwkv4d69Oh170PR54H6YSiwJlb9Ykc"}}