DELETE /payment-method/{uid}

Supprime un moyen de paiement (soft delete).

Le moyen passe en état "inactive" et n'est plus proposé pour les nouveaux documents.

Note : Il est recommandé d'utiliser PATCH avec state: "inactive" plutôt que DELETE pour conserver l'historique des documents utilisant ce moyen.

Path parameters

  • uid string Required

    Identifiant unique du moyen de paiement

Responses

  • 200 application/json

    Moyen de paiement supprimé

    Hide response attribute Show response attribute object
    • paymentMethod object
      Hide paymentMethod attributes Show paymentMethod attributes object
      • _id string

        Unique identifier for the payment method

      • company string

        Reference to the company

      • default boolean

        Whether this is the default payment method

      • isTest boolean

        Whether this is a test payment method

        Default value is false.

      • modality string

        Additional information about the payment method

      • name string

        Name of the payment method

      • public string

        Public information

      • rang string

        Paybox specific field

      • secret string

        Secret information

      • site string

        Paybox specific field

      • state string

        State of the payment method

        Values are active or inactive. Default value is active.

      • tag string

        Type of payment method

        Values are paybox, epayment, check, stripe, paypal, transfer, or other. Default value is other.

      • nbInvoices integer

        Number of invoices using this payment method

      • nbQuotes integer

        Number of quotes using this payment method

  • 403

    Non autorisé - Droits insuffisants pour supprimer ce moyen

  • 404

    Moyen de paiement non trouvé

DELETE /payment-method/{uid}
curl \
 --request DELETE 'https://wuro.pro/api/v3.2/payment-method/{uid}' \
 --header "X-APP-ID: $API_KEY" \
 --header "X-APP-SECRET: $API_KEY"
Response examples (200)
{
  "paymentMethod": {
    "_id": "string",
    "company": "string",
    "default": true,
    "isTest": false,
    "modality": "string",
    "name": "string",
    "public": "string",
    "rang": "string",
    "secret": "string",
    "site": "string",
    "state": "active",
    "tag": "other",
    "nbInvoices": 42,
    "nbQuotes": 42
  }
}