{"swagger":"2.0","info":{"title":"Customer api","description":"Customer API documentation providing details for REST APIs","contact":{"name":"IBM"},"license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"},"version":"0.0.1-dev"},"host":"api.apibuilder.io","basePath":"/","schemes":["https"],"consumes":["application/json"],"produces":["application/json"],"paths":{"/customers/customers":{"get":{"description":"Search for a specific customer. You must specify at least 1 parameter - either a guid, email or token - and will receive back either 0 or 1 users.","parameters":[{"name":"financialAccountNumber","in":"query","description":"Find customer with this financialAccountNumber. Exact match","required":false,"type":"string","format":"uuid"},{"name":"email","in":"query","description":"Find user with this email address. Case in-sensitive. Exact match","required":false,"type":"string"},{"name":"customerName","in":"query","description":"Find user with the specified nickname. For users that register via GitHub, this will be their GitHub username. Case in-sensitive. Exact match","required":false,"type":"string"}],"responses":{"200":{"description":"200 response","schema":{"type":"array","items":{"$ref":"#/definitions/customer"}}},"404":{"description":"404 response","schema":{"type":"array","items":{"$ref":"#/definitions/error"}}},"500":{"description":"500 response","schema":{"type":"array","items":{"$ref":"#/definitions/error"}}}}},"post":{"description":"Create a new customer.","parameters":[{"name":"customer_create_form","in":"body","schema":{"$ref":"#/definitions/customer_create_form"}}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/customer"}},"500":{"description":"500 response","schema":{"type":"array","items":{"$ref":"#/definitions/error"}}}}}},"/customers/{customerName}":{"get":{"description":"Returns information about the user with this financialAccountNumber.","parameters":[{"name":"customerName","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/customer"}},"404":{"description":"404 response","schema":{"type":"array","items":{"$ref":"#/definitions/error"}}},"500":{"description":"500 response","schema":{"type":"array","items":{"$ref":"#/definitions/error"}}}}},"put":{"description":"Updates information about the customer with the specified financialAccountNumber.","parameters":[{"name":"customerName","in":"path","required":true,"type":"string"},{"name":"customer_update_form","in":"body","schema":{"$ref":"#/definitions/customer_update_form"}}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/customer"}},"404":{"description":"404 response","schema":{"type":"array","items":{"$ref":"#/definitions/error"}}},"500":{"description":"500 response","schema":{"type":"array","items":{"$ref":"#/definitions/error"}}}}}}},"definitions":{"customer":{"type":"object","description":"Customer","title":"customer","required":["financialAccountNumber","customerName","branchNumber"],"properties":{"financialAccountNumber":{"description":"financialAccountNumber","type":"string","format":"uuid"},"customerName":{"description":"customerName","type":"string"},"branchNumber":{"description":"branchNumber","type":"string"},"address1":{"description":"address1","type":"string"},"address2":{"description":"address2","type":"string"},"city":{"description":"city","type":"string"},"state":{"description":"state","type":"string"},"zip":{"description":"zip","type":"string"}}},"customer_create_form":{"type":"object","description":"customer Creation Form","title":"customer_create_form","required":["branchNumber","customerName","email","address1","city","state","zip"],"properties":{"branchNumber":{"description":"Branch Number","type":"string"},"customerName":{"description":"customer Name","type":"string"},"email":{"description":"Email","type":"string"},"address1":{"description":"Address1","type":"string"},"address2":{"description":"Address2","type":"string"},"city":{"description":"City","type":"string"},"state":{"description":"State","type":"string"},"zip":{"description":"Zip","type":"string"}}},"customer_summary":{"type":"object","description":"Customer Summery","title":"customer_summary","required":["financialAccountNumber","customerName"],"properties":{"financialAccountNumber":{"description":"Financial Account Number","type":"string","format":"uuid"},"customerName":{"description":"Customer Name","type":"string"}}},"customer_update_form":{"type":"object","description":"customer Update Form","title":"customer_update_form","required":["financialAccountNumber","customerName","email","address1","address2","city","state","zip"],"properties":{"financialAccountNumber":{"description":"Financial Account Number","type":"string"},"customerName":{"description":"Customer Name","type":"string"},"email":{"description":"Email","type":"string"},"address1":{"description":"Address1","type":"string"},"address2":{"description":"Address2","type":"string"},"city":{"description":"City","type":"string"},"state":{"description":"State","type":"string"},"zip":{"description":"Zip","type":"string"}}},"error":{"type":"object","title":"error","required":["code","description"],"properties":{"code":{"description":"Machine readable code for this specific error message","type":"string"},"description":{"description":"Description of the error","type":"string"}}}}}