Read Operation

The Read operation is used by Fast to return information on a Fast order.

Read Request

POST
/fast/v1/read

Request Body schema: application/json

A read request.

app_id
string

The application ID for your store registered with Fast.

object (v1UUID)

The idempotency key of request. Ensure that your operations are idempotent against this field

type
string (v1EntityType)
Enum: "ENTITY_TYPE_UNSPECIFIED" "ENTITY_TYPE_ORDER" "ENTITY_TYPE_SHIPPING_OPTION" "ENTITY_TYPE_USER" "ENTITY_TYPE_SHIPPING_ZONES"
object (v1ReadOrderRequestSegment)

Object containing the order information.

shipping_zones
object (v1ReadShippingZonesRequestSegment)

The geographical area (e.g. region ZIP code etc.) that physical goods will ship to.

application/json
{
  • "app_id": "string",
  • "request_id": {
    },
  • "type": "ENTITY_TYPE_UNSPECIFIED",
  • "order": {
    },
  • "shipping_zones": { }
}

Read Response

Success (200)

A successful response.

Response Schema: application/json
object (v1UUID)

The idempotency key of 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"
object (v1ReadOrderResponseSegment)

Fast order data entity.

object (v1ReadUserResponseSegment)
object (v1ReadShippingZonesResponseSegment)

The geographical area (e.g. region ZIP code etc.) that physical goods will ship to.

application/json
{
  • "request_id": {
    },
  • "type": "ENTITY_TYPE_UNSPECIFIED",
  • "order": {
    },
  • "user": {
    },
  • "shipping_zones": {
    }
}

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 use cases that will trigger Fast to call the Read operation to the Seller.

Read a Cart

Read a Cart

Fast makes a read request to the existing platform cart so that it can get the item information to create a Fast order. This call is triggered when a user clicks the Fast Checkout button from the mini-cart or cart page.

Request

{
  • "type": "ENTITY_TYPE_ORDER",
  • "order": {
    }
}

Response

{
  • "order": {
    }
}

Read an Order

Read an Order

Fast makes a read request to an existing order to retrieve the order information. Seller->Fast API communication within the Order Management Service triggers a request to read an order.

Request

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

Response

{
  • "type": "ENTITY_TYPE_ORDER",
  • "order": {
    },
  • "user": {
    }
}

Read a Shipping Zone

Read a Shipping Zone

Fast makes this call to check for any restricted countries so that error messaging can show immediately when a Shopper tries to ship somewhere invalid. That way, restricted countries or states/provinces are sent to Fast early in the process.

This is triggered when a Shopper enters or changes a shipping address on their Fast order.

Request

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

Response

{
  • "type": "ENTITY_TYPE_SHIPPING_ZONES",
  • "shipping_zones": {
    }
}