Skip to main content

Payment Service

Payment on account is any partial payment of an amount that is owed, either to you or by you, that is not matched to a specific invoice. If you receive a payment (either full or partial payment) from a customer or make a payment to a vendor without making reference to a specific invoice this can be treated as a payment on account.

ReceivePaymentDTO Object

Attributes


AttributeTypeDescription
idlongUnique identifier for payment.
codestringPayment code.
jeCodestringJournal Entry code.
contactCodestringcode related to the contact making the payment.
contactNamestringName of contact making the payment.
currencystringThe currency the payment is made in.
exchangeRateBigDecimalExchange rate.
accountCodePayTostringThe account code payment is made to.
accountNamestringName of payment account.
paymentTypeenumPayment type. Possible values for Payment type.
referenceNumberstringReference number of Bank Transfer/cheque.
referenceDatestringDate of Bank Transfer/cheque.
amountBigDecimalPayment amount.
documentDatestringDocument date.
memostringMemo text.
deletedbooleanHas the value true if the payment is deleted or false if the payment is not deleted.
tenantIdlongTenant id to whom payment is associated with.
receivePaymentItemDtoListlistReceive payment for item. Attributes of Payment Item.
receivePaymentFeeDtoListlistReceive payment for fee. Attributes of Payment Fee.
shipFromenumShip from address. Attributes of Address.
shipToenumShip to address. Attributes of Address.
billToenumBill to address. Attributes of Address.

API


Receive Payment

Get detail of payment receive.

Code

  @Autowired
private PaymentsApiClient paymentsApiClient;

public ReceivePaymentDto receivePayment(ReceivePaymentDto receivePaymentDto, String accessToken){
return this.paymentsApiClient.receivePayment(fulfillmentRequest, accessToken);
}

Objects


ReceivePaymentItemDto

AttributeTypeDescription
idlongUnique identifier for payment.
documentTypestringProduct code of the item. Possible values for document type.
documentCodestringUnique code for order.
descriptionstringDescription of payment received.
exchangeRateBigDecimalExchange rate.
taxCodestringCode of selected tax.
taxAmountBigDecimalTax Amount.
paymentAmountBigDecimalAmount to be paid.
tenantIdlongTenant id to whom payment is associated with.
accountNamestringName of payment account.
taxListlistTax List. Attributes of Tax.
paymentIdlongIdentifier for payment.

TaxMappingDto

AttributeTypeDescription
idlongUnique identifier for tax.
taxSeqCodestringSequence code of tax item.
taxCodestringCode of tax.
taxTypestringType of tax.
taxAmountBigDecimalTax Amount.
taxRateBigDecimalRate of Tax.
taxableAmountBigDecimalAmount to tax.

ReceivePaymentFeeDto

AttributeTypeDescription
idlongUnique identifier for payment fee.
accountCodestringCode linked to the account used.
amountBigDecimalFee amount.
tenantIdlongTenant id to whom payment is associated with.
paymentIdlongIdentifier for payment.

Address

AttributeTypeDescription
address1stringAddress Line 1.
address2stringAddress Line 2.
countrystringCountry where the address is located.
statestringState where the address is located.
citystringCity where the address is located.
postalCodestringAddress postal code.
preferredbooleanHas the value true if address is set as default or false if address is not set as default.

Enums


PAYMENT_TYPE

  • CHEQUE
  • CASH
  • BANK_TRANSFER

DOCUMENT_TYPE

  • QUOTATION
  • PURCHASE_ORDER
  • SALES_ORDER
  • PURCHASE_INVOICE
  • SALES_INVOICE
  • MAKE_PAYMENT
  • RECEIVE_PAYMENT
  • JOURNAL_ENTRY
  • CREDIT_NOTE
  • DEBIT_NOTE
  • EXPENSE
  • EXPENSE_PREPAYMENT
  • DEPOSIT
  • DEPOSIT_ADVPAYMENT