Deplo
API Reference

Attach a confirmed payment method to the workspace Stripe customer

POST
/billing/attach-payment-method
AuthorizationBearer <token>

Enter your JWT token

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/billing/attach-payment-method" \  -H "Content-Type: application/json" \  -d '{    "workspaceId": "ws_abc123",    "payment_method_id": "pm_card_visa"  }'
{
  "payment_method_id": "pm_...",
  "brand": "visa",
  "last4": "4242"
}