billing.payment-methods.createAdd a payment method
POST /billing/api/payment-methodsIAM billing:ManagePaymentMethodsChanges stateDestructive
Request syntax
POST /billing/api/payment-methods
{
"type": "enum"
}Request body
typeRequiredenum
bank_transfer, the only method offered: invoices are paid to the bank details printed on them. A second one is refused (409)
One of:
bank_transfer
Response
201 with the new method as `list` shows it; the first one becomes the default. 409 when the organization already pays by bank transfer.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow billing:ManagePaymentMethods on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud billing payment-methods create --type bank_transfercurl -X POST "https://console.platform.deutschecloud.app/billing/api/payment-methods" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"bank_transfer"}'Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_billing_payment-methods_create.