Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

REST API bugs #22

Open
dlambApLogic opened this issue Feb 23, 2019 · 0 comments
Open

REST API bugs #22

dlambApLogic opened this issue Feb 23, 2019 · 0 comments
Assignees

Comments

@dlambApLogic
Copy link
Collaborator

I've just noticed a bug in the REST API itself.
When PUTing an order update to https://api.maropost.com/accounts/1000/orders/find.json?where[id]={NNNN}&auth_token={XXXX}, I attempt to include order_date and coupon_code in the payload body, per the api documentation.
When I pull the order again via GET, the order_status and order_items are properly updated, but the order_date and coupon_code are not. My PUT payload body is below:

{
    "order": {
        "order_date": "2018-01-01T15:00:00-07:00",
        "order_status": "Shipped",
        "campaign_id": null,
        "coupon_code": "ccUpdated",
        "order_items": [
            {
                "item_id": "7",
                "price": "5",
                "quantity": "7",
                "description": "book",
                "adcode": "adc1",
                "category": "asdf"
            },
            {
                "item_id": "9",
                "price": "1350",
                "quantity": "1",
                "description": "movie",
                "adcode": "adc1",
                "category": "poiu"
            }
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants