Ask for an invitation
Menu

Endpoint

Skip a test saved address's approval and wait

POST/v1/test/saved_addresses/{id}/activate

In test mode, makes a proposed saved address active at once, as if an Owner or Finance member had approved it with a passkey and its 24-hour wait had passed. With a live key it answers 403 with test_helper_in_live_mode.

Scope a restricted key needs
payouts:write
Publishable key
Not allowed: secret or restricted key only
Idempotency-Key
Recommended. It makes a retry safe.

Parameters

Parameters of Skip a test saved address's approval and wait
ParameterType and placeMeaning
idrequiredstringpathThe id of the saved address.
Orrerie-VersionstringheaderAPI version date. Default: the version the key was created with. Example 2026-10-11.
Idempotency-KeystringheaderMakes a retry safe. Kept 24 hours. 1 to 255 characters.

Request body

A JSON object. The body may be left out. A field the call does not list is refused with parameter_unknown.

Example request

curl

curl https://api.orrerie.com/v1/test/saved_addresses/dst_92jw0br3z1bzkk45ddjqcm6q/activate \
  -H "Authorization: Bearer $ORRERIE_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

JavaScript

const response = await fetch("https://api.orrerie.com/v1/test/saved_addresses/dst_92jw0br3z1bzkk45ddjqcm6q/activate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ORRERIE_SECRET_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
});
const result = await response.json();
if (!response.ok) throw new Error(`${result.error.code}: ${result.error.message}`);
console.log(result);

Python

import os
import requests

response = requests.post(
    "https://api.orrerie.com/v1/test/saved_addresses/dst_92jw0br3z1bzkk45ddjqcm6q/activate",
    headers={"Authorization": f"Bearer {os.environ['ORRERIE_SECRET_KEY']}"},
    json={},
    timeout=30,
)
result = response.json()
if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)

PHP

<?php
$request = curl_init('https://api.orrerie.com/v1/test/saved_addresses/dst_92jw0br3z1bzkk45ddjqcm6q/activate');
curl_setopt_array($request, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('ORRERIE_SECRET_KEY'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode(new stdClass()),
]);
$body = curl_exec($request);
if ($body === false) {
    throw new RuntimeException(curl_error($request));
}
$result = json_decode($body, true);
if (curl_getinfo($request, CURLINFO_HTTP_CODE) >= 400) {
    throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);

Responses

200 OK

The answer is the saved_address object. Headers: Orrerie-Request-Id.

Example response, 200

{
  "id": "dst_92jw0br3z1bzkk45ddjqcm6q",
  "object": "saved_address",
  "livemode": false,
  "created": "2026-10-05T11:20:00.000Z",
  "label": "Green bean supplier",
  "kind": "third_party",
  "address": "0xD1220A0cf47c7B9Be7A2E6BA89F429762e7b9aDb",
  "network": "base",
  "asset": "base:usdc",
  "status": "active",
  "approved_by": "mem_ceh1wpzdrpk13cnpcjy9w0fa",
  "approved_at": "2026-10-05T11:24:09.000Z",
  "usable_at": "2026-10-06T11:24:09.000Z",
  "screening": {
    "id": "scr_6ncr4e0p7wqndfvny2d5vw5s",
    "status": "clear",
    "checked_at": "2026-10-05T11:20:01.000Z"
  },
  "approval_url": null,
  "metadata": {}
}

Any other status: an error

A status of 400 or above answers with the error object. Branch on its code, never on its message.

Errors

Beside the errors every call can answer with (a bad key, a missing scope, the rate limit), this call answers with:

Errors of Skip a test saved address's approval and wait
CodeHTTPMeaning
test_helper_in_live_mode403A /v1/test/... endpoint was called with a live key.