Payments

Create a payment

Changed on

Create a payment

post/payments

Request

  • Base URL
    https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage
  • URL
    https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/payments
  • Auth
    API key in header x-api-key

Request body

invoice_idinteger required

Existing invoice id.

payment_dateinteger required

Unix timestamp.

amountstring required

A number, sent as a string.

method 'cash' | 'check' | 'card' | 'square' | 'bank_transfer' | 'other' required
payment_method_idinteger nullable

Existing payment method id.

notesstring
square_transaction_idstring

Response

Created

errorboolean

false when the request succeeds.

responseobject

The created record.

Changes

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      removed the success response with the status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the success response with the status