Creates a new Purchaseorder record. Purchaseorder resource in the Animal Health Data Store
Client associated with this purchase order, if applicable.
Ownership or business unit identifier associated with this purchase order.
List of purchase order item identifiers associated with this purchase order.
Canonical identifier for the purchase order.
Reference to the shipping address resource.
Status of the purchase order.
Supplier from whom the order is placed.
Supplier-provided order number.
- Mock serverhttps://docs.axiomera.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/purchaseorder
- Local Developmenthttp://localhost:8083/site/{siteId}/ahds/v1/purchaseorder
curl -i -X POST \
'https://docs.axiomera.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/purchaseorder' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"clientId": "123e4567-e89b-12d3-a456-426614174000",
"comments": "example",
"extensions": {},
"freightAmount": "100.00",
"freightTaxAmount": "100.00",
"isActive": true,
"orderDate": "2025-01-01",
"ownershipId": "123e4567-e89b-12d3-a456-426614174000",
"purchaseOrderItemIds": [
"string"
],
"purchaseorderId": "123e4567-e89b-12d3-a456-426614174000",
"shippingAddressId": "123e4567-e89b-12d3-a456-426614174000",
"status": "draft",
"supplierAccountNumber": "example",
"supplierId": "123e4567-e89b-12d3-a456-426614174000",
"supplierOrderNumber": "123e4567-e89b-12d3-a456-426614174000",
"taxAmount": "100.00",
"totalAmount": "100.00"
}'Purchaseorder created successfully
Client associated with this purchase order, if applicable.
Timestamp when the purchase order was created.
Calendar date of the purchase order.
Ownership or business unit identifier associated with this purchase order.
List of purchase order item identifiers associated with this purchase order.
Canonical identifier for the purchase order.
Reference to the shipping address resource.
Status of the purchase order.
Supplier from whom the order is placed.
Supplier-provided order number.
{ "clientId": "123e4567-e89b-12d3-a456-426614174000", "comments": "example", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "freightAmount": "100.00", "freightTaxAmount": "100.00", "isActive": true, "orderDate": "2025-01-01T00:00:00Z", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "purchaseOrderItemIds": [ "string" ], "purchaseorderId": "123e4567-e89b-12d3-a456-426614174000", "shippingAddressId": "123e4567-e89b-12d3-a456-426614174000", "status": "draft", "supplierAccountNumber": "example", "supplierId": "123e4567-e89b-12d3-a456-426614174000", "supplierOrderNumber": "123e4567-e89b-12d3-a456-426614174000", "taxAmount": "100.00", "totalAmount": "100.00", "updatedAt": "2025-01-01T00:00:00.000Z" }