Support for

FLAPI: How to get a job's template fee

John Valentine
by John Valentine 9 years ago
 

Quick Reference

  1. Call /jobs/ on your main job, to retrieve job.fee_charged_on_job.
    HTTP request
    GET http://dev.flyerlink.com/api.php/jobs/855086?format=json
    HTTP response (JSON)
    {
        "job" : {
            "id" : "855086",
            ...
            "fee_charged_on_job" : 1234567
        ...
        }
    }
  2. Call /jobs/ again, using  fee_charged_on_job as a job reference.
    HTTP request
    GET http://dev.flyerlink.com/api.php/jobs/1234567?format=json
    HTTP response (JSON)
    {
        "job" : {
            "id" : "1234567",
    ...
            "fee_charged_on_job" : null
    ...
            "revenue" : [ {
                    "costing" : "PR",
                    "quantity" : "1",
                    "units" : "1",
                    "unitcost" : "0.00",
                    "unitrev" : "0.00",
                    "cost" : "7.00",
                    "revenue" : "0.00",
                    "prcost" : "0.00",
                    "unitprcost" : "0.00",
                    "vat" : "20.000",
                    "vatcode" : "1",
                    "vattotal" : "0.000",
                    "name" : "PRINTING",
                    "customname" : "Designer template purchase",
                    "voucher" : "f",
                    "template" : "f"
                },
    ...
        }
    }
 
 
 
 

All content is (c) Nettl Systems Limited, 2024 and may not be used, copied or distributed without permission.