Replenish a bag from another bag

Moves the whole available stock of one bag into another. The bag to replenish from must be a fulfilled bag standing at an on-demand storage; the bag being replenished must already be passed to a courier at an on-demand office served by the same source location. The stock is moved before the response is sent, so a successful answer means the whole transfer is done; the bag it was taken from is left unassigned.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Identifier of the bag being replenished.

Body Params
integer
required

Bag to take the stock from. Must differ from the bag in the path.

string | null

Up to 255 characters: letters, digits and punctuation marks.

Responses
200

The stock was moved

400

Replenishment not allowed. Either one of the bag rules was violated and the body carries its code (bag.replenish_recipient_not_with_courier, bag.replenish_donor_not_on_storage, bag.replenish_source_office_mismatch, bag.replenish_donor_not_fulfilled, bag.bag_is_currently_being_transferred), or the request could not be attributed to an account with access to both offices

404

Bag not found

422

Validation failed

503

The bag is locked by another operation, or the transfer could not be completed; nothing was changed

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!