purchase_endpoint_credits_with_payment
Complete a public endpoint credit-pack purchase after you have obtained a valid X-Payment payload for the purchase challenge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Endpoint slug for the credit-enabled endpoint | |
| metadata | No | Optional metadata object forwarded to the purchase flow | |
| walletAddress | No | Optional wallet address to receive the purchased credits when the underlying endpoint supports it | |
| paymentPayload | Yes | Raw X-Payment payload returned by the paying client, as JSON or base64 string | |
| clientReferenceId | No | Optional client reference ID forwarded to the purchase flow |