AlphaAlpha Docs
API ReferenceEstimates

Convert an accepted estimate to a sales order

POST
/estimates/{id}/convert-to-order
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/estimates/string/convert-to-order"
{
  "amountOfProducts": 0.1,
  "cachedInvoicePaidAmount": 0.1,
  "cachedInvoicedAmount": 0.1,
  "cancelledProducts": {
    "isNotEmpty": true,
    "products": [
      {
        "productId": "string",
        "quantity": 0.1,
        "unit": "string"
      }
    ]
  },
  "clientId": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "deliveryAddress": {
    "city": "string",
    "country": "string",
    "houseNumber": "string",
    "id": "string",
    "latitude": 0.1,
    "longitude": 0.1,
    "postalCode": "string",
    "street": "string"
  },
  "directPaymentAmount": 0.1,
  "directPayments": [
    {
      "amount": 0.1,
      "createdBy": "string",
      "currency": "string",
      "id": "string",
      "note": "string",
      "paymentDate": "2019-08-24T14:15:22Z",
      "paymentMethod": "CREDIT_CARD",
      "receiptAsset": {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      },
      "receiptGenerated": true,
      "reference": "string"
    }
  ],
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "expectedDeliveryDate": "2019-08-24T14:15:22Z",
  "id": "string",
  "internalCancellationReason": "string",
  "internalReview": {
    "approved": true,
    "by": "string",
    "on": "2019-08-24T14:15:22Z",
    "reason": "string"
  },
  "invoiceIds": [
    "string"
  ],
  "invoicedProducts": [
    {
      "invoiceId": "string",
      "productId": "string",
      "quantityInvoiced": 0.1,
      "unit": "string"
    }
  ],
  "isFullyCancelled": true,
  "isOverdue": true,
  "number": "string",
  "opportunityId": "string",
  "orderDate": "2019-08-24T14:15:22Z",
  "packages": [
    {
      "dimension": {
        "height": 0.1,
        "length": 0.1,
        "width": 0.1
      },
      "location": {
        "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"
      },
      "picklistId": "string",
      "weight": 0.1
    }
  ],
  "paymentAmount": 0.1,
  "paymentMethod": "CREDIT_CARD",
  "paymentPercentage": 0.1,
  "paymentStatus": "UNPAID",
  "paymentTerm": 0,
  "picklistIds": [
    "string"
  ],
  "products": [
    {
      "baseUnitConversion": 0.1,
      "baseUnitQuantity": 0.1,
      "pricePerBaseUnit": 0.1,
      "pricePerUnit": 0.1,
      "productId": "string",
      "quantity": 0.1,
      "totalPrice": 0.1,
      "unit": "string"
    }
  ],
  "reference": "string",
  "reservedProducts": [
    {
      "productId": "string",
      "quantity": 0.1,
      "siteId": "string"
    }
  ],
  "salesValue": 0.1,
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "totalAmount": 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"
}