Skip to main content

Create a Supplier Order for current business

POST 

https://api.staging.powerapi.com/api/v1/supplier_orders

Create a Supplier Order for current business

Request

Bodyrequired

    data object
    type stringrequired

    Possible values: [supplier_orders]

    attributes object
    desired_delivery_date daterequired
    comment string
    relationships object
    business object
    data object
    type stringrequired

    Possible values: [business]

    id stringrequired

    Related Business ID

    supplier object
    data object
    type stringrequired

    Possible values: [supplier]

    id stringrequired

    Related Supplier ID

Responses

Create a Supplier Order for current business
Schema

Authorization: http

name: bearertype: httpscheme: bearerbearerFormat: JWT
curl -L 'https://api.staging.powerapi.com/api/v1/supplier_orders' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "supplier_orders",
"attributes": {
"desired_delivery_date": "2024-07-29",
"comment": "string"
},
"relationships": {
"business": {
"data": {
"type": "business",
"id": "string"
}
},
"supplier": {
"data": {
"type": "supplier",
"id": "string"
}
}
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Body required
{
  "data": {
    "type": "supplier_orders",
    "attributes": {
      "desired_delivery_date": "2024-07-29",
      "comment": "string"
    },
    "relationships": {
      "business": {
        "data": {
          "type": "business",
          "id": "string"
        }
      },
      "supplier": {
        "data": {
          "type": "supplier",
          "id": "string"
        }
      }
    }
  }
}
ResponseClear

Click the Send API Request button above and see the response here!