Examples
Search deterministic request vectors and launch them into a workflow.
Each example mirrors a concrete Open Payments request class and can be loaded directly into sign, verify, or inspect.
Deterministic fixturesPreset-awareOne-click workflow loading
Bootstrap access request
Initial access bootstrap request signed without an Authorization header.
grant-request
{
"method": "POST",
"url": "https://auth.example.com/grants",
"headers": {
"accept": "application/json",
"content-type": "application/json"
},
"body": "{\"client\":\"https://wallet.example.com/alice\",\"access_token\":{\"access\":[{\"type\":\"incoming-payment\",\"actions\":[\"create\",\"read\"]}]}}"
}Quote request
Protected quote request carrying a GNAP access token bound to the client key.
protected-request
{
"method": "POST",
"url": "https://rs.example.com/quotes",
"headers": {
"accept": "application/json",
"authorization": "GNAP access_token=\"quote-token\"",
"content-type": "application/json"
},
"body": "{\"receiver\":\"https://wallet.example.com/bob\",\"method\":\"ilp\",\"sourceAmount\":{\"assetCode\":\"USD\",\"assetScale\":2,\"value\":\"1250\"}}"
}Incoming payment
Resource write flow for creating an incoming payment with digest coverage.
resource-write
{
"method": "POST",
"url": "https://rs.example.com/incoming-payments",
"headers": {
"accept": "application/json",
"authorization": "GNAP access_token=\"incoming-token\"",
"content-type": "application/json"
},
"body": "{\"walletAddress\":\"https://wallet.example.com/alice\",\"incomingAmount\":{\"assetCode\":\"USD\",\"assetScale\":2,\"value\":\"2500\"},\"expiresAt\":\"2026-12-31T23:59:59.000Z\"}"
}Outgoing payment
Protected resource write flow for creating an outgoing payment request.
resource-write
{
"method": "POST",
"url": "https://rs.example.com/outgoing-payments",
"headers": {
"accept": "application/json",
"authorization": "GNAP access_token=\"outgoing-token\"",
"content-type": "application/json"
},
"body": "{\"quoteId\":\"https://rs.example.com/quotes/123\",\"receiver\":\"https://wallet.example.com/bob\",\"debitAmount\":{\"assetCode\":\"USD\",\"assetScale\":2,\"value\":\"1250\"}}"
}