Payment

ApiDoc / Payments / Payment

Payment

To see the details of a payment, you can use the GET method, and the endpoint /payments/paymentID.

Endpoint

ValueDesciption
MethodGet
Endpoint/payments/paymentId
HeaderX-API-KEY: your api key

When you use the endpoint, the response will consist of a JSON object, with the payment details.

Response

The response is a JSON object, with the following properties:

ValueTypeDescription
InvoiceIdintThe reference to the invoice, that the payment is related to.
PaymentDateDateTimeThe date of the payment.
ToBePaidAmountdecimalThe amount that was to be paid.
PaidAmountdecimalThe actual amount that was paid.
PaymentTypestringThe payment type.
PaymentStatusstringThe status of the payment.
RefundIdintThe reference to the refund, if the payment has been refunded.
PaymentIdintThe reference to the payment.
PaymentSignstringThe sign of the payment. 1 = Payment or 2 = Refund

Remark

The amount is fully paid when the ToBePaidAmount is equal PaidAmount

Example of a response:

{
  "InvoiceId": 123,
  "PaymentDate": "2018-11-26",
  "ToBePaidAmount": 12.55,
  "PaidAmount": 12.55,
  "PaymentType": "string",
  "PaymentStatus": "string",
  "RefundId": 123,
  "PaymentId": 123,
  "PaymentSign": "1"
}