{ "opencollection": "1.0.0", "info": { "name": "Braintree Payments Add-Ons Customers API", "version": "1.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Customers", "type": "folder" }, "items": [ { "info": { "name": "Create a customer", "type": "http" }, "http": { "method": "POST", "url": "https://api.braintreegateway.com/merchants/{merchantId}/customers", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new customer record in the Braintree Vault. A customer record can optionally include a payment method nonce to simultaneously vault a payment method for the customer. No fields are strictly required; a blank customer may be created and updated later. Customer records serve as containers for vaulted payment methods and associated transaction history." }, { "info": { "name": "Get a customer", "type": "http" }, "http": { "method": "GET", "url": "https://api.braintreegateway.com/merchants/{merchantId}/customers/:customerId", "params": [ { "name": "customerId", "value": "", "type": "path", "description": "The unique identifier of the customer record." } ] }, "docs": "Retrieves a customer record from the Braintree Vault by its unique identifier. Returns the customer's profile information and all associated vaulted payment methods, billing addresses, and transaction history summary." }, { "info": { "name": "Update a customer", "type": "http" }, "http": { "method": "PUT", "url": "https://api.braintreegateway.com/merchants/{merchantId}/customers/:customerId", "params": [ { "name": "customerId", "value": "", "type": "path", "description": "The unique identifier of the customer record." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing customer record in the Braintree Vault. Only fields provided in the request body are updated; omitted fields retain their current values. A new payment method nonce may be provided to add an additional payment method to the customer's vault." }, { "info": { "name": "Delete a customer", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.braintreegateway.com/merchants/{merchantId}/customers/:customerId", "params": [ { "name": "customerId", "value": "", "type": "path", "description": "The unique identifier of the customer record." } ] }, "docs": "Permanently deletes a customer record from the Braintree Vault along with all associated payment methods and addresses. This action is irreversible. Historical transaction records associated with the customer remain accessible but the customer profile is removed." } ] } ], "bundled": true }