{ "opencollection": "1.0.0", "info": { "name": "Bitpowr Reference Account Customer API", "version": "1.0" }, "items": [ { "info": { "name": "Customer", "type": "folder" }, "items": [ { "info": { "name": "Get customers", "type": "http" }, "http": { "method": "GET", "url": "https://developers.bitpowr.com/api/v1/customers", "params": [ { "name": "perPage", "value": "", "type": "query", "description": "The number of customers per request." }, { "name": "page", "value": "", "type": "query", "description": "The page offset" }, { "name": "orderBy", "value": "", "type": "query", "description": "Sort customers by asc or desc." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "This endpoint returns customers" }, { "info": { "name": "Create customer", "type": "http" }, "http": { "method": "POST", "url": "https://developers.bitpowr.com/api/v1/customers", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "This endpoint creates a new customer" }, { "info": { "name": "Get customer by id", "type": "http" }, "http": { "method": "GET", "url": "https://developers.bitpowr.com/api/v1/customers/:customerId", "params": [ { "name": "customerId", "value": "", "type": "path", "description": "The uid of the customer you want retrieve." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "This endpoint fetches a customer by it `uid`" }, { "info": { "name": "Update Customer info.", "type": "http" }, "http": { "method": "POST", "url": "https://developers.bitpowr.com/api/v1/customers/:customerId", "params": [ { "name": "customerId", "value": "", "type": "path", "description": "The uid of the customer you want to work with." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "This endpoint updates a customer's information." }, { "info": { "name": "Get customer's transactions", "type": "http" }, "http": { "method": "GET", "url": "https://developers.bitpowr.com/api/v1/customers/:customerId/transactions", "params": [ { "name": "customerId", "value": "", "type": "path", "description": "The uid of the customer you want retrieve." }, { "name": "perPage", "value": "", "type": "query", "description": "The number of customers per request." }, { "name": "page", "value": "", "type": "query", "description": "The page offset" }, { "name": "orderBy", "value": "", "type": "query", "description": "Sort customers by asc or desc." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "This endpoint returns a customer's transactions." } ] } ], "bundled": true }