IntegrationsKiwiBot

Show one purchase order: items with unit cost, unit price and ordered/received/defective quantities per location, totals with sales value and expected margin, the channels it was sent through and the number of linked documents.

POST
/integrations/connections/{connection_id}/providers/kiwibot/purchase-orders/get

Show one purchase order: items with unit cost, unit price and ordered/received/defective quantities per location, totals with sales value and expected margin, the channels it was sent through and the number of linked documents.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

connection_id*string

Resource identifier: connection_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/integrations/connections/123e4567-e89b-42d3-a456-426614174000/providers/kiwibot/purchase-orders/get" \  -H "Content-Type: application/json" \  -d '{    "purchase_order_id": "000000000000000000000000"  }'
{  "id": "example",  "po_number": "example",  "status": "draft",  "supplier": {},  "totals": {    "total_items": 0,    "total_units": 0,    "total_cost": 0,    "received_units": 0,    "location_count": 0,    "sales_value": 0,    "expected_margin": 0  },  "closed_with_difference": false,  "order_config": {    "target_days": 0,    "use_seasonality": false,    "service_level": 0  },  "distributions": [],  "locations": [],  "items": [],  "output": {},  "document_count": 0}