Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save johadi/0a1b8a9e9ea74a93f793774ece96c5a6 to your computer and use it in GitHub Desktop.
Save johadi/0a1b8a9e9ea74a93f793774ece96c5a6 to your computer and use it in GitHub Desktop.
WasteSaver Audit: Create Stream Configuration Orders endpoint

WasteSaver Audit: Create - StreamConfiguration order

OLD ENDPOINT: POST /api/store/locations/:org_location_id/streams/org_stream_id/orders

NEW ENDPOINT: POST /api/store/locations/:org_location_id/waste-stream-configurations/:stream_configuration_id/orders

Request payload proposal:

{
  "quantity": 2,
  "date": "2022-10-24",
}

Response payload proposal:

{
  "reference": "16271807189306171"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment