---
title: "Generate Payment"
method: POST
path: "/documents/{document-id}/partial_payments.json"
tags: ["Invoices"]
---

# Generate Payment

`POST /documents/{document-id}/partial_payments.json`

## Path parameters

- `document-id` integer, required

## Query parameters

- `api_key` string, required

## Request body

- PaymentRequest
  - `partial_payment` object, required
    - `amount` number, required
    - `payment_mechanism` 'TB' | 'MB' | 'CC'
    - `note` string
    - `serie` string
    - `payment_date` string

## Response `200`

SUCCESS 

Creates a new quote, proforma or fees_note.

#### Possible values for field atcud:

* ABCD1234-1 (or similar) - Unique document identifier to the Tax Authority, when the sequence is registered.
* N/D - The document's sequence is relevant for ATCUD but is not registered in the Tax Authority.
* N/A - The document's sequence is not relevant for ATCUD and is not registered in the Tax Authority.

- PaymentResponse
  - `receipt` FullDocumentObject
    - `id` integer
    - `status` string
    - `archived` boolean
    - `type` string
    - `sequence_number` string
    - `inverted_sequence_number` string
    - `atcud` string
    - `sequence_id` string
    - `tax_exemption` string
    - `date` string
    - `due_date` string
    - `reference` string
    - `observations` string
    - `retention` string
    - `permalink` string
    - `saft_hash` string
    - `sum` number
    - `discount` number
    - `before_taxes` number
    - `taxes` number
    - `total` number
    - `currency` string
    - `client` InvoiceClient
      - `id` integer
      - `name` string
      - `code` string
      - `country` string
      - `email` string
    - `items` InvoiceItem[]
      - `name` string
      - `description` string
      - `unit_price` number
      - `quantity` number
      - `unit` string
      - `discount` number
      - `tax` object
        - `name` string
        - `value` number
      - `total` number
    - `mb_reference` MbReference
      - `entity` string
      - `reference` string
      - `value` number

## Other responses

- `401` — ACCESS DENIED
- `404` — NOT FOUND
- `422` — UNPROCESSABLE ENTITY

---

[API](https://skmtc.net/invoicexpress/apis/invoicexpress-api.md) · [All operations](https://skmtc.net/invoicexpress/apis/invoicexpress-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/invoicexpress/invoicexpress-api/versions/5cea7e1d8f41/schema)
