MYOB .NET SDK - Invoice creation

139 views Asked by At

I'm not sure if anyone will be able to help me or not but I am hoping there is someone familiar with the .NET SDK for MYOB.

The service classes accessible in the SDK provide the core HTTP operations available for each consumable endpoint. These include the following operators:

Get/GetRange – HTTP GET Insert – HTTP POST Update – HTTP PUT Delete – HTTP DELETE

https://developer.myob.com/api/myob-business-api/arlive-sdk/dotnet_sdk/sdk-services/

The InvoiceService is accessed via

MYOB.AccountRight.SDK.Services.Sale.InvoiceService.

I have instantiated an InvoiceService object:

var invService = new InvoiceService(configuration);

However the InvoiceService class does not have an "Insert" function.

The API endpoint documentation suggests a "POST" is possible though: https://developer.myob.com/api/myob-business-api/v2/sale/invoice/invoice_service/

Am I using the wrong class? I unfortunately can't find any SDK documentation.

1

There are 1 answers

4
user2250152 On BEST ANSWER

Try to use MYOB.AccountRight.SDK.Services.Sale.ItemInvoiceService instead of MYOB.AccountRight.SDK.Services.Sale.InvoiceService.