Mark Job Ledger Entry as Transferred (Postman )
Step 1: Retrieve all the job ledger entries
First you have to get all the job ledger entries non transferred with the API function /getjobledgerentries with the following headers:
Picture 1.
where in Headers:
a).API-Key is yourSecretToken obtained from here Authorization Token
b).UID is yourUID obtained from here Login
c).DeviceID is yourAPIKey obtained from here Customer API Key
d) Accept : application/json
In Body you will get all the job Ledger entries non transferred.
Step 2: Mark Job Ledger Entry as Transferred
Here you have two posibilities
A). Mark only one Job Ledger Entry as Transferred
You will use function /markjobledgerentrytransfered
Picture 2: - Headers
where in Headers:
a).API-Key is yourSecretToken obtained from here Authorization Token
b).UID is yourUID obtained from here Login
c).DeviceID is yourAPIKey obtained from here Customer API Key
d) Accept : application/json
Picture3: -Parameters
where in Params:
nID will have as value the ID of the Job Ledger Entry that you want to mark as transferred
After pressing Send you will receive Status 200 OK ...means that the job ledger entry was marked as transferred.
B.) Mark more than one Job Ledger Entry as Transferred
You will use function /markjobledgerentrytransfered
Picture 4: - Headers
where in Headers:
a).API-Key is yourSecretToken obtained from here Authorization Token
b).UID is yourUID obtained from here Login
c).DeviceID is yourAPIKey obtained from here Customer API Key
d) Accept : application/json
Picture5: -Parameters
where in Params:
sIDList will have as value a list of IDs of Job Ledger entries that you want mark as transferred like : ID1,ID2,ID3,...
After pressing Send you will receive Status 200 OK ...means that the job ledger entries were marked as transferred.
Step 3. Verifiy that the JobLedgerEntry is marked as Transferred
You will use function /employeejobledgerentries with the ID of the JobLedgerEntry to be verified
Picture 6: - Headers
where in Headers:
a).API-Key is yourSecretToken obtained from here Authorization Token
b).UID is yourUID obtained from here Login
c).DeviceID is yourAPIKey obtained from here Customer API Key
d) Accept : application/json
IDJobLedgerentry is the ID of the JobLedgerEntry.
In Body you will get all the fields of the JobLedgerEntry and you will search to see if the field Transferred has value "true"