---
title: "PUT /bins/{barcode}/assignments/{id}/receive/cancel"
method: PUT
path: "/bins/{barcode}/assignments/{id}/receive/cancel"
---

# PUT /bins/{barcode}/assignments/{id}/receive/cancel

`PUT /bins/{barcode}/assignments/{id}/receive/cancel`

## Request

- Base URL: `https://api.mamaearth.ca` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mamaearth.ca/bins/{barcode}/assignments/{id}/receive/cancel`
- Auth: none declared
- TypeScript: <https://skmtc.dev/mamaearth/apis/mama-earth-api/docs/bins/:barcode/assignments/:id/receive/cancel/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `barcode` BinBarcode, required: Represents a UPC-A barcode of 11 digits. The checksum is not stored, it should be generated when needed, and otherwise not sent by clients during API calls.
  - `orderBarcode` boolean: We reserve the prefix 90 for order barcodes, so that we are able to distinguish an order from bin barcodes without doing an API or DB lookup.
  - `singleUseBinBarcode` boolean: Checks if this barcode is a single-use bin barcode.
  - `packagingBarcode` boolean
- `id` integer, required

## Response `200`

cancelReceiveCurrentBinAssignment 200 response

---

[API](https://skmtc.dev/mamaearth/apis/mama-earth-api.md) - [All operations](https://skmtc.dev/mamaearth/apis/mama-earth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mamaearth/apis/mama-earth-api/revisions/2693a8db8dbd?raw)
