Break/Unmatch a match group
curl --request DELETE \
--url https://matcher.sandbox.lerian.net/v1/matching/groups/{matchGroupId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "incorrect match - amounts do not match"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://matcher.sandbox.lerian.net/v1/matching/groups/{matchGroupId}"
payload := strings.NewReader("{\n \"reason\": \"incorrect match - amounts do not match\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'incorrect match - amounts do not match'})
};
fetch('https://matcher.sandbox.lerian.net/v1/matching/groups/{matchGroupId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://matcher.sandbox.lerian.net/v1/matching/groups/{matchGroupId}"
payload = { "reason": "incorrect match - amounts do not match" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}{
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}{
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}{
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}{
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}Break/Unmatch a match group
Use this endpoint to break an incorrect match group. This rejects the match with a reason and reverts all associated transactions to UNMATCHED status.
DELETE
/
v1
/
matching
/
groups
/
{matchGroupId}
Break/Unmatch a match group
curl --request DELETE \
--url https://matcher.sandbox.lerian.net/v1/matching/groups/{matchGroupId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "incorrect match - amounts do not match"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://matcher.sandbox.lerian.net/v1/matching/groups/{matchGroupId}"
payload := strings.NewReader("{\n \"reason\": \"incorrect match - amounts do not match\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'incorrect match - amounts do not match'})
};
fetch('https://matcher.sandbox.lerian.net/v1/matching/groups/{matchGroupId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://matcher.sandbox.lerian.net/v1/matching/groups/{matchGroupId}"
payload = { "reason": "incorrect match - amounts do not match" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}{
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}{
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}{
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}{
"code": "MTCH-0001",
"title": "Bad Request",
"message": "context not found",
"error": "<string>",
"details": {}
}Authorizations
Bearer token authentication (format: "Bearer {token}")
Headers
A unique identifier for tracing the request across services.
Path Parameters
Match Group ID
Query Parameters
Context ID
Body
application/json
Unmatch payload with rejection reason
Example:
"incorrect match - amounts do not match"
Response
Indicates that the operation was successful with no content to return.
Was this page helpful?

