API

Crear nota de crédito independiente

Changed on

Crea una nota de crédito independiente, asociada a un comprobante externo o a un período asociado explícitamente soportado. No usar para devoluciones de ventas internas: en ese caso usá /api/v1/sales/{sale_id}/returns.

post/api/v1/credit-notes

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/credit-notes
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring required

Clave estable para deduplicar reintentos de la misma operación.

Request body

integration_sourcestring
integration_idstring
customer_idstring uuid required
voucher_type3 | 8 | 13 | 53 | 95 | 100 | 203 | 208 | 213 required

AFIP credit-note voucher type.

point_of_sale_idstring uuid required
register_idstring uuid
operator_idstring uuid
issue_datestring date required
service_fromstring date

Start of the service period for a service credit note.

service_tostring date

End of the service period for a service credit note.

customer_tax_category_override'1' | '4' | '5' | '6' | '15'

Frozen ARCA receiver VAT condition for this credit note.

currency'ARS' | 'USD'
exchange_ratenumber

Exact exchange rate in ARS per USD. Required when currency is USD.

restock_inventoryboolean
warehouse_idstring uuid
notesstring

Response

Nota de crédito creada exitosamente

request_idstring

Changes

    • breaking

      added subschema #1 to the request body allOf list

    • breaking

      the request body dependentRequired was added: when service_from is present, service_to are required

    • breaking

      the request body dependentRequired was added: when service_to is present, service_from are required

    • breaking

      removed the enum value DOL of the request property

    • breaking

      removed the enum value PES of the request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new ARS enum value to the request property

    • info

      added the new USD enum value to the request property

    • 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

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