title: How to insert Adjustment record with Contract API
body: <p>I'm trying to insert an adjustment record via the SOAP API using the following code.</p>
  
  <pre><code>Dim NewAdjustment As Adjustment = New Adjustment With {
      .ExternalRef = New StringValue With {.Value = "TEST1234"},
      .Description = New StringValue With {.Value = "1234TEST"},
      .[Date] = New DateTimeValue With {.Value = "12/20/2018"},
      .Details = {New AdjustmentDetail With {
          .BranchID = New StringValue With {.Value = "PRODWHOLE"},
          .InventoryID = New StringValue With {.Value = "18r.5"},
          .WarehouseID = New StringValue With {.Value = "RETAIL"},
          .Qty = New DecimalValue With {.Value = 100}
          }}
  }
  
  Dim InsertAdjustment As Adjustment = CType(soapClient.Put(NewAdjustment), Adjustment)
  </code></pre>
  
  <p>I get an error px.data.pcexception: Error: 'Branch' cannot be empty. Error: 'Post Period' cannot be empty. Error Inserting 'Receipt' record raised at least one error.</p>
  
  <p>I'm guessing I need to fill those values but I'm not sure how to do that. I see them in the table but not the API interface. I'm new to Acumatica, so I'm guessing this is just something I'm missing.</p>
  
  <p>Thanks in advance.</p>