Public Purchase Orders
Public purchase order endpoints (token-based, no authentication required)
View purchase order detail (public, token-based)
AuthorizationBearer <token>
In: header
Path Parameters
id*string
Query Parameters
token*string
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/public/purchase-orders/string?token=string"{
"canAccept": true,
"canReject": true,
"created": "2019-08-24T14:15:22Z",
"currency": "string",
"deliveryAddress": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"expectedDeliveryDate": "2019-08-24T14:15:22Z",
"id": "string",
"note": "string",
"pdfAvailable": true,
"products": [
{
"pricePerUnit": 0.1,
"productName": "string",
"quantity": 0.1,
"totalPrice": 0.1,
"unit": "string"
}
],
"rejectionReason": "string",
"signatureBlobId": "string",
"signedAt": "2019-08-24T14:15:22Z",
"signedBy": "string",
"status": "DRAFT",
"totalAmount": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Accept purchase order with signature (public, token-based)
AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/public/purchase-orders/string/accept" \ -H "Content-Type: application/json" \ -d '{ "signature": "string", "signedBy": "string", "token": "string" }'{
"canAccept": true,
"canReject": true,
"created": "2019-08-24T14:15:22Z",
"currency": "string",
"deliveryAddress": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"expectedDeliveryDate": "2019-08-24T14:15:22Z",
"id": "string",
"note": "string",
"pdfAvailable": true,
"products": [
{
"pricePerUnit": 0.1,
"productName": "string",
"quantity": 0.1,
"totalPrice": 0.1,
"unit": "string"
}
],
"rejectionReason": "string",
"signatureBlobId": "string",
"signedAt": "2019-08-24T14:15:22Z",
"signedBy": "string",
"status": "DRAFT",
"totalAmount": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Download purchase order PDF (public, token-based)
AuthorizationBearer <token>
In: header
Path Parameters
id*string
Query Parameters
token*string
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/public/purchase-orders/string/pdf?token=string""string"{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Reject purchase order (public, token-based)
AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/public/purchase-orders/string/reject" \ -H "Content-Type: application/json" \ -d '{ "token": "string" }'{
"canAccept": true,
"canReject": true,
"created": "2019-08-24T14:15:22Z",
"currency": "string",
"deliveryAddress": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"expectedDeliveryDate": "2019-08-24T14:15:22Z",
"id": "string",
"note": "string",
"pdfAvailable": true,
"products": [
{
"pricePerUnit": 0.1,
"productName": "string",
"quantity": 0.1,
"totalPrice": 0.1,
"unit": "string"
}
],
"rejectionReason": "string",
"signatureBlobId": "string",
"signedAt": "2019-08-24T14:15:22Z",
"signedBy": "string",
"status": "DRAFT",
"totalAmount": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Download purchase order signature image (public, token-based)
AuthorizationBearer <token>
In: header
Path Parameters
id*string
Query Parameters
token*string
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/public/purchase-orders/string/signature?token=string""string"{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}