cancel
Showing results for 
Search instead for 
Did you mean: 

How to post a Customer Invoice Request via Custom oData?

former_member605786
Participant
0 Kudos
1,892

Good day Experts,

I'm having a problem on how to post CustomerInvoiceRequest via Custom OData, can someone kindly please help me on this? My custom OData for Journal Entry Voucher works fine, but on this Business Object, the error is always like this on Postman :

500 Internal Server Error

Creating data not possible; creation disabled::Create not possible; source object does not exist::The customer invoice request cannot be saved, because the preceding document ID missing. Report an incident.::The customer invoice request cannot be saved, because the preceding document type missing.

Below is my created OData and my sample body request from postman:

{
"AccountsReceivableDueItemTypeCode": "",
"CustomerInvoiceProcessingTypeCode": "CI",
"Name": "Manual Request via PostMan",
"ProposedInvoiceDate": "/Date(1574035200000)/",
"ReferenceBusinessTransactionDocumentID": "",
"ConsistencyStatusCode": "3",
"CustomerInvoiceRequestItem": [
{
            "Quantity": "1.00000000000000",
            "ProcessingTypeCode": "CII",
            "CustomerInvoiceRequestItemProduct": 
            {
            "ProductID": "SE00001",
            "ProductIdentifierTypeCode": "1",
            "ProductTypeCode": "2"
            }
}
],
"CustomerInvoiceRequestParty": [
{
                "PartyID": "API-56477",
                "PartyTypeCode": "159",
                "RoleCategoryCode": "1",
                "RoleCode": "1001"
            },
            {
                "PartyID": "8000000014",
                "PartyTypeCode": "167",
                "RoleCategoryCode": "39",
                "RoleCode": "39"
            },
            {
                "PartyID": "GXI",
                "PartyTypeCode": "154",
                "RoleCategoryCode": "11",
                "RoleCode": "1101"
            },
            {
                "PartyID": "GXI-PMT",
                "PartyTypeCode": "410",
                "RoleCategoryCode": "44",
                "RoleCode": "44"
            },
            {...
            },
            {...
            },
            {...
            },
            {...
            },
            {...
            }
]
}

I got these fields on already posted Invoice Request and I'm trying to duplicate this via postman.

Appreciate your help on here. Thanks!!

Regards,

Chester

View Entire Topic
knutheusermann
Product and Topic Expert
Product and Topic Expert

Hi Chester,

you need to provide a BaseBusinessTransactionDocumentID.

In case of format errors, you find detailed error messages in the ByD work center view "Business Communication Monitor" >> "Rejected web service calls" or via API ReadBusinessDocumentMonitoringInformationIn.

Best regards,
Knut

former_member605786
Participant
0 Kudos

Hello Knut,

Where can I get the BaseBusinessTransactionDocumentID?

Thanks for your reply.

Regards,

Chester