Introduction

This is the core API to authenticate to 12RND & UBX Store Front. **If you are a third party developer wishing to access this api, please email `admin@12round.com` to request access.**

Base URL

https://store-front-api.gymsystems.co/

Alternative Environments

https://store-front-api-stg.gymsystems.co/ - Staging Server
http://localhost:9222/ - Local Dev...
https://store-front-api.gymsystems.co/ - Production server (uses live data)

Authentication

Authentication details will be provided when your integration is approved.

Login User

Login User, request for authorization and refresh tokens

Request Body

User login information

Endpoint

POST /api/store-front/v1/auth/users/login

Example Request

curl -X POST https://store-front-api.gymsystems.co//api/store-front/v1/auth/users/login \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{}

Refresh Customer Token

Request Body

Authenticate using refresh token

Endpoint

POST /api/store-front/v1/auth/tokens/refresh

Example Request

curl -X POST https://store-front-api.gymsystems.co//api/store-front/v1/auth/tokens/refresh \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{}

Get Product

Get product

Parameters

store_front `string` (required) product_id `string` (required) country `string` (optional)

Endpoint

GET /api/store-front/v1/store-fronts/{store_front}/products/{product_id}

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/store-fronts/{store_front}/products/{product_id} \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

List Products

List products

Parameters

store_front `string` (required) country `string` (optional)

Endpoint

GET /api/store-front/v1/store-fronts/{store_front}/products

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/store-fronts/{store_front}/products \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

List All Products

List All products

Endpoint

GET /api/store-front/v1/products/all/published

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/products/all/published \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

Get Order

Get order

Parameters

order_id `string` (required)

Endpoint

GET /api/store-front/v1/orders/{order_id}

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/orders/{order_id} \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

List Orders

List orders

Endpoint

GET /api/store-front/v1/orders

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/orders \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

Get Order Invoice

Get order invoice

Parameters

order_id `string` (required)

Endpoint

GET /api/store-front/v1/orders/{order_id}/invoice

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/orders/{order_id}/invoice \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

Get Order Tracking

Get order tracking

Parameters

order_id `string` (required)

Endpoint

GET /api/store-front/v1/orders/{order_id}/tracking

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/orders/{order_id}/tracking \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

Update customer cart

Update customer cart

Request Body

Cart information

Endpoint

PUT /api/store-front/v1/customer/cart

Example Request

curl -X PUT https://store-front-api.gymsystems.co//api/store-front/v1/customer/cart \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{}

Get Customer Cart

Get customer cart

Endpoint

GET /api/store-front/v1/customer/cart

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/customer/cart \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

Update guest cart

Update guest cart

Parameters

guest_id `string` (required)

Request Body

Cart information

Endpoint

PUT /api/store-front/v1/guest/{guest_id}/cart

Example Request

curl -X PUT https://store-front-api.gymsystems.co//api/store-front/v1/guest/{guest_id}/cart \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{}

Get Guest Cart

Get guest cart

Parameters

guest_id `string` (required)

Endpoint

GET /api/store-front/v1/guest/{guest_id}/cart

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/guest/{guest_id}/cart \
  -H "x-api-key: YOUR_API_KEY"

Response

{}

Checkout customer cart

Checkout customer cart

Parameters

store_front `string` (required)

Request Body

Payment information

Endpoint

POST /api/store-front/v1/store-fronts/{store_front}/customer/checkout

Example Request

curl -X POST https://store-front-api.gymsystems.co//api/store-front/v1/store-fronts/{store_front}/customer/checkout \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{}

Checkout guest cart

Checkout guest cart

Parameters

guest_id `string` (required) store_front `string` (required)

Request Body

Payment information

Endpoint

POST /api/store-front/v1/store-fronts/{store_front}/guest/{guest_id}/checkout

Example Request

curl -X POST https://store-front-api.gymsystems.co//api/store-front/v1/store-fronts/{store_front}/guest/{guest_id}/checkout \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{}

List Banners

List banners

Endpoint

GET /api/store-front/v1/banners

Example Request

curl -X GET https://store-front-api.gymsystems.co//api/store-front/v1/banners \
  -H "x-api-key: YOUR_API_KEY"

Response

{}