Hi Dev support team,
We are using the API when creating deals from different lead sources in order to check if (1) a person already exists and if found - (2) if there are open deals for that person.
However, I noticed for several times now that an API call has returned a response that says that there are no open deals for a person while there is an open deal.
Example:
Person ID 858
That person has an open deal: 994
However, when we sent the following API request on aaaa it that there are no open deals.
Request:
> [
> {
> “ca”: null,
> “qs”: [],
> “url”: “https://api.pipedrive.com/v1/deals/search?term=2020&person_id=858&status=open&start=0&api_token=xxxxxxxxxx”,
> “gzip”: true,
> “method”: “get”,
> “headers”: [],
> “timeout”: null,
> “authPass”: null,
> “authUser”: null,
> “bodyType”: null,
> “shareCookies”: false,
> “parseResponse”: true,
> “followRedirect”: true,
> “useQuerystring”: false,
> “followAllRedirects”: false,
> “rejectUnauthorized”: true
> }
> ]
The response:
> [
> {
> “statusCode”: 200,
> “headers”: [
> {
> “name”: “date”,
> “value”: “Thu, 05 Nov 2020 16:47:38 GMT”
> },
> {
> “name”: “content-type”,
> “value”: “application/json; charset=utf-8”
> },
> {
> “name”: “transfer-encoding”,
> “value”: “chunked”
> },
> {
> “name”: “connection”,
> “value”: “close”
> },
> {
> “name”: “set-cookie”,
> “value”: “__cfduid=dc09199672506681618e09c1bf7fe3e181604594858; expires=Sat, 05-Dec-20 16:47:38 GMT; path=/; domain=.pipedrive.com; HttpOnly; SameSite=Lax”
> },
> {
> “name”: “x-correlation-id”,
> “value”: “d4b889c4-4f8d-4b2f-9687-011edd427a3a”
> },
> {
> “name”: “badi”,
> “value”: “Routing: eu-central-1=>eu-central-1; Version: a0fa; Host: bari;”
> },
> {
> “name”: “cache-control”,
> “value”: “no-cache”
> },
> {
> “name”: “access-control-expose-headers”,
> “value”: “X-RateLimit-Remaining, X-RateLimit-Limit, X-RateLimit-Reset”
> },
> {
> “name”: “pdtrusted-wgw-real-user-ip”,
> “value”: “82.208.14.112”
> },
> {
> “name”: “access-control-allow-origin”,
> “value”: ""*
> },
> {
> “name”: “x-ratelimit-limit”,
> “value”: “40”
> },
> {
> “name”: “x-ratelimit-remaining”,
> “value”: “38”
> },
> {
> “name”: “x-ratelimit-reset”,
> “value”: “2”
> },
> {
> “name”: “x-xss-protection”,
> “value”: “1; mode=block”
> },
> {
> “name”: “x-content-type-options”,
> “value”: “nosniff”
> },
> {
> “name”: “strict-transport-security”,
> “value”: “max-age=31536000; includeSubDomains”
> },
> {
> “name”: “cf-cache-status”,
> “value”: “DYNAMIC”
> },
> {
> “name”: “cf-request-id”,
> “value”: “063ae7912200002778000ab000000001”
> },
> {
> “name”: “expect-ct”,
> “value”: “max-age=604800, report-uri=”[https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct](https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct/)""
> },
> {
> “name”: “server”,
> “value”: “cloudflare”
> },
> {
> “name”: “cf-ray”,
> “value”: “5ed80ec83a162778-PRG”
> },
> {
> “name”: “content-encoding”,
> “value”: “gzip”
> }
> ],
> “cookieHeaders”: [
> “__cfduid=dc09199672506681618e09c1bf7fe3e181604594858; expires=Sat, 05-Dec-20 16:47:38 GMT; path=/; domain=.pipedrive.com; HttpOnly; SameSite=Lax”
> ],
> “data”: {
> “success”: true,
> “data”: {
> “items”: []
> },
> “additional_data”: {
> “pagination”: {
> “start”: 0,
> “limit”: 100,
> “more_items_in_collection”: false
> }
> }
> },
> “fileSize”: 126
> }
> ]
Timestampe: November 5th 18:47 IL Time
The requests are done from Integromat.
Since we observed this more than once and we have a large setup based on the API which works great, I think this is a bug rather than incorrect usage.
Please look into the logs from your side to check why this happens.
You can reach out to me directly and we can look into other examples.
Thanks,
Michael