cURL
curl -X PATCH "$EXSITED_BASE_URL/api/v4/return_vendor_authorizations/rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"return_vendor_authorization": {
"note": "Two cartons arrived damaged."
}
}'from exsited import build_client
client = build_client()
response = client.return_vendor_authorizations.update_return_vendor_authorization(
"rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d",
{"return_vendor_authorization": {"note": "Two cartons arrived damaged."}},
)
print(response.data)
import {buildClient} from 'exsited';
const client = await buildClient();
const response = await client.returnVendorAuthorizations.updateReturnVendorAuthorization(
'rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d',
{return_vendor_authorization: {note: 'Two cartons arrived damaged.'}},
);
console.log(response.data);
use Exsited\Client\ClientRegistry;
$client = ClientRegistry::buildClient();
$response = $client->returnVendorAuthorizations->updateReturnVendorAuthorization(
'rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d',
['return_vendor_authorization' => ['note' => 'Two cartons arrived damaged.']],
);
print_r($response->data);
import com.exsited.client.ApiResponse;
import com.exsited.client.ClientRegistry;
import com.exsited.client.ExsitedClient;
import com.exsited.resources.return_vendor_authorizations.return_vendor_authorizations_dto.ReturnVendorAuthorizationsDto.ReturnVendorAuthorizationView;
import java.util.Map;
ExsitedClient client = ClientRegistry.buildClient();
ApiResponse<ReturnVendorAuthorizationView> response = client.returnVendorAuthorizations().updateReturnVendorAuthorization(
"rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d",
Map.of("return_vendor_authorization", Map.of("note", "Two cartons arrived damaged.")));
System.out.println(response.getMap());
using Exsited.Client;
await using var client = ExsitedClient.BuildClient();
var response = await client.ReturnVendorAuthorizations.UpdateReturnVendorAuthorizationAsync(
"rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d",
new Dictionary<string, object?>
{
["return_vendor_authorization"] = new Dictionary<string, object?>
{
["note"] = "Two cartons arrived damaged.",
},
});
Console.WriteLine(response.Json);
import 'package:exsited/exsited.dart';
final client = buildClient();
final response = await client.returnVendorAuthorizations
.updateReturnVendorAuthorization('rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d', {
'return_vendor_authorization': {'note': 'Two cartons arrived damaged.'},
});
print(response.map);
import (
"context"
"fmt"
"log"
exsited "github.com/exsited/exsited-sdk-go/v4"
)
client, err := exsited.BuildClient(nil)
if err != nil {
log.Fatal(err)
}
defer client.Close()
response, err := client.ReturnVendorAuthorizations().UpdateReturnVendorAuthorization(context.Background(), "rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d", map[string]any{
"return_vendor_authorization": map[string]any{"note": "Two cartons arrived damaged."},
}, nil)
if err != nil {
log.Fatal(err)
}
fmt.Println(response.Map)
{
"return_vendor_authorization": {
"account": {
"code": "<string>",
"href": "<string>",
"id": "<string>",
"name": "<string>",
"object": "<string>"
},
"code": "<string>",
"created_by": {
"name": "<string>",
"object": "<string>"
},
"created_on": "<string>",
"href": "<string>",
"id": "<string>",
"item_count": 123,
"last_updated_by": "<unknown>",
"last_updated_on": "<unknown>",
"note": "<string>",
"object": "<string>",
"purchase_order": {
"code": "<string>",
"href": "<string>",
"id": "<string>",
"object": "<string>"
},
"return_status": "<string>",
"rva_date": "<string>",
"status": "<string>",
"version": 123,
"lines": [
"<unknown>"
],
"receive_rvas": [
"<unknown>"
]
}
}Return vendor authorizations
Update a return vendor authorization
Changes the date, note or custom attributes of a return vendor authorization and returns it under return_vendor_authorization.
PATCH
/
return_vendor_authorizations
/
{rva_id}
cURL
curl -X PATCH "$EXSITED_BASE_URL/api/v4/return_vendor_authorizations/rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"return_vendor_authorization": {
"note": "Two cartons arrived damaged."
}
}'from exsited import build_client
client = build_client()
response = client.return_vendor_authorizations.update_return_vendor_authorization(
"rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d",
{"return_vendor_authorization": {"note": "Two cartons arrived damaged."}},
)
print(response.data)
import {buildClient} from 'exsited';
const client = await buildClient();
const response = await client.returnVendorAuthorizations.updateReturnVendorAuthorization(
'rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d',
{return_vendor_authorization: {note: 'Two cartons arrived damaged.'}},
);
console.log(response.data);
use Exsited\Client\ClientRegistry;
$client = ClientRegistry::buildClient();
$response = $client->returnVendorAuthorizations->updateReturnVendorAuthorization(
'rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d',
['return_vendor_authorization' => ['note' => 'Two cartons arrived damaged.']],
);
print_r($response->data);
import com.exsited.client.ApiResponse;
import com.exsited.client.ClientRegistry;
import com.exsited.client.ExsitedClient;
import com.exsited.resources.return_vendor_authorizations.return_vendor_authorizations_dto.ReturnVendorAuthorizationsDto.ReturnVendorAuthorizationView;
import java.util.Map;
ExsitedClient client = ClientRegistry.buildClient();
ApiResponse<ReturnVendorAuthorizationView> response = client.returnVendorAuthorizations().updateReturnVendorAuthorization(
"rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d",
Map.of("return_vendor_authorization", Map.of("note", "Two cartons arrived damaged.")));
System.out.println(response.getMap());
using Exsited.Client;
await using var client = ExsitedClient.BuildClient();
var response = await client.ReturnVendorAuthorizations.UpdateReturnVendorAuthorizationAsync(
"rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d",
new Dictionary<string, object?>
{
["return_vendor_authorization"] = new Dictionary<string, object?>
{
["note"] = "Two cartons arrived damaged.",
},
});
Console.WriteLine(response.Json);
import 'package:exsited/exsited.dart';
final client = buildClient();
final response = await client.returnVendorAuthorizations
.updateReturnVendorAuthorization('rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d', {
'return_vendor_authorization': {'note': 'Two cartons arrived damaged.'},
});
print(response.map);
import (
"context"
"fmt"
"log"
exsited "github.com/exsited/exsited-sdk-go/v4"
)
client, err := exsited.BuildClient(nil)
if err != nil {
log.Fatal(err)
}
defer client.Close()
response, err := client.ReturnVendorAuthorizations().UpdateReturnVendorAuthorization(context.Background(), "rva_9a8b7c6d5e4f4a3b2c1d0e9f8a7b6c5d", map[string]any{
"return_vendor_authorization": map[string]any{"note": "Two cartons arrived damaged."},
}, nil)
if err != nil {
log.Fatal(err)
}
fmt.Println(response.Map)
{
"return_vendor_authorization": {
"account": {
"code": "<string>",
"href": "<string>",
"id": "<string>",
"name": "<string>",
"object": "<string>"
},
"code": "<string>",
"created_by": {
"name": "<string>",
"object": "<string>"
},
"created_on": "<string>",
"href": "<string>",
"id": "<string>",
"item_count": 123,
"last_updated_by": "<unknown>",
"last_updated_on": "<unknown>",
"note": "<string>",
"object": "<string>",
"purchase_order": {
"code": "<string>",
"href": "<string>",
"id": "<string>",
"object": "<string>"
},
"return_status": "<string>",
"rva_date": "<string>",
"status": "<string>",
"version": 123,
"lines": [
"<unknown>"
],
"receive_rvas": [
"<unknown>"
]
}
}Updates the header of the return vendor authorization, wrapped in
return_vendor_authorization: rva_date, note and custom_attributes. Address it by its rva_ id or its code.
The SDK samples get their client from credentials your app registers once when it starts, as shown in Authentication. To try the call here, click Try it, set
host to your Exsited API host name and paste an access token from Get an access token. To send a raw JSON body instead of filling in fields, copy the cURL sample and edit its -d payload.Authorizations
An access token from POST /api/v4/oauth2/token. The SDKs get and renew it for you.
Path Parameters
The return vendor authorization's rva_ id, or its code.
Body
application/json
Show child attributes
Show child attributes
Response
200 - application/json
The updated return vendor authorization, under return_vendor_authorization.
Show child attributes
Show child attributes