Public
Documentation Settings

OpenAPI Clicksbiz

Order

Return

POSTCreate

https://stock-api.clicksbiz.com/api/v1/open_api/orders/returns
HEADERS
public-key

testkey

secret-key

secretkey

Bodyraw (json)
json
{
  "cost": 0,
  "order_id": 0,
  "remark": "string",
  "return_details": [
    {
      "is_broken": true,
      "product_id": 0,
      "quantity": 0,
      "reference_image_ids": [
        0
      ],
      "returned_at": "string"
    }
  ]
}
Example Request
curl
curl --location 'https://stock-api.clicksbiz.com/api/v1/open_api/orders/returns' \
--header 'public-key: testkey' \
--header 'secret-key: secretkey' \
--data '{
  "cost": 0,
  "order_id": 0,
  "remark": "string",
  "return_details": [
    {
      "is_broken": true,
      "product_id": 0,
      "quantity": 0,
      "reference_image_ids": [
        0
      ],
      "returned_at": "string"
    }
  ]
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

PUTUpdate

https://stock-api.clicksbiz.com/api/v1/open_api/orders/returns/1
HEADERS
public-key

testkey

secret-key

secretkey

Bodyraw (json)
json
{
  "cost": 0,
  "permission_id": 0,
  "remark": "string",
  "return_details": [
    {
      "id": 0,
      "is_broken": true,
      "product_id": 0,
      "quantity": 0,
      "reference_image_ids": [
        0
      ],
      "returned_at": "string"
    }
  ],
  "status": 1 // 1สร้าง 2สำเร็จ
}
Example Request
curl
curl --location --request PUT 'https://stock-api.clicksbiz.com/api/v1/open_api/orders/returns/1' \
--header 'public-key: testkey' \
--header 'secret-key: secretkey' \
--data '{
  "cost": 0,
  "permission_id": 0,
  "remark": "string",
  "return_details": [
    {
      "id": 0,
      "is_broken": true,
      "product_id": 0,
      "quantity": 0,
      "reference_image_ids": [
        0
      ],
      "returned_at": "string"
    }
  ],
  "status": 1 // 1สร้าง 2สำเร็จ
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

DELETEDelete

https://stock-api.clicksbiz.com/api/v1/open_api/orders/returns/1
HEADERS
public-key

testkey

secret-key

secretkey

Example Request
curl
curl --location --request DELETE 'https://stock-api.clicksbiz.com/api/v1/open_api/orders/returns/1' \
--header 'public-key: testkey' \
--header 'secret-key: secretkey'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers