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,
semantically the customer invoice request is a billable item based on a source document such as a sales order, customer contract, service order, service confirmation, and so on. The invoice run combines those billable items into an invoice that is then send to the customer.
For external customer invoice requests (created via API), ByD assumes the source document of the billable item to be outside the ByD system.The BaseBusinessTransactionDocumentID is the ID of the source document. Hence get it from the system were the source document resides. If you don't have a source document, then simply enter some unique ID.
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 | |
16 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.