ShopGo
1.0.0
1.0.0
  • Welcome
  • Developer Guides
    • Order Processing
    • Webhooks
      • Calculate Shipping Rates
  • Management API
    • Introduction
    • Authentication
      • Using User API Key
      • Using Platform API Key
    • Authorization
    • Objects
      • Primitives
      • Order
      • Payment
      • Shipment
      • Purchase
      • Adjustment
      • Charge
      • Attribute
    • API Endpoints
  • Platform API
    • Introduction
    • Authentication
    • Objects
    • API Endpoints
      • Tenant
Powered by GitBook
On this page
  • Get All Orders
  • Get Order
  • Create Payment
  • Create Refund
  • Authorize Order
  • Cancel Order
  • Update Order Visibility
  • Update Shipment
  • Get User
  • Get Tenant
  • Get Legal
  • Get Store Availability
  • Override Store Availability
  • Get Webhook URL
  • Change Webhook URL

Was this helpful?

  1. Management API

API Endpoints

Get All Orders

GET https://api.shopgo.me/v1/management/order/

Get list of all orders. For a full breakdown of response payload see definition of Order object.

{
    "payload": {
        "orders": [<Order>]
    }
}

Get Order

GET https://api.shopgo.me/v1/management/order/:number

Path Parameters

Name
Type
Description

number

string

Order number

{
    "payload": {
        "orders": <Order>
    }
}

Create Payment

POST https://api.shopgo.me/v1/management/order/:number/payment/

Path Parameters

Name
Type
Description

number

string

Order number

Request Body

Name
Type
Description

body

object

Payment object

{
    "result": "success",
    "payload": {}
}

Use this endpoint to create a new Payment for an Order.

Parameter

Default Value

total

order balance

method

"cash_on_delivery"

created

server date and time

transaction_data

{}

Because the default value of total is the current order balance, calling this endpoint with an empty body will create a cash-on-delivery Payment object that will settle the order. 🤘

Create Refund

To create a refund, set method to refund and use a negative amount for total.

Authorize Order

PATCH https://api.shopgo.me/v1/management/order/:number

Path Parameters

Name
Type
Description

number

string

order number

Request Body

Name
Type
Description

authorized

boolean

new state of order "authorized" field

{
    "result": "success",
    "payload": {}
}

Cancel Order

PATCH https://api.shopgo.me/v1/management/order/:number

Path Parameters

Name
Type
Description

number

string

order number

Request Body

Name
Type
Description

restock

boolean

free reserved product stock

cancelled

boolean

new value of "cancelled" field

{
    "result": "success",
    "payload": {}
}

Update Order Visibility

PATCH https://api.shopgo.me/v1/management/order/:number

Show or hide product from dashboard and store front ends

Path Parameters

Name
Type
Description

number

string

order number

Request Body

Name
Type
Description

visible

boolean

new value of "visible" field

Update Shipment

PATCH https://api.shopgo.me/v1/management/order/:number/shipment/:id

Path Parameters

Name
Type
Description

number

string

order number

id

string

shipment identifier

Request Body

Name
Type
Description

state

string

one of "ready", "shipped" or "delivered"

target_delivery

string

DateTime (see definition in Primitives)

{
    "result": "success",
    "payload": {}
}

Note that updating the state of a Shipment object requires the parent order to be authorized as per order processing logic.

Get User

GET https://api.shopgo.me/v1/management/user/:id

Get profile information of a dashboard user

Path Parameters

Name
Type
Description

id

string

Unique user identifier

{
    "result": "success",
    "payload": {
        "user": <DashboardUser>
    }
}

Get Tenant

GET https://api.shopgo.me/v1/management/tenant

Get information of tenant (parent) account

{
    "result": "success",
    "payload": {
        "tenant": <Tenant>
    },
}

Get Legal

GET https://api.shopgo.me/v1/management/settings/legal

Get legal information of store

{
    "result": "success",
    "payload": {
        "legal": {
            "city": "Amman",
            "email": "hello@business.com",
            "country": "Jordan",
            "phone_no": "123",
            "license_no": "123",
            "tax_ref_no": "123",
            "address_line1": <BilingualString>,
            "address_line2": <BilingualString>,
            "business_name": <BilingualString>
        }
    },
}

Get Store Availability

GET https://api.shopgo.me/v1/management/order/available

Get store availability (to receive new orders)

{
    "result": "success",
    "payload": {
        "available": true
    }
}

Override Store Availability

PATCH https://api.shopgo.me/v1/management/order/available

Manually override store availability state

Path Parameters

Name
Type
Description

available

boolean

new availability state

{
    "result": "success",
    "payload": {}
}

Get Webhook URL

GET https://api.shopgo.me/v1/management/settings/webhook/:name

Retrieve a webhook URL

Path Parameters

Name
Type
Description

name

string

Webhook name

{
    "result": "success",
    "payload": {
        "url": "https://microservice.com/webhooks/task"
    }
}

where name is one of:

  • confirm-order

  • calculate-shipping-rates

Change Webhook URL

PATCH https://api.shopgo.me/v1/management/settings/webhook/:name

Change a webhook URL

Path Parameters

Name
Type
Description

name

string

Webhook name

Request Body

Name
Type
Description

url

string

New webhook URL

{
    "result": "success"
    "payload": {},
}

where name is one of:

  • confirm-order

  • calculate-shipping-rates

PreviousAttributeNextIntroduction

Last updated 4 years ago

Was this helpful?

Request body can contain one or several fields of the object. For convenience, all fields were made optional and their default values are as follows ...

Refunds are special cases of and can therefore be created by calling this endpoint too.

For a full response breakdown, see .

For a full response breakdown, see .

Payment
Payment
DashboardUser
Tenant