GET /api/v1/billing/receipts/{job}
Operation: getReceipt.
Itemized invoice/receipt and supplier information for a job (self/admin)
Endpoint
Section titled “Endpoint”GET https://amplerun-api.spiry.org/api/v1/billing/receipts/{job}
Authentication
Section titled “Authentication”Use the credential and scope required by this operation. For programmatic renter/host calls: Authorization: Bearer $AMPLERUN_API_KEY. A host-agent signature or other specialized proof is required where the description specifies it.
Parameters
Section titled “Parameters”| Name | Location | Presence | Type | Description |
|---|---|---|---|---|
job | path | Required | UUID |
Responses
Section titled “Responses”Receipt. charge_micro = fee_micro + host_micro, as posted to the ledger.
application/json
| Field | Type | Presence | Description |
|---|---|---|---|
job_id | UUID | Required | |
state | string | Required | |
machine_rate_micro_per_hour | MicroAmount | Required | |
platform_fee_bps | integer | Required | |
accepted_runtime_ms | DecimalString | Required | |
charge_micro | MicroAmount | Required | |
fee_micro | MicroAmount | Required | |
host_micro | MicroAmount | Required | |
funded_budget_micro | MicroAmount | Required | |
supplier | object | Required | |
operator | object | Required | |
entries | array of object | Required |
{ "type": "object", "required": [ "job_id", "state", "machine_rate_micro_per_hour", "platform_fee_bps", "accepted_runtime_ms", "charge_micro", "fee_micro", "host_micro", "funded_budget_micro", "supplier", "operator", "entries" ], "properties": { "job_id": { "$ref": "#/components/schemas/UUID" }, "state": { "type": "string" }, "machine_rate_micro_per_hour": { "$ref": "#/components/schemas/MicroAmount" }, "platform_fee_bps": { "type": "integer", "minimum": 0 }, "accepted_runtime_ms": { "$ref": "#/components/schemas/DecimalString" }, "charge_micro": { "$ref": "#/components/schemas/MicroAmount" }, "fee_micro": { "$ref": "#/components/schemas/MicroAmount" }, "host_micro": { "$ref": "#/components/schemas/MicroAmount" }, "funded_budget_micro": { "$ref": "#/components/schemas/MicroAmount" }, "supplier": { "type": "object", "required": [ "account_id" ], "properties": { "account_id": { "type": "string" } } }, "operator": { "type": "object", "properties": { "name": { "type": "string" }, "support_email": { "type": "string" } } }, "entries": { "type": "array", "items": { "type": "object", "required": [ "transaction_id", "kind", "external_ref", "at" ], "properties": { "transaction_id": { "type": "string" }, "kind": { "type": "string" }, "external_ref": { "type": "string" }, "at": { "$ref": "#/components/schemas/Rfc3339Utc" } } } } }}default
Section titled “default”Error envelope. 401 unauthenticated, 403/404 forbidden, 409 conflict, 422 invalid input, 429 rate limited (code UNAVAILABLE, retryable:true, no Retry-After header), 503 unavailable money/provider state with retryable:true.
application/json
| Field | Type | Presence | Description |
|---|---|---|---|
error | object | Required |
{ "$ref": "#/components/schemas/ErrorEnvelope"}Static request outline
Section titled “Static request outline”Replace path/query placeholders and provide the required JSON body, headers and credential from the sections above. This is a request outline, not a command that chooses an amount or starts a rental for you.
curl --request GET 'https://amplerun-api.spiry.org/api/v1/billing/receipts/{job}' \ --header "Authorization: Bearer $AMPLERUN_API_KEY"Schema definitions · Download OpenAPI · Authentication · Errors and recovery
Official AmpleRun documentation · Contract v3 · Generated from the API contract · Revision 52fe29de · Open AmpleRun · View Markdown · For agents