Retrieve list of shipments called with the API, that usages have a minimum resolution of a month (you cant select the usage for one week for example, the usage will automatically be for the month of the week provided)
GET https://api.sinay.ai/webhook/api/v1/shipment-usage?startTime=<dateTime>&endTime=<dateTime>&periodicity=MONTHLY
Request Params
Key | Datatype | Required | Description |
---|
startTime | string | | Start time at which usages must be found |
endTime | string | | End time at which usages must be found |
periodicity | string | | |
Key | Datatype | Required | Description |
---|
Accept | string | | |
RESPONSES
status: OK
{"apis":{"dolore_92f":{"periodicUsages":{"cupidatat_772":{"consumedShipment":"\u003cinteger\u003e","consumedShipmentList":["\u003cstring\u003e","\u003cstring\u003e"]},"labore_1b":{"consumedShipment":"\u003cinteger\u003e","consumedShipmentList":["\u003cstring\u003e","\u003cstring\u003e"]},"Lorem_df":{"consumedShipment":"\u003cinteger\u003e","consumedShipmentList":["\u003cstring\u003e","\u003cstring\u003e"]}}},"irure2cf":{"periodicUsages":{"sed3":{"consumedShipment":"\u003cinteger\u003e","consumedShipmentList":["\u003cstring\u003e","\u003cstring\u003e"]}}}}}