24/7 Support: 800.608.6482

Navigation


Branch_Copy

Requirements: Miva verion 10.00.00 or later.
This function allows you to copy one branch to another, based on a specific changeset from the source branch.

A branch copy will take all changes up to (and including) the selected changeset and overwrite the destination branch with those changes.

Request Body Parameters

Source_Branch_ID Type:
Number
Title:
Source Branch ID
The ID of the source branch you wish to copy from. The Branch ID is returned in BranchList_Load_Query
Destination_Branch_ID Type:
Number
Title:
Destination Branch ID
ID of the destination branch you wish to copy to. The Branch ID is returned in BranchList_Load_Query
Source_Changeset_ID Type:
Number
Title:
Source Changeset ID
ID of the changeset you wish to copy. The Changeset ID is returned in ChangesetList_Load_Query
Notes Type:
String
Title:
Notes
Optional. Notes to identify the changes being made

Response Parameters

id Type:
Number
Title:
Id
id of newely created changeset
branch_id Type:
Number
Title:
Branch ID
ID of the Branch this change affected (destionation branch)
user_id Type:
Number
Title:
User ID
ID of Admin user who made the copy. This will always be 0 when done though the API
dtstamp Type:
Unix Timestamp
Title:
Date Timestamp
Timestamp the copy was made
notes Type:
String
Title:
Notes
Notes from the branch copy
tags Type:
Array
Title:
Tags
Array of all the tags associated with the changeset being copied.
formatted_tags Type:
String
Title:
formatted_tags
Individual tags associated with the changeset

Example Request

Example Response

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay Vault®, Camp Miva®, Miva Connect®, Vexture℠, Miva, Inc. All Rights Reserved.