Inbound endpoints
Negotiate endpoints
Customers endpoints
9 min
quick reference verb path method post /api/v1/clients/bulk create or update/ upsert customers post /api/v1/clients/schema/ upsert customer's dynamic schema define customer schema description with our api, you can easily create or update customers you may want to define specific characterstic of your customers by defining its schema the schema is defined as list of columns curl location request post 'https //api pricemoov com/api/v1/clients/schema/' \\ \ header 'authorization jwt \<your token>' \\ \ header 'content type application/json' \\ \ data raw '\[ { "column name" = "estimated revenue", "column type" = "float", }, { "column name" = "activity", "column type" = "str", } }' column parameters column name column type type string , required the name of the column as it will appear in the platform type string , required the type of the column this has to be one of the following "array str", "bigint", "bool", "float", "int", "jsonb", "str", "timestamp" example upon success, the response is 201 ok and returns \[schema created] upsert customers once a schema is defined, you can upsert customers in pricemoov using following this schema based on the fact that the code of the clients should be unique, this will create new clients and update those existing curl location request post 'https //api pricemoov com/api/v1/clients/bulk create or update/' \\ \ header 'authorization jwt \<your token>' \\ \ header 'content type application/json' \\ \ data raw '\[ { "code" = "c0123", "estimated revenue" = 22311123, "activity" = "carwash", "parent client" = "c01", }, { "code" = "c22113", "estimated revenue" = 1000, "activity" = "bike rental", "parent client" = "c01", } }' parameters code parent client spectific schema columns type string , required the code of the client, this code should be unique type string , optional the code of the parent of the client required all the columns as defined in the schema example upon success, the response is 201 ok and returns { "created clients" \[list of created clients' ids], "updated clients" \[list of updated clients' ids], }