Order

Create Order

post/order/create_order

Request

  • Base URL: https://moogold.com/wp-json/v1/api
  • URL: https://moogold.com/wp-json/v1/api/order/create_order
  • Auth: HTTP basic

Request body

pathstring required

URL path of the create order, in this case order/create_order

partnerOrderIdstring

Optional Field. Enter your partner order id to make sure duplicate order are not submitted. By entering Partner Order ID, there will also be a callback to your specific callback url, contact your account manager to get this enabled.

Example request

{
  "path": "order/create_order",
  "data": {
    "category": 1,
    "product-id": 215570,
    "quantity": 1,
    "User ID": "12314123",
    "Server": "3402"
  },
  "partnerOrderId": "MG-12345"
}

Response

OK

statusstring

Always processing when the order has been accepted.

messagestring
account_detailsobject

The account fields you sent for this product, for example User ID and Server. Empty for eVoucher orders (category 2).

order_idinteger

Your MooGold.com Order ID.

totalstring

Total amount of the order.

partnerOrderIdstring

Your Partner Order ID. Only returned when you sent one.

Example response

{
  "status": "processing",
  "message": "Order has been created successfully",
  "account_details": {
    "User ID": "12314123",
    "Server": "3402"
  },
  "order_id": 952272,
  "total": "3.90",
  "partnerOrderId": "MG-12345"
}

Changes

No recorded changes to this operation across all 1 revision of this API.