Skip to content

Issue updating and creating StickyNotes #9

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions