Aggregation Scheme Commodity Margins - Implan-Group/api GitHub Wiki

Aggregation Scheme - Commodity Margins

Retrieves the Commodity Margins for a specified Aggregation Schemes and Datasets

🔗Links


GET /api/v1/margins/{aggregationSchemeId}/{datasetId}/commodity-margins

Parameter Spec Type Details
aggregationSchemeId route int The Aggregation Scheme the margins apply to.
datasetId route int The Dataset the margins apply to.

Note

The response from this endpoint will not be json, it will utf-8 text that is a csv version of the report.


🧾Example

📤 Request

GET /api/v1/margins/14/98/commodity-margins

📥 Response

Paying Code,Paying Description,Receiving Code,Receiving Description,Margin
3002,Grains,3002,Grains,0.5027333468313424
3002,Grains,3375,Wholesale services - Motor vehicle and motor vehicle parts and supplies,0
⚠️ **GitHub.com Fallback** ⚠️