# Insert payment

Inserts a payment
* Transaction must be saved first
* Receipt number is returned when inserting transaction

Endpoint: POST /slapi/clients/insertpayment
Version: 0.0.1
Security: BasicAuthCredentials

## Security:

  - `BasicAuthCredentials` (unknown)
    http basic

## Request fields (application/json):

  - `clientNumber` (string)
    Example: 0000000001

  - `paymentNumber` (string)
    Example: 0000000001

  - `promoNumber` (string)

  - `storecode` (string)
    Example: 0000000001

  - `receiptNumber` (string)
    Example: 0000000001

  - `employeeNumber` (string)
    Example: 00000000001

  - `amount` (number)
    Example: 9.99

## Response 201:

  - `201` (unknown)
    Payment inserted

## Response 201 fields (applicaiton/json):

  - `message` (string)
    Example: Payment inserted successfully

## Response 400:

  - `400` (unknown)
    Client not found

## Response 400 fields (applicatoin/json):

  - `error` (string)

  - `message` (string)

