List payment requests
Lists the caller's project's payment requests, newest first.
GET/Run in dashboard
Requires payment_requests.read. An open request past its expiresAt reads as expired. Records never carry publicToken.
Requires an API key with the payment_requests.read action.
Query parameters
-
page·integer· greater than 0 · default1· example1Page number, starting at 1.
-
pageSize·integer· min 1 · max 100 · default20· example20Results per page, 1 to 100.
-
status·string· one ofawaiting_payment,paid,canceled,expired· examplecanceledPayment request status.
awaiting_paymentis open;paidwas settled by an on-chain payment;canceledandexpiredclosed without one.
Headers
-
x-project-id·string· min length 1 · exampleprj_exampleRequired for dashboard sessions. API keys use their assigned project.
Responses
-
200Payment request list-
data·object· requiredPayment request list response payload.
-
paymentRequests·object[]· required-
id·string· required · examplepreq_exampleSDP payment request ID.
-
organizationId·string· requiredOrganization ID.
-
projectId·string | null· requiredProject ID.
-
walletId·string· requiredReceiving custody wallet's provider ID.
-
destinationAddress·string· required · min length 32 · max length 44 · exampleSo11111111111111111111111111111111111111112Address the payment is sent to.
-
token·string· requiredToken mint address.
-
amount·string· required · example100.00Token amount in UI units (decimal string).
-
reference·string· required · min length 32 · max length 44 · exampleSo11111111111111111111111111111111111111112Solana Pay reference account that identifies the payment on chain.
-
status·string· required · one ofawaiting_payment,paid,canceled,expired· examplecanceledPayment request status.
awaiting_paymentis open;paidwas settled by an on-chain payment;canceledandexpiredclosed without one. -
expiresAt·string | null· required · formatdate-time· example2025-01-01T00:00:00.000ZExpiry, if any.
-
fulfilledByTransferId·string | null· requiredThe inbound transfer that paid the request.
-
paidLate·boolean· requiredWhether the payment landed after the request expired or was canceled. A payer who signed before then can still pay.
-
lastCheckedAt·string | null· required · formatdate-time· example2025-01-01T00:00:00.000ZWhen SDP last read the chain for the payment.
-
canceledByApiKeyId·string | null· requiredThe API key that canceled the request; null when a member did, or it is not canceled.
-
canceledByUserId·string | null· requiredUser ID of the member who canceled the request; null when an API key did, or it is not canceled.
-
canceledAt·string | null· required · formatdate-time· example2025-01-01T00:00:00.000ZWhen it was canceled.
-
lifecycle·object[]· requiredEvery status the request entered, oldest first.
-
status·string· required · one ofawaiting_payment,paid,canceled,expired· examplecanceledPayment request status.
awaiting_paymentis open;paidwas settled by an on-chain payment;canceledandexpiredclosed without one. -
at·string· required · formatdate-time· example2025-01-01T00:00:00.000ZISO 8601 timestamp.
-
-
createdBy·string | null· requiredUser ID of the member, or of the API key's creator, who created it.
-
createdAt·string· required · formatdate-time· example2025-01-01T00:00:00.000ZISO 8601 timestamp.
-
updatedAt·string· required · formatdate-time· example2025-01-01T00:00:00.000ZISO 8601 timestamp.
-
-
total·integer· required -
page·integer· required -
pageSize·integer· required
-
-
meta·object· requiredResponse metadata.
-
requestId·string· required · min length 1 · examplereq_exampleRequest identifier for tracing.
-
timestamp·string· required · formatdate-time· example2025-01-01T00:00:00.000ZISO 8601 timestamp.
-
-
-
400Bad Request-
error·object· requiredStandard error payload.
-
code·string· requiredMachine-readable error code.
-
message·string· requiredHuman-readable error message.
-
details·objectOptional error details for debugging.
*·any
-
-
meta·object-
requestId·string· min length 1 · examplereq_exampleRequest identifier for tracing.
-
-
-
401UnauthorizedSame fields as
400. -
403Forbidden. Requires thepayment_requests.readaction: an API key must hold it (a module'smanageorexecutealso covers itsread), and a signed-in member's organization role must include it. Without it the error is INSUFFICIENT_PERMISSIONS anderror.details.actionnames the action. Any other 403 names its own reason.Same fields as
400. -
500Internal Server ErrorSame fields as
400.
Example request
curl 'https://api.solana.com/v1/payments/requests' \
-H "Authorization: Bearer $SDP_API_KEY"Example responses
{
"data": {
"paymentRequests": [
{
"id": "preq_example",
"organizationId": "organization_example",
"projectId": "project_example",
"walletId": "wallet_example",
"destinationAddress": "So11111111111111111111111111111111111111112",
"token": "example",
"amount": "100.00",
"reference": "So11111111111111111111111111111111111111112",
"status": "canceled",
"expiresAt": "2025-01-01T00:00:00.000Z",
"fulfilledByTransferId": "fulfilledbytransfer_example",
"paidLate": false,
"lastCheckedAt": "2025-01-01T00:00:00.000Z",
"canceledByApiKeyId": "canceledbyapikey_example",
"canceledByUserId": "canceledbyuser_example",
"canceledAt": "2025-01-01T00:00:00.000Z",
"lifecycle": [
{
"status": "canceled",
"at": "2025-01-01T00:00:00.000Z"
}
],
"createdBy": "example",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 1
},
"meta": {
"requestId": "req_example",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}Error responses use the standard error shape.