SnackOrder

Update the status of a snack order

Creates a SnackOrder resource.

post/snack_orders/{id}/workflow/{action}

Request

  • Base URL: https://api.spash.com
  • URL: https://api.spash.com/snack_orders/{id}/workflow/{action}
  • Auth: one of:
    • API key in header Authorization
    • HTTP bearer

Path parameters

idinteger required
action'delivered' | 'canceled' required

Request body

ngtvSessionstring iri-reference
snackstring iri-reference

Example request

{
  "ngtvSession": "https://example.com/",
  "snack": "https://example.com/"
}

Response

SnackOrder resource created

idinteger
status'ordered' | 'delivered' | 'canceled'
createdAtstring date-time
updatedAtstring date-time
referencestring

Example response

{
  "status": "ordered",
  "ngtvSession": {
    "field": {
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  },
  "snack": {
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  },
  "createdAt": "CURRENT_TIMESTAMP",
  "updatedAt": "CURRENT_TIMESTAMP"
}

Changes

No recorded changes to this operation across all 1 revision of this API.