API

Actualizar método de pago

Changed on

Actualiza el nombre, estado o configuración contable de un método de pago.

put/api/v1/payment-methods/{payment_method_id}

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/payment-methods/{payment_method_id}
  • Auth
    HTTP bearer

Path parameters

payment_method_idstring uuid required

Headers

Idempotency-Keystring required

Request body

namestring required
type'cash' | 'check' | 'card' | 'bank_transfer' | 'other'
bank_account_idstring uuid nullable
linked_account_idstring uuid nullable
supplier_source_bank_account_idstring uuid nullable

Solo métodos de tarjeta disponibles en compras. Cuenta bancaria, billetera o tarjeta de crédito corporativa activa y en pesos de la que salen los pagos a proveedores. Omitido mantiene el valor actual; null lo borra. Se borra si el método pasa a solo ventas o deja de ser tarjeta.

fee_percentagestring nullable
fee_fixedinteger nullable
requires_referenceboolean
visibility'sales' | 'purchases' | 'both' | 'system'
is_activeboolean

Response

Método de pago actualizado exitosamente

request_idstring required

Changes

    • breaking

      for the header request parameter Idempotency-Key, the minLength was increased from 0 to 1

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • breaking

      the // request property's minLength was increased from 0 to 1

    • breaking

      the // request property's minLength was increased from 0 to 1

    • breaking

      the request property's minLength was increased from 0 to 1

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • warning

      for the header request parameter Idempotency-Key, the maxLength was set to 255

    • warning

      the // request property's maxLength was set to 100

    • warning

      the // request property's maxLength was set to 100

    • warning

      the request property's maxLength was set to 100

    • info

      added the new optional request property

    • info

      the request property became nullable

    • info

      added the non-success response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      response property data/payment_method/fee_percentage list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/payment_method/icon list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added the required property // to the response with the status