HI
It seems that that the posttingDate is never set whenever I post a purchase credit memo. Is this not supported via the api? I have included two files containing the payload and the api response.
You will see the Posting date is provided in the request and the posting date in the response is just the default date. Please can you advise?
Regards,
Abraham
{
"documentType": "Credit Memo",
"vendorIdentifier": "380b2413-b0fd-ea11-bb48-000d3a2fece2",
"postingDate": "2022-08-15",
"documentDate": "2022-08-15",
"incomingDocumentEntryNo": 0,
"vendorCrMemoNo": "Abe Aug #4.2",
"currency": "",
"pricesIncludingVat": false,
"systemId": "00000000-0000-0000-0000-000000000000",
"id": "00000000-0000-0000-0000-000000000000",
"taxLiable": false,
"purchaseCreditMemoLines": [
{
"documentType": "Credit Memo",
"lineNo": 1,
"type": "Item",
"no": "1900-S",
"nonstock": false,
"description": "PARIS Guest Chair, black",
"quantity": 1.0,
"directUnitCost": 97.5,
"taxLiable": false,
"useTax": false,
"allowInvoiceDiscount": false,
"allowItemChargeAssignment": false,
"quantityToAssign": 0,
"quantityAssigned": 0,
"deprUntilFixedAssetPostingDate": false,
"deprAcquisitionCost": false,
"blanketOrderLineNo": 0,
"appliedToItemEntry": 0,
"dimensionId1": "00000000-0000-0000-0000-000000000000",
"dimensionId2": "00000000-0000-0000-0000-000000000000",
"dimensionId3": "00000000-0000-0000-0000-000000000000",
"dimensionId4": "00000000-0000-0000-0000-000000000000",
"dimensionId5": "00000000-0000-0000-0000-000000000000",
"dimensionId6": "00000000-0000-0000-0000-000000000000",
"dimensionId7": "00000000-0000-0000-0000-000000000000",
"dimensionId8": "00000000-0000-0000-0000-000000000000"
}
]
}{
"@odata.context": "https://api.businesscentral.dynamics.com/v2.0/sandbox/api/codat/extensions/v1.0/$metadata#companies(0f8058e0-affd-ea11-bb48-000d3a2fece2)/purchaseCreditMemos/$entity",
"@odata.etag": "W/\"JzIwOzE0NjEyMDgxMDQwNDA1Mjg4MTM1MTswMDsn\"",
"documentType": "Credit Memo",
"no": "1064",
"id": "00000000-0000-0000-0000-000000000000",
"systemId": "a6fa4dba-9b1c-ed11-90eb-0022481aff10",
"buyFromVendorNo": "10000",
"buyFromVendorName": "Fabrikam, Inc.",
"vendorIdentifier": "380b2413-b0fd-ea11-bb48-000d3a2fece2",
"documentDate": "2022-08-15",
"currency": "",
"currencyCode": "GBP",
"status": "Open",
"amountIncludingVat": 97.5,
"appliesToDocNo": "",
"appliesToDocType": " ",
"appliesToId": "",
"area": "",
"assignedUserId": "",
"balAccountNo": "",
"balAccountType": "G/L Account",
"vendorInvoiceNo": "",
"vendorId": "380b2413-b0fd-ea11-bb48-000d3a2fece2",
"postingDescription": "Credit Memo 1064",
"buyFromAddress": "10 North Lake Avenue",
"buyFromAddress2": "",
"buyFromCity": "",
"buyFromContactNo": "CT000011",
"buyFromContact": "Krystal York",
"buyFromCountryRegionCode": "US",
"buyFromCounty": "GA",
"buyfromICPartnerCode": "",
"buyFromPostCode": "US-GA 31772",
"postingDate": "0001-01-01",
"dueDate": "2022-08-15",
"expectedReceiptDate": "0001-01-01",
"vendorAuthorizationNo": "",
"incomingDocumentEntryNo": 0,
"vendorCrMemoNo": "ABE AUG #4.2",
"purchaserCode": "",
"campaignNo": "",
"responsibilityCenter": "",
"jobQueueStatus": " ",
"pricesIncludingVat": false,
"vatBusPostingGroup": "EXPORT",
"paymentTermsCode": "CM",
"paymentMethodCode": "BANK",
"amount": 97.5,
"invoiceDiscountAmount": 0,
"shortcutDimension1Code": "",
"shortcutDimension2Code": "",
"paymentDiscountPercent": 0,
"paymentDiscountDate": "0001-01-01",
"taxLiable": false,
"taxAreaCode": "",
"locationCode": "",
"shipToOptions": "Default (Vendor Address)",
"orderAddressCode": "",
"shipToName": "Fabrikam, Inc.",
"shipToAddress": "10 North Lake Avenue",
"shipToAddress2": "",
"shipToCity": "",
"shipToCounty": "GA",
"shipToPostCode": "US-GA 31772",
"shipToCountryRegionCode": "US",
"shipToContact": "Krystal York",
"payToName": "Fabrikam, Inc.",
"payToAddress": "10 North Lake Avenue",
"payToAddress2": "",
"payToCity": "",
"payToCounty": "GA",
"payToPostCode": "US-GA 31772",
"payToCountryRegionCode": "US",
"payToContactNo": "CT000011",
"payToContact": "Krystal York",
"transactionSpecification": "",
"transactionType": "",
"transportMethod": "",
"entryPoint": "",
"aRcdNotInvExVATLCY": 0,
"amtRcdNotInvoicedLCY": 0,
"systemCreatedAt": "2022-08-15T13:11:09.977Z",
"systemCreatedBy": "e5c98a37-c5d3-42f3-8abb-3bf74d253f76",
"systemModifiedAt": "2022-08-15T13:11:09.977Z",
"systemModifiedBy": "e5c98a37-c5d3-42f3-8abb-3bf74d253f76",
"purchaseCreditMemoLines": [
{
"@odata.etag": "W/\"JzIwOzEwNzQ2Nzk3NzU3OTM5MTMzNDY3MTswMDsn\"",
"documentType": "Credit Memo",
"documentNo": "1064",
"lineNo": 1,
"systemId": "a7fa4dba-9b1c-ed11-90eb-0022481aff10",
"type": "Item",
"filteredTypeField": "",
"no": "1900-S",
"crossReferenceNo": "",
"icPartnerCode": "",
"icPartnerRefType": " ",
"icPartnerReference": "",
"variantCode": "",
"nonstock": false,
"genBusPostingGroup": "EXPORT",
"genProdPostingGroup": "RETAIL",
"vatBusPostingGroup": "EXPORT",
"vatProdPostingGroup": "STANDARD",
"vatPostingSetupId": "2a171d19-b0fd-ea11-bb48-000d3a2fece2",
"description": "PARIS Guest Chair, black",
"returnReasonCode": "",
"locationCode": "",
"binCode": "",
"quantity": 1,
"unitOfMeasureCode": "PCS",
"unitOfMeasure": "Piece",
"directUnitCost": 97.5,
"indirectCostPercent": 0,
"unitCost": 97.5,
"unitCostLcy": 97.5,
"unitPriceLcy": 125.1,
"taxLiable": false,
"taxAreaCode": "",
"taxGroupCode": "",
"useTax": false,
"invDiscAmountToInvoice": 0,
"lineDiscountPercent": 0,
"vatPercentage": 0,
"lineAmount": 97.50,
"lineDiscountAmount": 0,
"allowInvoiceDiscount": false,
"invoiceDiscountAmountToInvoice": 0,
"invoiceDiscountAmount": 0,
"allowItemChargeAssignment": false,
"quantityToAssign": 0,
"quantityAssigned": 0,
"jobNo": "",
"jobTaskNo": "",
"jobLineType": " ",
"jobUnitPrice": 0,
"jobLineAmount": 0,
"jobLineDiscountAmount": 0,
"jobLineDiscountPercent": 0,
"jobTotalPrice": 0,
"jobUnitPriceLcy": 0,
"jobTotalPriceLcy": 0,
"jobLineAmountLcy": 0,
"jobLineDiscountAmountLcy": 0,
"prodOrderNo": "",
"insuranceNo": "",
"budgetedFixedAssetNo": "",
"fixedAssetPostingType": " ",
"deprUntilFixedAssetPostingDate": false,
"depreciationBookCode": "",
"deprAcquisitionCost": false,
"blanketOrderNo": "",
"blanketOrderLineNo": 0,
"appliedToItemEntry": 0,
"deferralCode": "",
"shortcutDimension1Code": "",
"shortcutDimension2Code": "",
"shortcutDimCode3": "",
"shortcutDimCode4": "",
"shortcutDimCode5": "",
"shortcutDimCode6": "",
"shortcutDimCode7": "",
"shortcutDimCode8": "",
"itemId": "3e0b2413-b0fd-ea11-bb48-000d3a2fece2",
"purchaseAccountId": "0e0b2413-b0fd-ea11-bb48-000d3a2fece2",
"amountBeforeDiscount": 0,
"invoiceDiscountPercent": 0,
"systemCreatedAt": "2022-08-15T13:11:10.153Z",
"systemCreatedBy": "e5c98a37-c5d3-42f3-8abb-3bf74d253f76",
"systemModifiedAt": "2022-08-15T13:11:10.153Z",
"systemModifiedBy": "e5c98a37-c5d3-42f3-8abb-3bf74d253f76",
"dimensionId1": "00000000-0000-0000-0000-000000000000",
"dimensionId2": "00000000-0000-0000-0000-000000000000",
"dimensionId3": "00000000-0000-0000-0000-000000000000",
"dimensionId4": "00000000-0000-0000-0000-000000000000",
"dimensionId5": "00000000-0000-0000-0000-000000000000",
"dimensionId6": "00000000-0000-0000-0000-000000000000",
"dimensionId7": "00000000-0000-0000-0000-000000000000",
"dimensionId8": "00000000-0000-0000-0000-000000000000"
}
]
}