The deal you would like to add.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',(field name here).(child field name here or * for all)'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The response body if response status OK, or response body of validation errors if response status 400.
Delete a specific deal by its uid.
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.crm.deals.delete(uid);
console.log(response);
The uid for the deal to delete.
Null if deletion was successful.
Get a specific deal.
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.crm.deals.get(uid);
console.log(response);
The uid for the deal to get.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',(field name here).(child field name here or * for all)'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The response body if response status OK.
Get all deals:
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.crm.deals.getAll();
console.log(response);
Get all deals in a specific pipeline's stage:
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const DealPipelineStage = {
Uid: 'qNmdZA90'
};
const response = await client.crm.deals.getAll({ DealPipelineStage });
console.log(response);
Filter by pipeline stage.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',(field name here).(child field name here or * for all)'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The number of results returned by the API.
For pagination; returns (limit) results after this value.
The response body if response status OK.
Make changes to a deal. Must include the uid.
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.crm.deals.update({
Uid: 'Rm8pvym4',
Name: 'Brand New Deal Name'
});
console.log(response);
The deal with its uid and any fields to be changed.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',(field name here).(child field name here or * for all)'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The response body if response status OK, or response body with validation errors if response status 400.
Generated using TypeDoc
Add a deal. Must include a name and the uid of a pipeline stage.
Response If the server returns a non-"OK" or non-"400" status, the whole response object will be thrown.