API ReferencePayment links
Delete a payment link
Permanently deletes a payment link. This cannot be undone. Any existing checkout sessions for this link will fail. Consider deactivating the link via PATCH instead if you may need it again.
Authorization
privy AuthorizationBearer <token>
Privy JWT authentication for dashboard and management endpoints. This is used internally by the Bag Dashboard and is not intended for direct API integrations. Use API keys instead.
In: header
Path Parameters
id*string
The unique identifier of the payment link to delete.
Format
uuidResponse Body
application/json
application/json
application/json
curl -X DELETE "https://api.justusebag.xyz/api/payment-links/d4e5f6a7-b8c9-4d0e-a1f2-b3c4d5e6f7a8"{
"status": "success",
"message": "Payment link deleted"
}{
"status": "error",
"message": "Invalid or revoked API key",
"code": "UNAUTHORIZED",
"hint": "Include a valid API key in the Authorization header: Bearer bag_live_sk_..."
}{
"status": "error",
"message": "Not found",
"code": "NOT_FOUND"
}