{ "opencollection": "1.0.0", "info": { "name": "Unlock Locksmith Applications Purchase API", "version": "2" }, "items": [ { "info": { "name": "Purchase", "type": "folder" }, "items": [ { "info": { "name": "balance", "type": "http" }, "http": { "method": "GET", "url": "https://locksmith.unlock-protocol.com/purchase" } }, { "info": { "name": "purchase", "type": "http" }, "http": { "method": "POST", "url": "https://locksmith.unlock-protocol.com/v2/purchase/intent/:network/locks/:lockAddress", "params": [ { "name": "network", "value": "", "type": "path", "description": "Network id." }, { "name": "lockAddress", "value": "", "type": "path", "description": "Lock address." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create purchase intent for stripe." }, { "info": { "name": "setupPayment", "type": "http" }, "http": { "method": "POST", "url": "https://locksmith.unlock-protocol.com/v2/purchase/setup", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Setup a payment method for user." }, { "info": { "name": "listPaymentMethods", "type": "http" }, "http": { "method": "GET", "url": "https://locksmith.unlock-protocol.com/v2/purchase/list", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "List payment methods for user." }, { "info": { "name": "removePaymentMethods", "type": "http" }, "http": { "method": "DELETE", "url": "https://locksmith.unlock-protocol.com/v2/purchase/payment-methods", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Remove all payment methods for a user" }, { "info": { "name": "capturePurchase", "type": "http" }, "http": { "method": "POST", "url": "https://locksmith.unlock-protocol.com/purchase/capture", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Capture a purchase" } ] } ], "bundled": true }