Order

PUT /{applicationId}/orders/{id}

The aggregator platform should send the final order after calculating all prices based on the communicated order amendments.

Request

  • Base URL
    https://virtserver.swaggerhub.com/GrubTech/grubtech-grocery-integration-apis/1.0.0
  • URL
    https://virtserver.swaggerhub.com/GrubTech/grubtech-grocery-integration-apis/1.0.0/{applicationId}/orders/{id}
  • Auth
    OAuth 2
    Authorization code: https://id.staging.grubtech.io/oauth2/authorize
    Token URL: https://id.staging.grubtech.io/oauth2/token

Path parameters

applicationIdstring required

Application ID provided by GrubTech to identify the integration

idstring required

Order ID provided by the aggregator platform.

Request body

instructionsstring

Instructions from the customer pertaining to the preparation of this order.

status'PLACED' | 'APPROVED' required

Order status. This will indicate the current status of the order

Example request

{
  "instructions": "Please readuce the bag count of the order",
  "items": [
    {
      "price": {
        "unitPrice": 1200,
        "discountAmount": 1200,
        "totalPrice": 1200
      }
    }
  ],
  "archivedItems": [
    {
      "price": {
        "unitPrice": 1200,
        "discountAmount": 1200,
        "totalPrice": 1200
      },
      "amendItems": [
        {
          "quantity": 10
        }
      ]
    }
  ],
  "scheduledOrder": {
    "scheduledAt": "2020-08-02T09:23:54.723Z"
  }
}

Response

Successful response OK

NoContent required(unresolved $ref)

Changes

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