https://salonist.io/wordpressapi/order_create_wordpress

This API is used to create an order for either an appointment or a quick sale in the Salonist system.

URL: https://salonist.io/wordpressapi/order_create_wordpress
Method: POST
Parameters:

  • domainId: The unique domain ID associated with the Salonist account.

  • type: The type of order. If it's an appointment, use "Appointment", and for a quick sale (product-based), use "Quick sale".

  • customer_id: The unique ID of the customer placing the order.

  • bill_date: The date when the bill is generated.

  • payment_mode: The mode of payment, e.g., "Cash on delivery".

  • customer_email: The email address of the customer.

  • subtotal: The subtotal of the order.

  • grandtotal: The total amount after any discounts are applied.

  • payingnow: The amount being paid immediately.

  • time: The appointment time (only required for appointment type).

  • dueamount: The remaining amount to be paid.

  • item_vat: The VAT on the item.

  • birthday: The customer's birthday (optional).

  • gender: The customer's gender (optional).

  • customer_name: The name of the customer.

  • customer_contact: The contact number of the customer.

  • coupon_apply_status: Status of the coupon applied (e.g., "1" for applied).

  • coupon_offer_type: The type of coupon offer (e.g., "Percentage").

  • coupon_offer: The percentage of the discount.

  • coupon_discount_price: The total discount price.

  • coupon_code: The coupon code used for the discount.

  • For Services (Appointment Type):

    • services[0][id]: The ID of the first service in the appointment.

    • services[0][qty]: The quantity of the service.

    • services[0][price]: The price of the service.

    • services[0][discount]: The discount applied to the service.

    • services[0][total]: The total amount for the service after discount.

    • services[0][staffId]: The staff ID assigned to the service.

    • services[0][bill_date]: The date of the service.

    • services[0][time]: The time the service is scheduled for.

  • For Products (Quick Sale Type):

    • products_inventory[0][productId]: The product ID for the quick sale item.

    • products_inventory[0][qty]: The quantity of the product.

    • products_inventory[0][price]: The price of the product.

    • products_inventory[0][discount]: The discount applied to the product.

    • products_inventory[0][total]: The total amount for the product after discount.

    • Note: For product-based orders (Quick Sale type), the time and staffId are not required.

  • For Packages (Appointment Type):

    • packages[0][id]: The ID of the package.

    • packages[0][qty]: The quantity of the package.

    • packages[0][price]: The price of the package.

    • packages[0][discount]: The discount applied to the package.

    • packages[0][total]: The total amount for the package after discount.

    • packages[0][staffId]: The staff ID assigned to the package.

    • packages[0][bill_date]: The date of the package.

    • packages[0][time]: The time the package is scheduled for.

Response:
This request creates a new order in the Salonist system, either for an appointment, quick sale, or package. Depending on the order type, it processes the order with the necessary details. For appointment-based orders, staff, time, and services are included, while for product-based orders (Quick Sale), products and their quantities are specified without the need for time and staff details.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
string
string
string
string
string
number
number
integer
string
number
string
string
string
string
integer
integer
string
integer
number
string
integer
string
number
integer
number
integer
string
string
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!