Withdraw a cylinder report
const url = 'https://example.com/storefront/sites/northgate.shop.getbottle.app/account/cylinders/reports/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/withdraw';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/storefront/sites/northgate.shop.getbottle.app/account/cylinders/reports/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/withdrawDeliberately without a staff session: a shopper on the business’s own shop. While the business has not acted on it: the report is kept, marked withdrawn, and nothing about the holding has changed. 409 already_decided once it is acted on.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
northgate.shop.getbottle.appUUID v7
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Responses
Section titled “Responses”Taken back
object
UUID v7
UUID v7
What the customer said happened: lost, stolen, damaged, or moved to another supplier.
Pending: waiting for the business. written_off: the holding ended, with no charge. invoiced: the holding ended and the customer was invoiced. dismissed: closed with nothing changed. withdrawn: the customer took it back first.
Example
{ "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "problem": "lost", "status": "pending"}Refused: the message says why
object
Example
{ "error": "not_found", "message": "Customer not found"}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}Not from the shop itself, or the email is not confirmed yet
object
Example
{ "error": "not_found", "message": "Customer not found"}Not a shop. No body.
Already decided, or the shop is not selling now
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}Too many tries
object
Example
{ "error": "not_found", "message": "Customer not found"}