AMCS Group AppliedCost API

The AppliedCost API from AMCS Group — 3 operation(s) for appliedcost.

Specifications

OpenAPI Specification

amcs-group-appliedcost-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Core AccessGroup AppliedCost API
  version: core
tags:
- name: AppliedCost
paths:
  /purchasing/appliedCosts/changes:
    get:
      tags:
      - AppliedCost
      summary: Retrieve changes
      description: "| Property                  | Description                                                              |\r\n| ------------------------- | ------------------------------------------------------------------------ |\r\n| GUID                      | The GUID associated to the applied cost.                                 |\r\n| RelatedSupplierSiteGuid   | The GUID associated to the supplier site of the applied cost.            |\r\n| RelatedOrderGuid| The GUID associated to the order of the applied cost.               |\r\n| RelatedSupplierBillGuid                          | The GUID of the supplier bill of the applied cost.|\r\n| RelatedApplicationJobGuid                        | The GUID of the job this applied cost is applied to.                            |\r\n| RelatedApplicationRouteVisitGuid                 | The GUID of the route visit this applied cost is applied to.                    |\r\n| RelatedApplicationRouteGuid                      | The GUID of the route this applied cost is applied to.                          |\r\n| RelatedApplicationCostAgreementRouteCostGuid     | The GUID of the cost agreement route cost this applied cost is applied to.      |\r\n| RelatedApplicationRentalActionGuid               | The GUID of the rental action this applied cost is applied to.                  |\r\n| RelatedApplicationRentTermGuid                   | The GUID of the rent term this applied cost is applied to.                      |\r\n| RelatedApplicationWeighingInGuid                 | The GUID of the weighing in this applied cost is applied to.                    |\r\n| RelatedApplicationWeighingOutGuid                | The GUID of the weighing out this applied cost is applied to.                   |\r\n| RelatedApplicationRouteVisitJobGuid              | The GUID of the route visit job this applied cost is applied to.                |\r\n| RelatedApplicationOneOffActionGuid               | The GUID of the one off action this applied cost is applied to.                 |\r\n| RelatedApplicationJobDetailGuid                  | The GUID of the job detail this applied cost is applied to.                     |\r\n| RelatedApplicationVehicleFuelEventGuid           | The GUID of the vehicle fuel event this applied cost is applied to.             |\r\n| RelatedApplicationOneOffCostActionGuid           | The GUID of the one off cost action this applied cost is applied to.            |\r\n| RelatedApplicationRouteVisitMissedCollectionGuid | The GUID of the route visit missed collection this applied cost is applied to.  |\r\n| RelatedApplicationDamageContainerIncidentCostGuid | The GUID of the damage container incident cost is applied to. |\r\n| RelatedApplicationRouteProRataCollectionCostGuid | The GUID of the route pro rata collection cost this applied cost is applied to. |\r\n| RelatedApplicationInternalPurchaseOrderCostGuid  | The GUID of the internal purchase order cost this applied cost is applied to.   |\r\n| RelatedCostAgreementCostGuid        | The GUID associated to the cost of the applied cost. |\r\n| RelatedApplicationVATGuid    | The GUID of the VAT of the applied cost.                                  |\r\n| RelatedApplicationTaxTemplateCollectionGuid | The GUID of the tax template collection of the applied cost. | \r\n| VATListItem  | The GUID and description of the VAT of the applied cost.       |\r\n| TaxTemplateCollectionListItem | The GUID and description of the tax template collection of the applied cost. |\r\n| ActionListItem  | The GUID and description of the action of the applied cost.       |\r\n| ServiceListItem  | The GUID and description of the service of the applied cost.        |\r\n| PricingBasisListItem  | The GUID and description of the pricing basis of the applied cost.     |\r\n| ContainerListItem    | The GUID and description of the container of the applied cost.         |\r\n| Rate      | The rate of the applied cost.                       |\r\n| CostExVat      | The cost excluding VAT of the applied cost.                |\r\n| CostIncVat      | The cost including VAT of the applied cost.                |\r\n| CostDate            | The cost date of the applied cost in ISO format (YYYY-MM-DD).          |\r\n| IsAdjustment      | Is this applied cost an adjustment?                        |\r\n| IsApproved      | Is this applied cost approved?                                |\r\n| IsDisputed      | Is this applied cost disputed?                                |\r\n| IsSupplierBillConfirmed     | Is the supplier bill of this applied cost confirmed?                   |\r\n| FilterAccountingPeriodListItem| Used to filter on the accounting period list item GUID.|"
      operationId: AppliedCost_GetChanges
      parameters:
      - name: since
        in: query
        schema:
          type: string
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResourceChanges[ApiIntegratorAppliedCostResource]'
  /purchasing/appliedCosts/{guid}:
    get:
      tags:
      - AppliedCost
      summary: Find with GUID
      description: "| Property                  | Description                                                              |\r\n| ------------------------- | ------------------------------------------------------------------------ |\r\n| GUID                      | The GUID associated to the applied cost.                                 |\r\n| RelatedSupplierSiteGuid   | The GUID associated to the supplier site of the applied cost.            |\r\n| RelatedOrderGuid| The GUID associated to the order of the applied cost.               |\r\n| RelatedSupplierBillGuid                          | The GUID of the supplier bill of the applied cost.|\r\n| RelatedApplicationJobGuid                        | The GUID of the job this applied cost is applied to.                            |\r\n| RelatedApplicationRouteVisitGuid                 | The GUID of the route visit this applied cost is applied to.                    |\r\n| RelatedApplicationRouteGuid                      | The GUID of the route this applied cost is applied to.                          |\r\n| RelatedApplicationCostAgreementRouteCostGuid     | The GUID of the cost agreement route cost this applied cost is applied to.      |\r\n| RelatedApplicationRentalActionGuid               | The GUID of the rental action this applied cost is applied to.                  |\r\n| RelatedApplicationRentTermGuid                   | The GUID of the rent term this applied cost is applied to.                      |\r\n| RelatedApplicationWeighingInGuid                 | The GUID of the weighing in this applied cost is applied to.                    |\r\n| RelatedApplicationWeighingOutGuid                | The GUID of the weighing out this applied cost is applied to.                   |\r\n| RelatedApplicationRouteVisitJobGuid              | The GUID of the route visit job this applied cost is applied to.                |\r\n| RelatedApplicationOneOffActionGuid               | The GUID of the one off action this applied cost is applied to.                 |\r\n| RelatedApplicationJobDetailGuid                  | The GUID of the job detail this applied cost is applied to.                     |\r\n| RelatedApplicationVehicleFuelEventGuid           | The GUID of the vehicle fuel event this applied cost is applied to.             |\r\n| RelatedApplicationOneOffCostActionGuid           | The GUID of the one off cost action this applied cost is applied to.            |\r\n| RelatedApplicationRouteVisitMissedCollectionGuid | The GUID of the route visit missed collection this applied cost is applied to.  |\r\n| RelatedApplicationDamageContainerIncidentCostGuid | The GUID of the damage container incident cost is applied to. |\r\n| RelatedApplicationRouteProRataCollectionCostGuid | The GUID of the route pro rata collection cost this applied cost is applied to. |\r\n| RelatedApplicationInternalPurchaseOrderCostGuid  | The GUID of the internal purchase order cost this applied cost is applied to.   |\r\n| RelatedCostAgreementCostGuid        | The GUID associated to the cost of the applied cost. |\r\n| RelatedApplicationVATGuid    | The GUID of the VAT of the applied cost.                                  |\r\n| RelatedApplicationTaxTemplateCollectionGuid | The GUID of the tax template collection of the applied cost. | \r\n| VATListItem  | The GUID and description of the VAT of the applied cost.       |\r\n| TaxTemplateCollectionListItem | The GUID and description of the tax template collection of the applied cost. |\r\n| ActionListItem  | The GUID and description of the action of the applied cost.       |\r\n| ServiceListItem  | The GUID and description of the service of the applied cost.        |\r\n| PricingBasisListItem  | The GUID and description of the pricing basis of the applied cost.     |\r\n| ContainerListItem    | The GUID and description of the container of the applied cost.         |\r\n| Rate      | The rate of the applied cost.                       |\r\n| CostExVat      | The cost excluding VAT of the applied cost.                |\r\n| CostIncVat      | The cost including VAT of the applied cost.                |\r\n| CostDate            | The cost date of the applied cost in ISO format (YYYY-MM-DD).          |\r\n| IsAdjustment      | Is this applied cost an adjustment?                        |\r\n| IsApproved      | Is this applied cost approved?                                |\r\n| IsDisputed      | Is this applied cost disputed?                                |\r\n| IsSupplierBillConfirmed     | Is the supplier bill of this applied cost confirmed?                   |\r\n| FilterAccountingPeriodListItem| Used to filter on the accounting period list item GUID.|"
      operationId: AppliedCost_Get
      parameters:
      - name: guid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: udf
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResourceResultEntity[ApiIntegratorAppliedCostResource]'
    put:
      tags:
      - AppliedCost
      summary: Partial update
      description: "| Property                  | Description                                                              | Required |\r\n| ------------------------- | ------------------------------------------------------------------------ | -------- |\r\n| GUID                      | The GUID associated to the applied cost.                                 | No |\r\n| RelatedSupplierSiteGuid   | The GUID associated to the supplier site of the applied cost.            | Yes |\r\n| RelatedOrderGuid| The GUID associated to the order of the applied cost.   | No |\r\n| RelatedSupplierBillGuid                          | The GUID of the supplier bill of the applied cost.| No |\r\n| RelatedApplicationJobGuid                        | The GUID of the job this applied cost is applied to.                            | No |\r\n| RelatedApplicationRouteVisitGuid                 | The GUID of the route visit this applied cost is applied to.                    | No |\r\n| RelatedApplicationRouteGuid                      | The GUID of the route this applied cost is applied to.                          | No |\r\n| RelatedApplicationCostAgreementRouteCostGuid     | The GUID of the cost agreement route cost this applied cost is applied to.      | No |\r\n| RelatedApplicationRentalActionGuid               | The GUID of the rental action this applied cost is applied to.                  | No |\r\n| RelatedApplicationRentTermGuid                   | The GUID of the rent term this applied cost is applied to.                      | No |\r\n| RelatedApplicationWeighingInGuid                 | The GUID of the weighing in this applied cost is applied to.                    | No |\r\n| RelatedApplicationWeighingOutGuid                | The GUID of the weighing out this applied cost is applied to.                   | No |\r\n| RelatedApplicationRouteVisitJobGuid              | The GUID of the route visit job this applied cost is applied to.                | No |\r\n| RelatedApplicationOneOffActionGuid               | The GUID of the one off action this applied cost is applied to.                 | No |\r\n| RelatedApplicationJobDetailGuid                  | The GUID of the job detail this applied cost is applied to.                     | No |\r\n| RelatedApplicationVehicleFuelEventGuid           | The GUID of the vehicle fuel event this applied cost is applied to.             | No |\r\n| RelatedApplicationOneOffCostActionGuid           | The GUID of the one off cost action this applied cost is applied to.            | Yes |\r\n| RelatedApplicationRouteVisitMissedCollectionGuid | The GUID of the route visit missed collection this applied cost is applied to.  | No |\r\n| RelatedApplicationDamageContainerIncidentCostGuid | The GUID of the damage container incident cost is applied to. | No |\r\n| RelatedApplicationRouteProRataCollectionCostGuid | The GUID of the route pro rata collection cost this applied cost is applied to. | No |\r\n| RelatedApplicationInternalPurchaseOrderCostGuid  | The GUID of the internal purchase order cost this applied cost is applied to.   | No |\r\n| RelatedCostAgreementCostGuid        | The GUID associated to the cost of the applied cost. | No |\r\n| RelatedApplicationVATGuid    | The GUID of the VAT of the applied cost.                                  | No |\r\n| RelatedApplicationTaxTemplateCollectionGuid | The GUID of the tax template collection of the applied cost. | No |\r\n| VATListItem  | The GUID and description of the VAT of the applied cost.       | No |\r\n| TaxTemplateCollectionListItem | The GUID and description of the tax template collection of the applied cost. | No |\r\n| ActionListItem  | The GUID and description of the action of the applied cost.       | No |\r\n| ServiceListItem  | The GUID and description of the service of the applied cost.        | No |\r\n| PricingBasisListItem  | The GUID and description of the pricing basis of the applied cost.     | No |\r\n| ContainerListItem    | The GUID and description of the container of the applied cost.         | No |\r\n| AccountingPeriodListItem  | The GUID and description of the accounting period of the applied cost. | Yes |\r\n| Rate      | The rate of the applied cost.                       | No |\r\n| CostExVat      | The cost excluding VAT of the applied cost.                | No |\r\n| CostIncVat      | The cost including VAT of the applied cost.                | No |\r\n| CostDate         | The cost date of the applied cost in ISO format (YYYY-MM-DD).          | Yes |\r\n| IsAdjustment      | Is this applied cost an adjustment?                        | No |\r\n| IsApproved                  | Is this applied cost approved?                                | No |\r\n| IsDisputed                  | Is this applied cost disputed?                                | No |\r\n| IsSupplierBillConfirmed     | Is the supplier bill of this applied cost confirmed?                   | No |\r\n\r\n**Extra validations**\r\n\r\n| Condition | Error message |\r\n| --------- | ------------- |\r\n| RelatedApplicationJobGuid and RelatedApplicationRouteVisitGuid not provided. | Either RelatedApplicationJobGuid or RelatedApplicationRouteVisitGuid properties must be set. |\r\n| RelatedApplicationJobGuid and RelatedApplicationRouteVisitGuid provided. | Either RelatedApplicationJobGuid or RelatedApplicationRouteVisitGuid properties must be set. |\r\n| CostIncVat and CostIncVat not provided. | Either CostIncVat or CostIncVat properties must be set. |\r\n| CostIncVat and CostExVat provided. | Either CostIncVat or CostIncVat properties must be set. |\r\n| RelatedApplicationOneOffCostActionGuid is not from an Action of type OneOffCost or CostVATAdjustment. | RelatedApplicationOneOffCostActionGuid must be an Action with Primary Action Type OneOffCost or CostVATAdjustment. |\r\n| RelatedApplicationOneOffCostActionGuid is from Action type CostVATAdjustment and CostExtVat is provided. | Only CostIncVat can be set if RelatedApplicationOneOffCostActionGuid Action has Primary Action Type CostVATAdjustment. | \r\n| RelatedApplicationOneOffCostActionGuid is from Action type CostVATAdjustment and RelatedApplicationVATGuid or RelatedApplicationTaxTemplateCollectionGuid is provided. | Neither RelatedApplicationVATGuid or RelatedApplicationTaxTemplateCollectionGuid can be set if RelatedApplicationOneOffCostActionGuid Action has Primary Action Type CostVATAdjustment. | \r\n| RelatedApplicationOneOffCostActionGuid is not from Action type CostVATAdjustment and both RelatedApplicationVATGuid and RelatedApplicationTaxTemplateCollectionGuid are not provided. | Either RelatedApplicationVATGuid or RelatedApplicationTaxTemplateCollectionGuid must be set if RelatedApplicationOneOffCostActionGuid Action has Primary Action Type OneOffCost. | \r\n| Invalid open accounting period provided. | Failed to save. AppliedCost with AccountingPeriodListItem.GUID of c27e4508-851a-49e2-a305-b8de802d8f68 is not the earliest open accounting period. The earliest accounting period with status of open is: 7027C5FD-7023-EB11-8D03-98E74393FEE2 |S\r\n| Closed accounting period provided. | Failed to save. AppliedCost with AccountingPeriodListItem.GUID of 7027c5fd-7023-eb11-8d03-98e74393fee2 is not a valid accounting period because it is closed. |"
      operationId: AppliedCost_Update
      parameters:
      - name: guid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiIntegratorAppliedCostResource'
        required: true
        x-bodyName: null
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResourceId'
  /purchasing/appliedCosts:
    get:
      tags:
      - AppliedCost
      summary: Find with Filters
      description: "| Property                  | Description                                                              |\r\n| ------------------------- | ------------------------------------------------------------------------ |\r\n| GUID                      | The GUID associated to the applied cost.                                 |\r\n| RelatedSupplierSiteGuid   | The GUID associated to the supplier site of the applied cost.            |\r\n| RelatedOrderGuid| The GUID associated to the order of the applied cost.               |\r\n| RelatedSupplierBillGuid                          | The GUID of the supplier bill of the applied cost.|\r\n| RelatedApplicationJobGuid                        | The GUID of the job this applied cost is applied to.                            |\r\n| RelatedApplicationRouteVisitGuid                 | The GUID of the route visit this applied cost is applied to.                    |\r\n| RelatedApplicationRouteGuid                      | The GUID of the route this applied cost is applied to.                          |\r\n| RelatedApplicationCostAgreementRouteCostGuid     | The GUID of the cost agreement route cost this applied cost is applied to.      |\r\n| RelatedApplicationRentalActionGuid               | The GUID of the rental action this applied cost is applied to.                  |\r\n| RelatedApplicationRentTermGuid                   | The GUID of the rent term this applied cost is applied to.                      |\r\n| RelatedApplicationWeighingInGuid                 | The GUID of the weighing in this applied cost is applied to.                    |\r\n| RelatedApplicationWeighingOutGuid                | The GUID of the weighing out this applied cost is applied to.                   |\r\n| RelatedApplicationRouteVisitJobGuid              | The GUID of the route visit job this applied cost is applied to.                |\r\n| RelatedApplicationOneOffActionGuid               | The GUID of the one off action this applied cost is applied to.                 |\r\n| RelatedApplicationJobDetailGuid                  | The GUID of the job detail this applied cost is applied to.                     |\r\n| RelatedApplicationVehicleFuelEventGuid           | The GUID of the vehicle fuel event this applied cost is applied to.             |\r\n| RelatedApplicationOneOffCostActionGuid           | The GUID of the one off cost action this applied cost is applied to.            |\r\n| RelatedApplicationRouteVisitMissedCollectionGuid | The GUID of the route visit missed collection this applied cost is applied to.  |\r\n| RelatedApplicationDamageContainerIncidentCostGuid | The GUID of the damage container incident cost is applied to. |\r\n| RelatedApplicationRouteProRataCollectionCostGuid | The GUID of the route pro rata collection cost this applied cost is applied to. |\r\n| RelatedApplicationInternalPurchaseOrderCostGuid  | The GUID of the internal purchase order cost this applied cost is applied to.   |\r\n| RelatedCostAgreementCostGuid        | The GUID associated to the cost of the applied cost. |\r\n| RelatedApplicationVATGuid    | The GUID of the VAT of the applied cost.                                  |\r\n| RelatedApplicationTaxTemplateCollectionGuid | The GUID of the tax template collection of the applied cost. | \r\n| VATListItem  | The GUID and description of the VAT of the applied cost.       |\r\n| TaxTemplateCollectionListItem | The GUID and description of the tax template collection of the applied cost. |\r\n| ActionListItem  | The GUID and description of the action of the applied cost.       |\r\n| ServiceListItem  | The GUID and description of the service of the applied cost.        |\r\n| PricingBasisListItem  | The GUID and description of the pricing basis of the applied cost.     |\r\n| ContainerListItem    | The GUID and description of the container of the applied cost.         |\r\n| Rate      | The rate of the applied cost.                       |\r\n| CostExVat      | The cost excluding VAT of the applied cost.                |\r\n| CostIncVat      | The cost including VAT of the applied cost.                |\r\n| CostDate            | The cost date of the applied cost in ISO format (YYYY-MM-DD).          |\r\n| IsAdjustment      | Is this applied cost an adjustment?                        |\r\n| IsApproved      | Is this applied cost approved?                                |\r\n| IsDisputed      | Is this applied cost disputed?                                |\r\n| IsSupplierBillConfirmed     | Is the supplier bill of this applied cost confirmed?                   |\r\n| FilterAccountingPeriodListItem| Used to filter on the accounting period list item GUID.|"
      operationId: AppliedCost_GetCollection
      parameters:
      - name: filter
        in: query
        schema:
          type: string
      - name: max
        in: query
        schema:
          type: integer
          format: int32
      - name: page
        in: query
        schema:
          type: integer
          format: int32
      - name: includeCount
        in: query
        schema:
          type: boolean
      - name: udf
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResourceResultCollection[ApiIntegratorAppliedCostResource]'
    post:
      tags:
      - AppliedCost
      summary: Create or update
      description: "| Property                  | Description                                                              | Required |\r\n| ------------------------- | ------------------------------------------------------------------------ | -------- |\r\n| GUID                      | The GUID associated to the applied cost.                                 | No |\r\n| RelatedSupplierSiteGuid   | The GUID associated to the supplier site of the applied cost.            | Yes |\r\n| RelatedOrderGuid| The GUID associated to the order of the applied cost.               | No |\r\n| RelatedSupplierBillGuid                          | The GUID of the supplier bill of the applied cost.| No |\r\n| RelatedApplicationJobGuid                        | The GUID of the job this applied cost is applied to.                            | No |\r\n| RelatedApplicationRouteVisitGuid                 | The GUID of the route visit this applied cost is applied to.                    | No |\r\n| RelatedApplicationRouteGuid                      | The GUID of the route this applied cost is applied to.                          | No |\r\n| RelatedApplicationCostAgreementRouteCostGuid     | The GUID of the cost agreement route cost this applied cost is applied to.      | No |\r\n| RelatedApplicationRentalActionGuid               | The GUID of the rental action this applied cost is applied to.                  | No |\r\n| RelatedApplicationRentTermGuid                   | The GUID of the rent term this applied cost is applied to.                      | No |\r\n| RelatedApplicationWeighingInGuid                 | The GUID of the weighing in this applied cost is applied to.                    | No |\r\n| RelatedApplicationWeighingOutGuid                | The GUID of the weighing out this applied cost is applied to.                   | No |\r\n| RelatedApplicationRouteVisitJobGuid              | The GUID of the route visit job this applied cost is applied to.                | No |\r\n| RelatedApplicationOneOffActionGuid               | The GUID of the one off action this applied cost is applied to.                 | No |\r\n| RelatedApplicationJobDetailGuid                  | The GUID of the job detail this applied cost is applied to.                     | No |\r\n| RelatedApplicationVehicleFuelEventGuid           | The GUID of the vehicle fuel event this applied cost is applied to.             | No |\r\n| RelatedApplicationOneOffCostActionGuid           | The GUID of the one off cost action this applied cost is applied to.            | Yes |\r\n| RelatedApplicationRouteVisitMissedCollectionGuid | The GUID of the route visit missed collection this applied cost is applied to.  | No |\r\n| RelatedApplicationDamageContainerIncidentCostGuid | The GUID of the damage container incident cost is applied to. | No |\r\n| RelatedApplicationRouteProRataCollectionCostGuid | The GUID of the route pro rata collection cost this applied cost is applied to. | No |\r\n| RelatedApplicationInternalPurchaseOrderCostGuid  | The GUID of the internal purchase order cost this applied cost is applied to.   | No |\r\n| RelatedCostAgreementCostGuid        | The GUID associated to the cost of the applied cost. | No |\r\n| RelatedApplicationVATGuid    | The GUID of the VAT of the applied cost.                                  | No |\r\n| RelatedApplicationTaxTemplateCollectionGuid | The GUID of the tax template collection of the applied cost. | No |\r\n| VATListItem  | The GUID and description of the VAT of the applied cost.       | No |\r\n| TaxTemplateCollectionListItem | The GUID and description of the tax template collection of the applied cost. | No |\r\n| ActionListItem  | The GUID and description of the action of the applied cost.       | No |\r\n| ServiceListItem  | The GUID and description of the service of the applied cost.        | No |\r\n| PricingBasisListItem  | The GUID and description of the pricing basis of the applied cost.     | No |\r\n| ContainerListItem    | The GUID and description of the container of the applied cost.         | No |\r\n| AccountingPeriodListItem  | The GUID and description of the accounting period of the applied cost. | Yes |\r\n| Rate      | The rate of the applied cost.                       | No |\r\n| CostExVat      | The cost excluding VAT of the applied cost.                | No |\r\n| CostIncVat      | The cost including VAT of the applied cost.                | No |\r\n| CostDate         | The cost date of the applied cost in ISO format (YYYY-MM-DD).          | Yes |\r\n| IsAdjustment      | Is this applied cost an adjustment?                        | No |\r\n| IsApproved      | Is this applied cost approved?                                | No |\r\n| IsDisputed      | Is this applied cost disputed?                                | No |\r\n| IsSupplierBillConfirmed     | Is the supplier bill of this applied cost confirmed?                   | No |\r\n\r\n**Extra validations**\r\n\r\n| Condition | Error message |\r\n| --------- | ------------- |\r\n| RelatedApplicationJobGuid and RelatedApplicationRouteVisitGuid not provided. | Either RelatedApplicationJobGuid or RelatedApplicationRouteVisitGuid properties must be set. |\r\n| RelatedApplicationJobGuid and RelatedApplicationRouteVisitGuid provided. | Either RelatedApplicationJobGuid or RelatedApplicationRouteVisitGuid properties must be set. |\r\n| CostIncVat and CostIncVat not provided. | Either CostIncVat or CostIncVat properties must be set. |\r\n| CostIncVat and CostExVat provided. | Either CostIncVat or CostIncVat properties must be set. |\r\n| RelatedApplicationOneOffCostActionGuid is not from an Action of type OneOffCost or CostVATAdjustment. | RelatedApplicationOneOffCostActionGuid must be an Action with Primary Action Type OneOffCost or CostVATAdjustment. |\r\n| RelatedApplicationOneOffCostActionGuid is from Action type CostVATAdjustment and CostExtVat is provided. | Only CostIncVat can be set if RelatedApplicationOneOffCostActionGuid Action has Primary Action Type CostVATAdjustment. | \r\n| RelatedApplicationOneOffCostActionGuid is from Action type CostVATAdjustment and RelatedApplicationVATGuid or RelatedApplicationTaxTemplateCollectionGuid is provided. | Neither RelatedApplicationVATGuid or RelatedApplicationTaxTemplateCollectionGuid can be set if RelatedApplicationOneOffCostActionGuid Action has Primary Action Type CostVATAdjustment. | \r\n| RelatedApplicationOneOffCostActionGuid is not from Action type CostVATAdjustment and both RelatedApplicationVATGuid and RelatedApplicationTaxTemplateCollectionGuid are not provided. | Either RelatedApplicationVATGuid or RelatedApplicationTaxTemplateCollectionGuid must be set if RelatedApplicationOneOffCostActionGuid Action has Primary Action Type OneOffCost. | \r\n| Invalid open accounting period provided. | Failed to save. AppliedCost with AccountingPeriodListItem.GUID of c27e4508-851a-49e2-a305-b8de802d8f68 is not the earliest open accounting period. The earliest accounting period with status of open is: 7027C5FD-7023-EB11-8D03-98E74393FEE2 |S\r\n| Closed accounting period provided. | Failed to save. AppliedCost with AccountingPeriodListItem.GUID of 7027c5fd-7023-eb11-8d03-98e74393fee2 is not a valid accounting period because it is closed. |"
      operationId: AppliedCost_Create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiIntegratorAppliedCostResource'
        required: true
        x-bodyName: null
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResourceId'
components:
  schemas:
    ApiIntegratorListItemResource:
      type: object
      properties:
        Description:
          type: string
        Guid:
          type: string
          format: uuid
          example: 00000000-0000-0000-0000-000000000000
    ApiResourceResultUpdatesExtra:
      type: object
      properties:
        until:
          type: string
        cursor:
          type: string
    ApiResourceId:
      type: object
      properties:
        resource:
          type: string
          format: uuid
        errors:
          $ref: '#/components/schemas/ApiResourceErrors'
        status:
          $ref: '#/components/schemas/ApiResourceStatus'
    ApiResourceErrors:
      type: object
      properties:
        errors:
          type: string
    ApiResourceResultEntity[ApiIntegratorAppliedCostResource]:
      type: object
      properties:
        resource:
          $ref: '#/

# --- truncated at 32 KB (39 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/amcs-group/refs/heads/main/openapi/amcs-group-appliedcost-api-openapi.yml