- Connect to Shopify
- Connect to Bigcommerce
- GETGet all categories.
- POSTCreate a new category.
- GETGet a category by Id.
- PUTPut a category.
- DELDelete a Category.
- PATCHUpdate a category.
- PUTPut multiple categories
- GETGet all brands.
- PUTPut a multiple brands
- POSTCreate a new brand.
- GETGet a brand by Id.
- PUTPut a brand.
- DELDelete a brand.
- PATCHUpdate a brand.
Category
Brand
Update a order status.
Update Status.
Order Id
Order Status
curl --request PATCH \
--url https://api.aasaan.shop/api/v1/stores/orders/status/{orderId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"status": "'\''ORDER_PLACED'\'', '\''ACCEPTED'\'', '\''SHIPPED'\'', '\''UNSHIPPED'\'', '\''SENT'\''"
}'
{
"id": "623d3455ec3c4b3548eb4a349",
"reference": "<string>",
"number": 1234,
"discount": 120,
"tax": 100,
"total": 1200,
"subtotal": 100,
"date": "2022-06-10T07:51:12.510Z",
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z",
"orderStatus": {
"status": "New Order",
"date": "2022-06-10T07:51:12.510Z"
},
"products": {
"productId": 1234,
"variantId": 1234,
"name": "Test",
"sku": 1234,
"price": 120,
"CGST": 120,
"SGST": 100,
"total": 124,
"quantity": 4
},
"shipping": {
"firstName": "John",
"lastName": "mathews",
"trackingId": 123456,
"carrier": "pickrr",
"weight": 10,
"fee": 100,
"date": "2022-06-10T07:51:12.510Z",
"mobileNumber": 9949891734,
"countryCode": "IN",
"email": "john@gmail.com",
"address": {
"line1": "7-52/1",
"line2": "ram nagar",
"city": "Hyderabad",
"zipcode": 500098,
"state": "Telangana",
"country": "India",
"email": "john@lightbooks"
}
},
"payment": {
"transactionId": 123456,
"amount": 123,
"currency": "INR",
"method": "pre-paid",
"date": "2022-06-10T07:51:12.510Z",
"status": "success",
"statusReason": "Transaction failed due to network error"
}
}
Authorizations
Path Parameters
Order Id
Body
Order Status
Response
The Order Object ID.
The Order reference number.
The Order number.
The total discount for given order.
The total tax for given order.
The order total amount.
The order subtotal amount.
The order created date.
Created date
Modified date
Order Status.
Order Status date
The ordered products
Ordered product Id.
Ordered variant Id.
Ordered product name.
Ordered product sku.
Ordered product price.
Ordered product cgst.
Ordered product sgst
Ordered product total price.
Ordered product quantity.
The shipping details for given order
Customer first name
Customer last name
Shipping tracking id
Shipping carrier
Shipping weight
Shipping fees
Shipping created date
Customer mobile number
Shipping country code
Customer email
Shipping address
Address line 1.
Address line 2.
City name.
Zip code.
State name.
Country name.
email address.
The payment details for given order
Payment transactionId.
Payment amount.
Payment currency.
Payment method.
Payment created date.
Payment status.
Payment status reason.
curl --request PATCH \
--url https://api.aasaan.shop/api/v1/stores/orders/status/{orderId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"status": "'\''ORDER_PLACED'\'', '\''ACCEPTED'\'', '\''SHIPPED'\'', '\''UNSHIPPED'\'', '\''SENT'\''"
}'
{
"id": "623d3455ec3c4b3548eb4a349",
"reference": "<string>",
"number": 1234,
"discount": 120,
"tax": 100,
"total": 1200,
"subtotal": 100,
"date": "2022-06-10T07:51:12.510Z",
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z",
"orderStatus": {
"status": "New Order",
"date": "2022-06-10T07:51:12.510Z"
},
"products": {
"productId": 1234,
"variantId": 1234,
"name": "Test",
"sku": 1234,
"price": 120,
"CGST": 120,
"SGST": 100,
"total": 124,
"quantity": 4
},
"shipping": {
"firstName": "John",
"lastName": "mathews",
"trackingId": 123456,
"carrier": "pickrr",
"weight": 10,
"fee": 100,
"date": "2022-06-10T07:51:12.510Z",
"mobileNumber": 9949891734,
"countryCode": "IN",
"email": "john@gmail.com",
"address": {
"line1": "7-52/1",
"line2": "ram nagar",
"city": "Hyderabad",
"zipcode": 500098,
"state": "Telangana",
"country": "India",
"email": "john@lightbooks"
}
},
"payment": {
"transactionId": 123456,
"amount": 123,
"currency": "INR",
"method": "pre-paid",
"date": "2022-06-10T07:51:12.510Z",
"status": "success",
"statusReason": "Transaction failed due to network error"
}
}