AlphaAlpha Docs

Get purchase orders for product

GET
/products/{productId}/purchase-orders
AuthorizationBearer <token>

In: header

Path Parameters

productId*string

Query Parameters

pageNumber*integer
Formatint32
pageSize?integer
Formatint32
sortBy?string
direction?string
Value in"ASC" | "DESC"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/products/string/purchase-orders?pageNumber=0"
{
  "content": [
    {
      "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"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 0,
  "numberOfElements": 0,
  "pageable": {
    "offset": 0,
    "pageNumber": 0,
    "pageSize": 0,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 0,
  "totalPages": 0
}
{
  "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"
}