AlphaAlpha Docs
API ReferencePurchase orders

Find by id in current tenant

GET
/purchase-orders/find/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/purchase-orders/find/string"
{
  "acceptedProducts": [
    {
      "productId": "string",
      "quantity": 0.1
    }
  ],
  "accessTokenHash": "string",
  "actualDeliveryDate": "2019-08-24T14:15:22Z",
  "allowOverdraft": true,
  "amountAccepted": 0.1,
  "amountOfProducts": 0.1,
  "amountRejected": 0.1,
  "approvalRuleSnapshot": {
    "amountThreshold": 0.1,
    "approvalMode": "ANY",
    "approverUserIds": [
      "string"
    ],
    "globalApproverUserIds": [
      "string"
    ],
    "ruleId": "string"
  },
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "baseConversionRate": 0.1,
  "cancellationReason": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "currentLocation": {
    "address": {
      "city": "string",
      "country": "string",
      "houseNumber": "string",
      "id": "string",
      "latitude": 0.1,
      "longitude": 0.1,
      "postalCode": "string",
      "street": "string"
    },
    "coordinate": {
      "latitude": -90,
      "longitude": -180
    },
    "name": "string"
  },
  "deliveryAddress": {
    "city": "string",
    "country": "string",
    "houseNumber": "string",
    "id": "string",
    "latitude": 0.1,
    "longitude": 0.1,
    "postalCode": "string",
    "street": "string"
  },
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "expectedDeliveryDate": "2019-08-24T14:15:22Z",
  "id": "string",
  "internalApprovals": [
    {
      "approved": true,
      "by": "string",
      "on": "2019-08-24T14:15:22Z",
      "reason": "string"
    }
  ],
  "internalReview": {
    "approved": true,
    "by": "string",
    "on": "2019-08-24T14:15:22Z",
    "reason": "string"
  },
  "isLocked": true,
  "localizedTotal": 0.1,
  "mailBody": "string",
  "note": "string",
  "number": "string",
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "percentageAccepted": 0.1,
  "percentageRejected": 0.1,
  "products": [
    {
      "baseUnitConversion": 0.1,
      "baseUnitQuantity": 0.1,
      "pricePerBaseUnit": 0.1,
      "pricePerUnit": 0.1,
      "productId": "string",
      "quantity": 0.1,
      "totalPrice": 0.1,
      "unit": "string"
    }
  ],
  "rejectedProducts": [
    {
      "batches": [
        {
          "quantity": 0.1,
          "reason": "string"
        }
      ],
      "productId": "string",
      "quantity": 0.1
    }
  ],
  "rejectionReason": "string",
  "requestedAt": "2019-08-24T14:15:22Z",
  "requestedBy": "string",
  "requesterSignature": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "shortageProducts": [
    {
      "batches": [
        {
          "quantity": 0.1,
          "reason": "string",
          "resolutions": [
            {
              "glAccountId": "string",
              "id": "string",
              "quantity": 0.1,
              "referenceId": "string",
              "resolvedAt": "2019-08-24T14:15:22Z",
              "resolvedBy": "string",
              "type": "DEBIT_NOTE"
            }
          ],
          "resolvedQuantity": 0.1,
          "unresolvedQuantity": 0.1
        }
      ],
      "productId": "string",
      "quantity": 0.1,
      "resolvedQuantity": 0.1,
      "unresolvedQuantity": 0.1
    }
  ],
  "signature": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "signedAt": "2019-08-24T14:15:22Z",
  "signedBy": "string",
  "status": "DRAFT",
  "stockSiteId": "string",
  "subsidiaryId": "string",
  "supplierEmail": "string",
  "supplierId": "string",
  "supplierReview": {
    "approved": true,
    "by": "string",
    "on": "2019-08-24T14:15:22Z",
    "reason": "string"
  },
  "tenantId": "string",
  "total": 0.1,
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "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"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}