There is a deficiency in the Orders creation endpoint where the response returned from the creation does not contain Invoice IDs, only Invoice Numbers (see below). The problem with that, is there is no REST endpoint that allows us to look up an Invoice by InvoiceNumber. {
"success": true,
"orderNumber": "O-00000014",
"accountNumber": "A00000001",
"status": "Completed",
"subscriptionNumbers": [
"A-S00000012"
],
"invoiceNumbers": [
"INV00000003"
],
"paymentNumber": "P-00000001",
"paidAmount": 5.03
} By not providing an endpoint to look up an Invoice by InvoiceNumber, we're forced to execute a ZOQL query to retrieve invoice data, but we cannot readily model our data consistently as we would be able to if there was a REST endpoint that provided an Invoice object, just looked up by InvoiceNumber instead of Id. We propose either of the following solutions: Creation of an additional REST API endpoint that will retrieve an Invoice object by InvoiceNumber Provide the Invoice ID (not just Number) back in the payload of the Order Creation response.
... View more