Skip to content

Get merge status

client.Merge.GetMerge(ctx, id) (*MergeGetMergeResponse, error)
GET/v1/merges/{id}

Returns the status and details of a merge operation by its ID.

Rate limit category: Read

ParametersExpand Collapse
id string

The merge operation ID.

ReturnsExpand Collapse
type MergeGetMergeResponse struct{…}
ID string

Unique identifier for the merge operation.

CreatedAt string

ISO 8601 timestamp of when the merge was created.

DuplicateID string

ID of the record that was merged into the primary and soft-deleted.

EntityType string

The object type of the merged records (e.g. account, contact, opportunity, or a custom object slug).

PrimaryID string

ID of the record that was kept (the primary).

Status string

Current status of the merge: cleanup_pending, done, or failed.

UpdatedAt string

ISO 8601 timestamp of when the merge was last updated.

Get merge status

package main

import (
  "context"
  "fmt"

  "github.com/Lightfld/lightfield-go"
  "github.com/Lightfld/lightfield-go/option"
)

func main() {
  client := githubcomlightfldlightfieldgo.NewClient(
    option.WithAPIKey("My API Key"),
  )
  mergeGetMergeResponse, err := client.Merge.GetMerge(context.TODO(), "id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", mergeGetMergeResponse.ID)
}
{
  "id": "id",
  "createdAt": "createdAt",
  "duplicateId": "duplicateId",
  "entityType": "entityType",
  "primaryId": "primaryId",
  "status": "status",
  "updatedAt": "updatedAt"
}
Returns Examples
{
  "id": "id",
  "createdAt": "createdAt",
  "duplicateId": "duplicateId",
  "entityType": "entityType",
  "primaryId": "primaryId",
  "status": "status",
  "updatedAt": "updatedAt"
}