Affluenza REST API

<back to all web services

CustomerPostRequest

The following routes are available for this service:
POST,OPTIONS/customers
POST,OPTIONS/customers/

To override the Content-type in your clients HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/CustomerPostRequest HTTP/1.1 
Host: www.plusrated.com 
Content-Type: text/csv
Content-Length: length

Customer,User,Password,AppKey,Token
"{parentId:00000000000000000000000000000000,fancyName:String,corporateName:String,cnpj:String,street:String,number:0,complement:String,district:String,zipCode:String,observation:String,createDate:0001-01-01,updateDate:0001-01-01,sysAdmin:False,activity:{name:String,id:0},city:{name:String,state:{name:String,acronym:String,country:{name:String,id:0},id:0},id:0},state:{name:String,acronym:String,country:{name:String,id:0},id:0},country:{name:String,id:0},status:Active,id:00000000000000000000000000000000}","{firstName:String,lastName:String,email:String,cpf:String,parentCustomerId:00000000000000000000000000000000,permissionDataLevel:False,active:False,createDate:0001-01-01,token:String,group:{name:String,weightType:{name:String,value:0,active:False,id:00000000000000000000000000000000},active:False,id:00000000000000000000000000000000},userGroup:String,id:00000000000000000000000000000000}",String,0,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Status,Response,ErrorMessage
Success,00000000000000000000000000000000,"{message:String,statusCode:0}"