Skip to main content
GET
Get a receipt

Authorizations

Authorization
string
header
required

Create a key under Settings → API Keys and send it as Authorization: Bearer amd_live_…. See https://docs.anythingmd.com/authentication.

Path Parameters

receiptId
string
required

Id of a usage receipt

Minimum string length: 1

Response

Usage receipt

id
string
required

Receipt id (stable: rcpt_)

Minimum string length: 1
jobId
string
required

Id of an async job

Minimum string length: 1
quoteId
string | null
required

Quote id when one was pinned

Minimum string length: 1
artifactIds
string[]
required

Artifact ids produced by the job

Minimum string length: 1
holdId
string | null
required
Minimum string length: 1
tenantId
string
required
Minimum string length: 1
actorPrincipalId
string
required
Minimum string length: 1
actorType
string
required
Minimum string length: 1
credentialId
string | null
required
Minimum string length: 1
channel
string
required
Minimum string length: 1
usage
object
required

Natural units; not a second bill

sourceFormat
string | null
required
reservedCredits
integer
required

Credits reserved when the job started

Required range: 0 <= x <= 9007199254740991
settledCredits
integer
required

Credits actually captured; 0 when the hold was released

Required range: 0 <= x <= 9007199254740991
priceVersion
string | null
required
Minimum string length: 1
tier
string | null
required

Pricing tier the job was charged at, e.g. standard

Minimum string length: 1
fundingSource
string | null
required
Minimum string length: 1
originalReceiptId
string | null
required

Set on refund/correction receipts; null on the original

Minimum string length: 1
kind
enum<string>
required
Available options:
original,
refund,
correction
outcome
string
required
Minimum string length: 1
errorCode
string | null
required
metronomeEventId
string | null
required
Minimum string length: 1
stripeInvoiceId
string | null
required
Minimum string length: 1
occurredAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$