# Create a payment method `POST /api/v1/payment_methods` Creates a payment method. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Payment methods → Write**. ## Body parameters - `label` (string, required) — Unique label, up to 64 characters. - `is_active` (boolean) — Whether the method is active. Deactivation clears the default flag. - `sort_order` (integer) — Non-negative display order. - `traceable` (boolean) — Whether the payment method is traceable. - `is_default` (boolean) — Set true on an active method to select it as the workspace default. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/payment_methods" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"label":"Bank transfer","traceable":true}' ``` ## Response **201 Created** The created payment method is returned in data. Example with fictional data and selected fields. ```json { "message_key": "entities.payment_method.messages.created", "data": { "label": "Bank transfer", "is_active": true, "sort_order": 0, "traceable": true, "is_default": false } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — One or more fields failed validation. - `500` — The change could not be saved.