---
title: "Postpone the due date of a bin assignment."
method: POST
path: "/bins/{barcode}/assignments/{assignmentId}/postpone"
---

# Postpone the due date of a bin assignment.

`POST /bins/{barcode}/assignments/{assignmentId}/postpone`

## 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/{assignmentId}/postpone`
- Auth: none declared
- TypeScript: <https://skmtc.dev/mamaearth/apis/mama-earth-api/docs/bins/:barcode/assignments/:assignmentId/postpone/post.ts> (a function with typed inputs; its response is checked against the schema)

Postpone the due date of a bin assignment.

## 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
- `assignmentId` integer, required

## Request body

- object
  - `date` string, date, required

## Response `200`

postponeBinAssignment 200 response

- Bin
  - `id` 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
  - `status` 'IN_STOCK' | 'DISPATCHED' | 'RETIRED', required
  - `created` string, date-time, required
  - `assignment` BinAssignmentReusableBinAssignment, required: An assignment to a reusable bin, modeled by Bin
    - `id` integer, required
    - `binId` 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
    - `orderId` integer, required
    - `user` UserBasic, required
      - `active` boolean
    - `dispatch` BinScan, required: Describes a bin being scanned, either to dispatch or to receive it.
      - `admin` UserBasic, required
        - `active` boolean
      - `timestamp` string, date-time, required: The date time at which the scan occurred.
    - `dueAt` string, date-time, required
    - `chargeAt` string, date-time, required
    - `chargeAttempts` BinChargeAttempts, required
      - `count` integer, required
      - `lastAttemptedAt` string, date-time, required
      - `lastErrorMessage` string, required
    - `receipt` BinScan, required: Describes a bin being scanned, either to dispatch or to receive it.
      - `admin` UserBasic, required
        - `active` boolean
      - `timestamp` string, date-time, required: The date time at which the scan occurred.
    - `charge` BinCharge, required: Describes charging a customer for a bin, for example because it was lost or broken.
      - `id` integer, required: The id of the charge
      - `admin` UserBasic, required
        - `active` boolean
      - `timestamp` string, date-time, required: The date time at which the charge occurred.
      - `amount` number, required: The amount charged.
      - `paymentMethod` 'CREDIT_CARD' | 'ACCOUNT_CREDITS', required: Describes how a payment was made.
    - `refund` BinCharge, required: Describes charging a customer for a bin, for example because it was lost or broken.
      - `id` integer, required: The id of the charge
      - `admin` UserBasic, required
        - `active` boolean
      - `timestamp` string, date-time, required: The date time at which the charge occurred.
      - `amount` number, required: The amount charged.
      - `paymentMethod` 'CREDIT_CARD' | 'ACCOUNT_CREDITS', required: Describes how a payment was made.
  - `pickup` ScheduledBinPickup, required
    - `stopRequestId` integer, required
    - `scheduleByDate` string, date, required
  - `retirement` BinRetirement, required: Describes a bin being retired.
    - `admin` UserBasic, required
      - `active` boolean
    - `timestamp` string, date-time, required: The date time at which the charge occurred.
    - `reason` 'NOT_READY' | 'BASE_DAMAGE' | 'LID_DAMAGE' | 'ENVIRONMENTAL_DAMAGE' | 'BARCODE_DAMAGE' | 'OTHER_DAMAGE' | 'MISSING_CUSTOMER' | 'MISSING_CUSTOMER_GOODWILL' | 'MISSING_LOGISTICS' | 'WORN_OUT', required

---

[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)
