{
"id": "network.attested.payment.status",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"status"
],
"properties": {
"ref": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "Present when status is 'completed'. Points to the attested payment record in the payer's repository."
},
"status": {
"type": "string",
"description": "Current payment status.",
"knownValues": [
"pending",
"completed",
"failed"
]
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"token"
],
"properties": {
"token": {
"type": "string",
"description": "Token returned from network.attested.payment.initiate."
}
}
},
"description": "Check the status of a payment initiated via network.attested.payment.initiate. Returns the current status and, when completed, a com.atproto.repo.strongRef pointing to the attested payment record in the payer's repository."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}