There is an issue updating and creating StickyNotes as the Order Structure for the Get is different to the Update
For the Get see https://developers.maropost.com/documentation/engineers/api-documentation/orders-invoices/getorder
The Get has the structure
"StickyNotes": [ {
"StickyNoteID":"Integer",
"Title":"String",
"Description":"String"
} ]
For the Update see https://developers.maropost.com/documentation/engineers/api-documentation/orders-invoices/updateorder
Whereas the Update has the Stucture
"StickyNotes": {
"StickyNote": [ {
"StickyNoteID":"Integer",
"Title":"String",
"Description":"String"
} ]
For testing I added a copy of the Order structure as UpdateOrder and changed to
public class UpdateOrder
{
.....
public StickyNotesArray StickyNotes { get; set; }
}
public class StickyNotesArray
{
public List<StickyNotes> StickyNote { get; set; }
}
Which worked and I was able to both update and add new Sticky Notes
There is an issue updating and creating StickyNotes as the Order Structure for the Get is different to the Update
For the Get see https://developers.maropost.com/documentation/engineers/api-documentation/orders-invoices/getorder
The Get has the structure
"StickyNotes": [ {
"StickyNoteID":"Integer",
"Title":"String",
"Description":"String"
} ]
For the Update see https://developers.maropost.com/documentation/engineers/api-documentation/orders-invoices/updateorder
Whereas the Update has the Stucture
"StickyNotes": {
"StickyNote": [ {
"StickyNoteID":"Integer",
"Title":"String",
"Description":"String"
} ]
For testing I added a copy of the Order structure as UpdateOrder and changed to
Which worked and I was able to both update and add new Sticky Notes