Delete Operation

The Delete operation is called to clear carts from either Fast or the eCommerce platform in cases such as order cancellation prior to placement, cart abandonment, or initiating a Fast checkout from a platform cart page.

Delete Request

POST
/fast/v1/delete

Request Body schema: application/json

A create request.

type
string (v1EntityType)

The type of entity being created.

Enum: "ENTITY_TYPE_UNSPECIFIED" "ENTITY_TYPE_ORDER" "ENTITY_TYPE_SHIPPING_OPTION" "ENTITY_TYPE_USER" "ENTITY_TYPE_SHIPPING_ZONES"
app_id
string

The application ID for your store registered with Fast.

object (v1CreateRequestSegment)

Object containing the order information.

object (v1UUID)
application/json
{
  • "type": "ENTITY_TYPE_UNSPECIFIED",
  • "app_id": "string",
  • "order": {
    },
  • "request_id": {
    }
}

Delete Response

The response to delete should be empty if no issues occurred, or return one of the listed error codes in the case something went wrong.

Success (200)

Copy
Copied to Clipboard
{}

Error

An unexpected error response.

Response Schema: application/json
code
integer <int32>
message
string
Array of objects (protobufAny)
application/json
{
  • "code": 0,
  • "message": "string",
  • "details": [
    ]
}

Use Cases

Below are business cases that will trigger Fast to call the Delete operation to the Seller.

Delete a Fast Cart

Delete a Fast Cart

If a Shopper chooses to cancel their order, the pending cart will be deleted.

For anonymous / first-time Fast Shoppers that don't complete their profile or make order updates for an hour, Fast will consider it an abandoned cart and send a request to clear the cart from the eCommerce platform

If a Shopper initiates Fast checkout from the platform cart page, we make a call to delete the platform cart upon successful Fast order creation (but not timing window complete) to avoid duplicate orders. This will include the platform cart id in the external_order_id field to distinguish between a request to delete the Fast Checkout cart.

Request

{
  • "app_id": "088fdade-8809-471c-89c2-f429fa844af2",
  • "type": "ENTITY_TYPE_ORDER",
  • "order": {
    }
}

Response

Copy
Copied to Clipboard
{}