Skip to content

Clientify API v2 migración#164

Open
davidperezgar wants to merge 8 commits intotrunkfrom
cursor/clientify-api-v2-migraci-n-de01
Open

Clientify API v2 migración#164
davidperezgar wants to merge 8 commits intotrunkfrom
cursor/clientify-api-v2-migraci-n-de01

Conversation

@davidperezgar
Copy link
Contributor

Add documentation detailing the Clientify API v2 migration issue to provide a comprehensive reference for the migration tasks.


Open in Web Open in Cursor 

Co-authored-by: David Perez <davidperezgar@gmail.com>
@cursor
Copy link

cursor bot commented Mar 3, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@davidperezgar davidperezgar marked this pull request as ready for review March 3, 2026 15:54
cursoragent and others added 7 commits March 3, 2026 16:09
- Update base URL from api.clientify.net/v1 to api-plus.clientify.com/v2
- Update login endpoint from settings/my-account/ to me/
- Update custom fields to use ?object_type= filter parameter
- Update deal creation to use contact_id/company_id instead of URL refs
- Include products inline in deal creation payload (v2 format)
- Add pipeline_id, pipeline_desc, pipeline_stage_desc deal fields
- Add Email Main (type 4) and Phone Main (type 1) from v2 API
- Fix PUT method: use wp_remote_request() instead of wp_remote_post()
- Fix error body access: use wp_remote_retrieve_body() consistently
- Fix pipeline field mismatch (pipeline_desc now maps correctly)
- Update product format to use product_id + price (v2 schema)
- Update test mock data to match v2 response formats
- Add new tests: v2 types, deal fields, contact/deal creation

Closes #163

Co-authored-by: David Perez <davidperezgar@gmail.com>
Co-authored-by: David Perez <davidperezgar@gmail.com>
Co-authored-by: David Perez <davidperezgar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants