Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue updating and creating StickyNotes #9

Open
SelectSystemsInternational opened this issue May 16, 2023 · 0 comments
Open

Issue updating and creating StickyNotes #9

SelectSystemsInternational opened this issue May 16, 2023 · 0 comments

Comments

@SelectSystemsInternational

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant