Initiate payment method addition
Endpoint
Section titled “Endpoint”POST /v1/billing/payment-methods
Authentication
Section titled “Authentication”No authentication required.
cURL Example
Section titled “cURL Example”curl -X POST "https://api.sapiom.ai/v1/billing/payment-methods" \ -H "Authorization: Bearer YOUR_API_KEY"Response
Section titled “Response”{ "id": "550e8400-e29b-41d4-a716-446655440000", "clientToken": "seti_xxx_secret_xxx", "providerConfig": null, "expiresAt": "2024-01-16T12:00:00.000Z"}Error Responses
Section titled “Error Responses”| Status | Code | Description |
|---|---|---|
| 400 | - | Invalid request or billing profile not configured |
| 401 | - | Unauthorized |
See Error Codes for full reference.