Skip to content

Commit ec265db

Browse files
SDK update: full category bump Aug 2025
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent b4ead13 commit ec265db

File tree

26 files changed

+1591
-19
lines changed

26 files changed

+1591
-19
lines changed

.mock/definition/accounting/__package__.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41304,6 +41304,83 @@ types:
4130441304
results: optional<list<VendorCredit>>
4130541305
source:
4130641306
openapi: openapi/openapi.yml
41307+
PatchedContactRequestAddressesItem:
41308+
discriminated: false
41309+
union:
41310+
- type: string
41311+
validation:
41312+
format: uuid
41313+
- Address
41314+
source:
41315+
openapi: openapi/openapi.yml
41316+
inline: true
41317+
PatchedContactRequest:
41318+
docs: >-
41319+
# The Contact Object
41320+
41321+
### Description
41322+
41323+
A `Contact` is an individual or business entity to which products and
41324+
services are sold to or purchased from. The `Contact` model contains both
41325+
Customers, in which products and services are sold to, and Vendors (or
41326+
Suppliers), in which products and services are purchased from.
41327+
41328+
* A `Contact` is a Vendor/Supplier if the `is_supplier` property is true.
41329+
41330+
* A `Contact` is a customer if the `is_customer` property is true.
41331+
41332+
41333+
### Usage Example
41334+
41335+
Fetch from the `LIST Contacts` endpoint and view a company's contacts.
41336+
properties:
41337+
name:
41338+
type: optional<string>
41339+
docs: The contact's name.
41340+
is_supplier:
41341+
type: optional<boolean>
41342+
docs: Whether the contact is a supplier.
41343+
is_customer:
41344+
type: optional<boolean>
41345+
docs: Whether the contact is a customer.
41346+
email_address:
41347+
type: optional<string>
41348+
docs: The contact's email address.
41349+
tax_number:
41350+
type: optional<string>
41351+
docs: The contact's tax number.
41352+
status:
41353+
type: optional<string>
41354+
docs: |-
41355+
The contact's status
41356+
41357+
* `ACTIVE` - ACTIVE
41358+
* `ARCHIVED` - ARCHIVED
41359+
currency:
41360+
type: optional<string>
41361+
docs: The currency the contact's transactions are in.
41362+
company:
41363+
type: optional<string>
41364+
docs: The company the contact belongs to.
41365+
validation:
41366+
format: uuid
41367+
addresses:
41368+
type: optional<list<optional<PatchedContactRequestAddressesItem>>>
41369+
docs: '`Address` object IDs for the given `Contacts` object.'
41370+
phone_numbers:
41371+
type: optional<list<AccountingPhoneNumberRequest>>
41372+
docs: '`AccountingPhoneNumber` object for the given `Contacts` object.'
41373+
integration_params:
41374+
type: optional<map<string, unknown>>
41375+
access: write-only
41376+
linked_account_params:
41377+
type: optional<map<string, unknown>>
41378+
access: write-only
41379+
remote_fields:
41380+
type: optional<list<RemoteFieldRequest>>
41381+
access: write-only
41382+
source:
41383+
openapi: openapi/openapi.yml
4130741384
PatchedItemRequestRequestStatus:
4130841385
discriminated: false
4130941386
docs: |-

.mock/definition/accounting/contacts.yml

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,286 @@ service:
354354
- remote_field_class: remote_field_class
355355
value:
356356
key: value
357+
partialUpdate:
358+
path: /accounting/v1/contacts/{id}
359+
method: PATCH
360+
auth: true
361+
docs: Updates a `Contact` object with the given `id`.
362+
source:
363+
openapi: openapi/openapi.yml
364+
path-parameters:
365+
id: string
366+
request:
367+
name: PatchedContactEndpointRequest
368+
query-parameters:
369+
is_debug_mode:
370+
type: optional<boolean>
371+
docs: >-
372+
Whether to include debug fields (such as log file links) in the
373+
response.
374+
run_async:
375+
type: optional<boolean>
376+
docs: Whether or not third-party updates should be run asynchronously.
377+
body:
378+
properties:
379+
model: root.PatchedContactRequest
380+
content-type: application/json
381+
response:
382+
docs: ''
383+
type: root.ContactResponse
384+
status-code: 200
385+
examples:
386+
- path-parameters:
387+
id: id
388+
headers:
389+
X-Account-Token: X-Account-Token
390+
request:
391+
model: {}
392+
response:
393+
body:
394+
model:
395+
id: c640b80b-fac9-409f-aa19-1f9221aec445
396+
remote_id: '11167'
397+
created_at: '2021-09-15T00:00:00Z'
398+
modified_at: '2021-10-16T00:00:00Z'
399+
name: Gil Feig's pickleball store
400+
is_supplier: true
401+
is_customer: true
402+
email_address: [email protected]
403+
tax_number: 12-3456789
404+
status: ACTIVE
405+
currency: USD
406+
remote_updated_at: '2020-03-31T00:00:00Z'
407+
company: 595c8f97-2ac4-45b7-b000-41bdf43240b5
408+
addresses:
409+
- 2f2702aa-8948-492b-a412-2acdf6d2c499
410+
- d98c7428-8dda-48a8-a1da-c570f65e2375
411+
phone_numbers:
412+
- created_at: '2021-09-15T00:00:00Z'
413+
modified_at: '2021-10-16T00:00:00Z'
414+
number: '+3198675309'
415+
type: Mobile
416+
remote_was_deleted: true
417+
field_mappings:
418+
organization_defined_targets:
419+
custom_key: custom_value
420+
linked_account_defined_targets:
421+
custom_key: custom_value
422+
remote_data:
423+
- path: /actions
424+
data:
425+
- Varies by platform
426+
remote_fields:
427+
- remote_field_class: remote_field_class
428+
warnings:
429+
- source:
430+
pointer: pointer
431+
title: Unrecognized Field
432+
detail: An unrecognized field, age, was passed in with request data.
433+
problem_type: UNRECOGNIZED_FIELD
434+
errors:
435+
- source:
436+
pointer: pointer
437+
title: Missing Required Field
438+
detail: custom_fields is a required field on model.
439+
problem_type: MISSING_REQUIRED_FIELD
440+
logs:
441+
- log_id: 99433219-8017-4acd-bb3c-ceb23d663832
442+
dashboard_view: >-
443+
https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832
444+
log_summary:
445+
url: www.exampleintegration.com/api/v1/exampleapi
446+
method: POST
447+
status_code: 200
448+
metaPatchRetrieve:
449+
path: /accounting/v1/contacts/meta/patch/{id}
450+
method: GET
451+
auth: true
452+
docs: Returns metadata for `Contact` PATCHs.
453+
source:
454+
openapi: openapi/openapi.yml
455+
path-parameters:
456+
id: string
457+
response:
458+
docs: ''
459+
type: root.MetaResponse
460+
status-code: 200
461+
examples:
462+
- path-parameters:
463+
id: id
464+
headers:
465+
X-Account-Token: X-Account-Token
466+
response:
467+
body:
468+
request_schema:
469+
type: object
470+
properties:
471+
model:
472+
type: object
473+
required:
474+
- last_name
475+
- first_name
476+
- merge_categories
477+
- new_york_city_neighborhood
478+
- favorite_tv_shows
479+
- favorite_watch
480+
properties:
481+
email_addresses:
482+
type: array
483+
items:
484+
type: object
485+
properties:
486+
value:
487+
type: string
488+
title: value
489+
email_address_type:
490+
type: string
491+
title: email_address_type
492+
integration_params:
493+
type: object
494+
title: integration_params
495+
properties: {}
496+
linked_account_params:
497+
type: object
498+
title: linked_account_params
499+
properties: {}
500+
title: email_addresses
501+
description: Array of email_addresses objects
502+
urls:
503+
type: array
504+
items:
505+
type: object
506+
properties:
507+
value:
508+
type: string
509+
title: value
510+
url_type:
511+
type: string
512+
title: url_type
513+
integration_params:
514+
type: object
515+
title: integration_params
516+
properties: {}
517+
linked_account_params:
518+
type: object
519+
title: linked_account_params
520+
properties: {}
521+
title: urls
522+
description: Array of urls objects
523+
first_name:
524+
type: string
525+
title: first_name
526+
description: The first name.
527+
last_name:
528+
type: string
529+
title: last_name
530+
description: The last name.
531+
phone_numbers:
532+
type: array
533+
items:
534+
type: object
535+
properties:
536+
value:
537+
type: string
538+
title: value
539+
phone_number_type:
540+
type: string
541+
title: phone_number_type
542+
integration_params:
543+
type: object
544+
title: integration_params
545+
properties: {}
546+
linked_account_params:
547+
type: object
548+
title: linked_account_params
549+
properties: {}
550+
title: phone_numbers
551+
description: Array of phone_numbers objects
552+
tags:
553+
type: array
554+
items:
555+
type: string
556+
format: uuid
557+
title: tags
558+
description: Array of tags names
559+
attachments:
560+
type: array
561+
items:
562+
type: object
563+
properties:
564+
id:
565+
type: string
566+
title: id
567+
file_url:
568+
type: string
569+
title: file_url
570+
file_name:
571+
type: string
572+
title: file_name
573+
attachment_type:
574+
type: string
575+
title: attachment_type
576+
integration_params:
577+
type: object
578+
title: integration_params
579+
properties: {}
580+
linked_account_params:
581+
type: object
582+
title: linked_account_params
583+
properties: {}
584+
title: attachments
585+
description: 'Array of attachments objects '
586+
merge_categories:
587+
type: array
588+
categories:
589+
type: string
590+
enum:
591+
- HRIS
592+
- ATS
593+
- Accounting
594+
- Ticketing
595+
- File Storage
596+
- CRM
597+
- Marketing Automation
598+
enum_information:
599+
- value: HRIS
600+
description: Merge HRIS Category
601+
- value: ATS
602+
description: Merge ATS Category
603+
- value: Accounting
604+
description: Merge Accounting Category
605+
- value: Ticketing
606+
description: Merge Ticketing Category
607+
- value: File Storage
608+
description: Merge File Storage Category
609+
- value: CRM
610+
description: Merge CRM Category
611+
- value: Marketing Automation
612+
description: Merge Marketing Automation Category
613+
title: Merge Categories
614+
description: Array of Merge's Unified API Categories
615+
new_york_city_neighborhood:
616+
type: string
617+
title: Borough
618+
description: One of the 5 Boroughs of New York City
619+
favorite_tv_shows:
620+
type: array
621+
items:
622+
type: string
623+
format: uuid
624+
title: Favorite TV Shows
625+
description: Array of TV Show objects on merge.tv_shows
626+
favorite_watch:
627+
type: string
628+
title: Favorite Watch
629+
description: Favorite watch of all time
630+
remote_field_classes:
631+
key: value
632+
status:
633+
linked_account_status: linked_account_status
634+
can_make_request: true
635+
has_conditional_params: true
636+
has_required_linked_account_params: true
357637
metaPostRetrieve:
358638
path: /accounting/v1/contacts/meta/post
359639
method: GET

0 commit comments

Comments
 (0)