User Tools

Site Tools


rest_api_customers

This is an old revision of the document!


REST API for CUSTOMER data

View all customers in XML format

  https://localhost:3000/*databasename*/customers.xml?token=123

View all customers in JSON format

  https://localhost:3000/*databasename*/customers.json?token=123    

View single customer in XML format

  https://localhost:3000/*databasename*/*customer_id*.xml?token=123

View single customer in JSON format

  https://localhost:3000/*databasename*/*customer_id*.json?token=123    

Adding or updating a customer with XML from command line

  curl -X POST -H "Content-Type: application/xml" -d @customer.xml http://localhost:3000/*databasename*/customers?token=123

Adding or updating a customer with JSON format from command line

  curl -X POST -H "Content-Type: application/json" -d @customer.xml http://localhost:3000/*databasename*/customers?token=123

Delete a customer with DELETE request

  curl -X DELETE http://localhost:3000/*databasename*/customers/*customer_id*?token=123

rest_api_customers.1480502654.txt.gz · Last modified: 2016/11/30 10:44 (external edit)