Update case
curl --request PUT \
--url https://api.managem.co.uk/seller/cases/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "escalate"
}
'import requests
url = "https://api.managem.co.uk/seller/cases/{id}"
payload = { "action": "escalate" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'escalate'})
};
fetch('https://api.managem.co.uk/seller/cases/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.managem.co.uk/seller/cases/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'action' => 'escalate'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.managem.co.uk/seller/cases/{id}"
payload := strings.NewReader("{\n \"action\": \"escalate\"\n}")
req, _ := http.NewRequest("PUT", 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))
}HttpResponse<String> response = Unirest.put("https://api.managem.co.uk/seller/cases/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"escalate\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.managem.co.uk/seller/cases/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"escalate\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"workflowId": "<string>",
"reason": "SNAD",
"status": "OPEN",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"outcomes": [
{
"id": "<string>",
"type": "RETURN",
"party": "SELLER",
"status": "PENDING",
"caseId": "<string>",
"amount": 1,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comment": "<string>",
"deliveryAddress": "<unknown>"
}
],
"attachments": [
{
"url": "<string>",
"party": "SELLER",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"orderId": "<string>",
"comment": "<string>"
}Cases
Update case
Apply a seller action to an existing case.
Use this endpoint for case workflow actions like accepting/rejecting outcomes or escalating.
Rules:
- Seller must own the order associated with the case.
- Returns
404for missing/non-owned cases. - Returns
409when an outcome has already been accepted and cannot be changed.
Side effects:
- Escalation actions trigger case update notifications.
- Returns the refreshed case representation after mutation.
PUT
/
seller
/
cases
/
{id}
Update case
curl --request PUT \
--url https://api.managem.co.uk/seller/cases/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "escalate"
}
'import requests
url = "https://api.managem.co.uk/seller/cases/{id}"
payload = { "action": "escalate" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'escalate'})
};
fetch('https://api.managem.co.uk/seller/cases/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.managem.co.uk/seller/cases/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'action' => 'escalate'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.managem.co.uk/seller/cases/{id}"
payload := strings.NewReader("{\n \"action\": \"escalate\"\n}")
req, _ := http.NewRequest("PUT", 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))
}HttpResponse<String> response = Unirest.put("https://api.managem.co.uk/seller/cases/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"escalate\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.managem.co.uk/seller/cases/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"escalate\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"workflowId": "<string>",
"reason": "SNAD",
"status": "OPEN",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"outcomes": [
{
"id": "<string>",
"type": "RETURN",
"party": "SELLER",
"status": "PENDING",
"caseId": "<string>",
"amount": 1,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comment": "<string>",
"deliveryAddress": "<unknown>"
}
],
"attachments": [
{
"url": "<string>",
"party": "SELLER",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"orderId": "<string>",
"comment": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Case ID
Body
application/json
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
Available options:
escalate Response
Updated case
Available options:
SNAD, DAMAGED, WRONG_ITEM, NOT_RECEIVED, OTHER, CHARGEBACK Available options:
OPEN, REMEDIATION, SETTLED, CLOSED, ESCALATED Show child attributes
Show child attributes
Show child attributes
Show child attributes