account

Replace a Store Order

Updates this order, but only while it’s state is ‘Placed’. Updates after this point will be rejected

put
/stores/{storeId}/orders/{ordersId}

Path Parameters

storeIdnumberrequired
ordersIdstringrequired

Body

application/json

Order

idnumber
milkstring

Allowed values:SkimFullSoy

Example:Skim

sizestring

Allowed values:SmallRegularLarge

Example:Small

typestring

Allowed values:LatteFlat White

Example:Latte

Response

200 application/json

Success

Order

idnumber
milkstring

Allowed values:SkimFullSoy

Example:Skim

sizestring

Allowed values:SmallRegularLarge

Example:Small

typestring

Allowed values:LatteFlat White

Example:Latte

statusstringread-only

Allowed values:PlacedPreparingCancelledReadyCompleted

Example:Placed

200 application/json

Delete a Store Order

Removes this order.

Cancels the order, if the status is ‘Placed’
Collects the order, if the status is ‘Ready’

delete
/stores/{storeId}/orders/{ordersId}

Path Parameters

storeIdnumberrequired
ordersIdstringrequired

Response

204

OK

204

Query Store Order

Identifies what operations are allowable on this Order

options
/stores/{storeId}/orders/{ordersId}

Path Parameters

storeIdnumberrequired
ordersIdstringrequired

Response

200 application/json

Success

Order

idnumber
milkstring

Allowed values:SkimFullSoy

Example:Skim

sizestring

Allowed values:SmallRegularLarge

Example:Small

typestring

Allowed values:LatteFlat White

Example:Latte

statusstringread-only

Allowed values:PlacedPreparingCancelledReadyCompleted

Example:Placed

200 application/json

Make a Payment

Makes a payment for an Order Id

put
/payments/{id}

Path Parameters

idstringrequired

Body

application/json

Payment

statusstring

Allowed values:ValidInvalid

Example:Valid

ordernumber

This field is the identifier of Order (id). It’s definition is:

Response

200 application/json

Success

Payment

statusstring

Allowed values:ValidInvalid

Example:Valid

ordernumber

This field is the identifier of Order (id). It’s definition is:

200 application/json

Order

object
idnumber
milkstring

Allowed values:SkimFullSoy

Example:Skim

sizestring

Allowed values:SmallRegularLarge

Example:Small

typestring

Allowed values:LatteFlat White

Example:Latte

statusstringread-only

Allowed values:PlacedPreparingCancelledReadyCompleted

Example:Placed

Example