Update Customer
Endpoint for updating a Customer.
info
Please be aware that this endpoint requires a Manage Customers API Key.
PUT
/api/v1/groups/{group_id}/revere_pay/{linked_account_id}/customers
Request Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| first_name | First Name of the Customer | string | Required |
| last_name | Last Name of the Customer | string | Required |
| Email Address of the Customer | 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 linked_account_id = '';
const customer_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/customers/${customer_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 = ""
linked_account_id = ""
customer_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/revere_pay/" + linked_account_id + "/customers/" + customer_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 linked_account_id = ""
const customer_id = ""
url := "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/revere_pay/" + linked_account_id + "/customers/" + customer_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
{
"first_name": "John",
"last_name": "Doe",
"email": "johndoe@reverepayments.com"
}
Example Success Response
{
"id": "25f8fa96-5c96-4448-994c-c2b7281ed263",
"group_id": "9be095b0-4d8e-47a7-b44b-667e4e92b86c",
"first_name": "John",
"last_name": "Doe",
"email": "johndoe@reverepayments.com",
"created_at": "2025-07-21T12:43:14.834027Z",
"updated_at": "2025-07-21T12:43:14.834028Z"
}