Prepare subscription collection
Changed onPrepares the collector-signed Solana subscriptions transfer transaction for an active subscription. The transaction must still be signed and submitted by the collector/fee-payer flow. A subscription that belongs to a recurring payment, or whose subscriber is one of the organization's SDP wallets, answers 409: SDP collects from an SDP wallet only through a recurring payment.
Request
- Base URLhttp://localhost:8787
- URLhttp://localhost:8787/v1/payments/subscriptions/{subscriptionId}/prepare-collection
- AuthHTTP bearer
Path parameters
SDP subscription record ID.
Headers
Required for dashboard sessions. API keys use their assigned project.
Request body
Example request
{
"receiverTokenAccount": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
}Response
Subscription collection prepared
Example response
{
"data": {
"subscription": {
"id": "psub_example",
"organizationId": "org_example",
"projectId": "prj_example",
"subscriberAddress": "So11111111111111111111111111111111111111112",
"subscriberTokenAccount": "So11111111111111111111111111111111111111112",
"subscriptionPda": "So11111111111111111111111111111111111111112",
"subscriptionAuthorityAddress": "So11111111111111111111111111111111111111112",
"status": "active",
"currentPeriodStartAt": "2025-01-01T00:00:00.000Z",
"nextCollectionDueAt": "2025-01-01T00:00:00.000Z",
"cancelAt": "2025-01-01T00:00:00.000Z",
"canceledAt": "2025-01-01T00:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
},
"preparedTransaction": {
"serialized": "AQID",
"blockhash": "blockhash_example",
"lastValidBlockHeight": "123456",
"requiredSigners": [
"So11111111111111111111111111111111111111112"
]
},
"collectionAttempt": {
"id": "psca_example",
"organizationId": "org_example",
"projectId": "prj_example",
"transferId": "xfr_example",
"amount": "100.00",
"dueAt": "2025-01-01T00:00:00.000Z",
"attemptedAt": "2025-01-01T00:00:00.000Z",
"status": "pending",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
},
"meta": {
"requestId": "req_example",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}Changes
- warning
added the new
CUSTODY_POLICY_REFUSEDenum value to the/response property for the response status - warning
added the new
CUSTODY_POLICY_REFUSEDenum value to the/response property for the response status - warning
added the new
CUSTODY_POLICY_REFUSEDenum value to the/response property for the response status - warning
added the new
CUSTODY_POLICY_REFUSEDenum value to the/response property for the response status - warning
added the new
CUSTODY_POLICY_REFUSEDenum value to the/response property for the response status - info
added the non-success response with the status
- warning
- warning
added the new
RPC_UNAVAILABLEenum value to the/response property for the response status - warning
added the new
RPC_UNAVAILABLEenum value to the/response property for the response status - warning
added the new
RPC_UNAVAILABLEenum value to the/response property for the response status - warning
added the new
RPC_UNAVAILABLEenum value to the/response property for the response status - warning
added the new
RPC_UNAVAILABLEenum value to the/response property for the response status - warning
added the new
SPONSORED_RENT_OVER_CAPenum value to the/response property for the response status - warning
added the new
SPONSORED_RENT_OVER_CAPenum value to the/response property for the response status - warning
added the new
SPONSORED_RENT_OVER_CAPenum value to the/response property for the response status - warning
added the new
SPONSORED_RENT_OVER_CAPenum value to the/response property for the response status - warning
added the new
SPONSORED_RENT_OVER_CAPenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_DESTINATION_CHANGEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_DESTINATION_CHANGEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_DESTINATION_CHANGEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_DESTINATION_CHANGEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_DESTINATION_CHANGEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_NOTHING_TO_RETRYenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_NOTHING_TO_RETRYenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_NOTHING_TO_RETRYenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_NOTHING_TO_RETRYenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_NOTHING_TO_RETRYenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RETRY_CLAIMEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RETRY_CLAIMEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RETRY_CLAIMEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RETRY_CLAIMEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RETRY_CLAIMEDenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RUN_EXISTSenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RUN_EXISTSenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RUN_EXISTSenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RUN_EXISTSenum value to the/response property for the response status - warning
added the new
TRANSFER_BATCH_RUN_EXISTSenum value to the/response property for the response status
- warning