Skip to main content

Transferring Payment Transactions to ERP

Description

Used to mark payment transactions as transferred to the ERP. On a successful call, the vposTransactionDetails.erpTransactionCode and vposTransactionDetails.erpTransactionCodeUpdateDate fields of the related transaction are set. The service is idempotent; records that have already been marked are not updated again.

  • URL: /api/setPaymentErpCode
  • Method: PUT
  • Header: Authorization: Bearer <AccessToken> (See: 2.1 Creating an AccessToken) Content-Type: application/json
  • Filters: (This service performs a marking operation; instead of query filters, it accepts parameters in the request body.)

Request Body

The following fields are sent:

ParameterTypeRequiredDescription
referenceCodestringYesNetahsilat transaction reference
erpTransactionCodestringYesTransaction code sent to the ERP

Response Structure

The operation result is returned as a summary. Array items contain the following fields:

FieldTypeDescription
ReferenceCodestringNetahsilat transaction reference
ClientReferenceCodestringReference defined by the customer (if any)
ErpTransactionCodestringnullTransaction/accounting code used in the ERP
MessagestringResult message: “Successful”, “Previously Transferred”, “Record Not Found”
MessageCodestringResult code: "00" (Successful), "100" (Info/Warning)

Notes

  • The “Previously Transferred” message indicates that the record has already been marked; no update is performed again (idempotent behavior).

  • After marking, you can verify that the ERP fields are populated by querying with GetPayments.

  • For error cases, see 4. General Error Model & Codes.

[  
{
"ReferenceCode": "NT78451238475",
"ClientReferenceCode": "NT78451238475",
"ErpTransactionCode": "120.01.1020",
"Message": "Successful",
"MessageCode": "00"
},
{
"ReferenceCode": "NT78451238475",
"ClientReferenceCode": "NT78451238475",
"ErpTransactionCode": "120.01.1020",
"Message": "Previously Transferred",
"MessageCode": "100"
},
{
"ReferenceCode": "NT78451238475",
"ClientReferenceCode": "NT78451238475",
"ErpTransactionCode": null,
"Message": "Record Not Found",
"MessageCode": "100"
}
]