on 2019 Nov 18 3:52 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
15 | |
10 | |
8 | |
5 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.