Update Partner
Endpoint for updating a Partner.
info
Please be aware that this endpoint requires a Manage Partners API Key.
PUT
/api/v1/groups/{group_id}/partners/{partner_id}
Request Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| company | Company Name of the Partner. Maximum 64 characters. | string | Required |
| first_name | First Name of the Partner. | string | |
| last_name | Last Name of the Partner. | string | |
| Email address of the Partner. | string | Required | |
| line_1 | First address line of the Partner. | string | Required |
| line_2 | Second address line of the Partner. | string | |
| city | City of the Partner. | string | Required |
| country | Country of the Partner. | string | Required |
| subdivision | Subdivision of the Partner. | string | Required |
| postal_code | Postal Code of the Partner. | string | Required |
Response
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request / Validation error |
| 500 | Internal Error |
Example Usage
- JavaScript
- Python
- Go
update.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
method: 'PUT',
headers: headers,
redirect: 'follow',
body: {
// request body data
}
};
const group_id = '';
const partner_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/partners/${partner_id}`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
update.py
import requests
group_id = ""
partner_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/partners/" + partner_id
headers = {
'Authorization': 'API_KEY'
}
response = requests.request("PUT", url, headers=headers, json={
// request body data
})
print(response.text)
update.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
const group_id = ""
const partner_id = ""
url := "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/partners/" + partner_id
client := &http.Client{}
body := bytes.NewBuffer(nil)
_ = json.NewEncoder(body).Encode(map[string]any{
// body data
})
req, _ := http.NewRequest("PUT", url, body)
req.Header.Add("Authorization", "API_KEY")
res, _ := client.Do(req)
defer res.Body.Close()
bytes, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(string(bytes))
}
Example Request
{
"company": "Knockout Kickboxing",
"first_name": "Jane",
"last_name": "Doe",
"email": "knockout.kickboxing@domain.com",
"line_1": "2672 Woodland Avenue",
"line_2": "Apt 5B",
"city": "Larose",
"country": "US",
"subdivision": "LA",
"postal_code": "70373"
}
Example Success Response
{
"id": "07979b71-8812-4bed-ac63-07314aa4747a",
"group_id": "655e5d89-5541-4852-b284-58772dbdfd90",
"company": "Knockout Kickboxing",
"first_name": "Jane",
"last_name": "Doe",
"email": "knockout.kickboxing@domain.com",
"line_1": "2672 Woodland Avenue",
"line_2": "Apt 5B",
"city": "Larose",
"country": "US",
"subdivision": "LA",
"postal_code": "70373",
"created_at": "2025-11-19T14:26:05.141114Z",
"updated_at": "2025-11-19T14:57:25.375684202Z"
}