On this page
Claim a platform usage hold
ClaimPlatformUsageHold is an internal platform service operation.
ClaimPlatformUsageHold is an internal platform service operation.
- Path
POST https://api.sylphx.com/v1/platform_usage_holds:claim - Scope
money:platform_usage:write - Effect
write— a successful call changes state. - Collection platform_usage_holds
Request
| Field | Type | What it is |
|---|---|---|
payer_org | string | |
service | string | |
execution_key | string |
Response
| Field | Type | What it is |
|---|---|---|
name | string | |
uid | string | Output only. |
meta | ResourceMeta | |
payer_org | string | |
service | string | |
execution_key | string | |
upper_bound_picousd | string | |
dispatch_by | string | |
settle_by | string | |
state | string | pending, in_flight, awaiting_settlement (receipt overdue), captured, released, or expired. |
captured_picousd | string | |
released_picousd | string | |
ledger_transaction_id | string | Present only for a positive capture; this is the only billable journal. |
replayed | bool |
ResourceMeta
| Field | Type | What it is |
|---|---|---|
generation | int64 | Increases by one on every change to spec. Output only. |
etag | string | Strong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only. |
create_time | timestamp | When the Resource was created. Output only. |
update_time | timestamp | When the Resource last changed. Output only. |
delete_time | timestamp | Set while the Resource is being deleted. Output only. |
labels | map<string, string> | Caller-writable, indexed labels (AIP-122 label rules). |
annotations | map<string, string> | Caller-writable, unindexed annotations. |
display_name | string | Caller-writable human-readable name. |
creator | string | The principal that created the Resource. Output only. |
Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_FIELD— A field failed validation.FAILED_PRECONDITION— A released manifest owns a requested resource field. Change the declaration in the named file and key path, then release.IDEMPOTENCY_KEY_REUSED— An Idempotency-Key was reused with another body.UNAVAILABLE— The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.
Every error arrives in the body Errors describes.
Examples
curl -X POST "https://api.sylphx.com/v1/platform_usage_holds:claim" \
-H "Authorization: Bearer $SYLPHX_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'