Skip to content

GET /api/v1/billing/receipts/{job}

Operation: getReceipt.

Itemized invoice/receipt and supplier information for a job (self/admin)

GET https://amplerun-api.spiry.org/api/v1/billing/receipts/{job}

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.

NameLocationPresenceTypeDescription
jobpathRequiredUUID

Receipt. charge_micro = fee_micro + host_micro, as posted to the ledger.

application/json

FieldTypePresenceDescription
job_idUUIDRequired
statestringRequired
machine_rate_micro_per_hourMicroAmountRequired
platform_fee_bpsintegerRequired
accepted_runtime_msDecimalStringRequired
charge_microMicroAmountRequired
fee_microMicroAmountRequired
host_microMicroAmountRequired
funded_budget_microMicroAmountRequired
supplierobjectRequired
operatorobjectRequired
entriesarray of objectRequired
{
"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"
}
}
}
}
}
}

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

FieldTypePresenceDescription
errorobjectRequired
{
"$ref": "#/components/schemas/ErrorEnvelope"
}

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.

Terminal window
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