/api/payments/

 

Parameters for GET Queries

PARAMETER NAMETYPEDESCRIPTIONREQUIRED
dateFromStringFormat: 2012-12-29T00:00:00
dateToStringFormat: 2012-12-29T00:00:00
entityIdlong
isIncomeboolean
getEverythingboolean
documentIdlong
typeString
paymentTypeStringPAYMENT_TYPE
showOnlyPrepaymentsboolean
documentStatusTypeString
accountIdlongAccount ID (internal)
projectIdlongProject ID (internal)
descriptionStringPayment Description
sortByString
startint
limitint

Response

FIELD NAMETYPEDESCRIPTIONREQUIRED
PaymentInfoidlongPayment ID (internal)
PaymentInfoopDateDateFormat: 2012-12-29T00:00:00
PaymentInfoinvoiceIdlongInvoice ID (internal)
PaymentInfotransactionIdentifierString
PaymentInfotransactionEntryIdlong
PaymentInfosumPaidBigDecimalSum Paid
PaymentInfosumWithVatBigDecimalSum With VAT
PaymentInfocurrencyCodeStringCurrency Code
PaymentInfotypeCodeStringPAYMENT_TYPE
PaymentInfoaccountIdlongAccount ID
PaymentInfocustomerNameStringCustomer Name
PaymentInfonumberString
PaymentInforeferenceNumberStringReference Number
PaymentInfoarchivingIdStringArchiving ID
PaymentInfonoteStringNote
PaymentInfocodeStringCode
PaymentInfobadDebtbooleanUndoubtful income
PaymentInfopartnerPaymentIdlongPayment ID (from ERPLY)
PaymentInfocustomerIdlongCustomer ID (internal)
PaymentInfooriginalSumBigDecimalOriginal Sum
PaymentInfopartnerDocumentIdlongDocument ID (from ERPLY)
PaymentInfoimportedbooleanIs imported from EPRLY
PaymentInfodocumentStatusTypeCodeStringDOCUMENT_STATUS_TYPE
PaymentInfostatusChangeDatetimeDateDate of change of Documen’ts Status
PaymentInfocurrencyRate
PaymentInfoprojectIdlongProject ID (internal)
PaymentInfoentityName
PaymentInfoparentPaymentId

API Examples

GET

PaymentType is required!
Using id: https://api.erplybooks.com/api/payments

DELETE

Id is required!
https://api.erplybooks.com/api/payments/2575151

PUT

Used to update data. Id is required.
https://api.erplybooks.com/api/payments/2575151

JSON: {"id":2749305, "opDate":"2014-04-14T12:00:00", "invoiceId":2622468, "transactionIdentifier":null, "transactionEntryId":7782152, "sumPaid":10.000000, "sumWithVat":null, "currencyCode":"CURRENCY_EUR", "typeCode":"INVOICE_PAYMENT", "accountId":583287, "customerName":null, "number":null, "referenceNumber":null, "archivingId":"", "note":"", "code":null, "badDebt":false, "partnerPaymentId":477, "customerId":725113, "originalSum":10.000000, "partnerDocumentId":0, "imported":true, "documentStatusTypeCode":"STATUS_CONFIRMED", "statusChangeDatetime":"2014-04-14T12:00:00", "currencyRate":null, "projectId":0, "entityName":null, "parentPaymentId":0}

POST

Id must be 0 in all cases! All id’s are automatically generated.https://api.erplybooks.com/api/payments

JSON:
{
"id":0, "opDate":"2012-09-26T12:00:00", "invoiceId":2460653, "transactionIdentifier":null, "transactionEntryId":7665466, "sumPaid":120.000000, "sumWithVat":null, "currencyCode":"CURRENCY_EUR", "typeCode":"INVOICE_PAYMENT", "accountId":583287, "customerName":null, "number":null, "referenceNumber":null, "archivingId":"2012092600236540", "note":"Invoice nr 2", "code":null, "badDebt":false, "partnerPaymentId":0, "customerId":700373, "originalSum":435.560000, "partnerDocumentId":0, "imported":false, "documentStatusTypeCode":"STATUS_CONFIRMED", "statusChangeDatetime":"2012-09-26T12:00:00", "currencyRate":null, "projectId":0, "entityName":"Client 2", "parentPaymentId":0
}