Skip to content

[WIP] Update #5

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[WIP] Update #5

wants to merge 3 commits into from

Conversation

gjaldon
Copy link
Contributor

@gjaldon gjaldon commented Nov 8, 2016

No description provided.

@gjaldon
Copy link
Contributor Author

gjaldon commented Nov 8, 2016

I'm unable to make the following requests work:

Voodoo.order.shipping_rates/1
Voodoo.order.create/1
Voodoo.order.confirm/1

I tried doing the request using Curl with the example data at https://github.com/oortlieb/voodoo-api/blob/master/README.md#post-ordershipping (except for model id which I used from a model I uploaded with Voodoo.model.id). When shipping_address field is missing in the request body, I get an error from the API about the missing shipping address field. When all the required fields are present, the error I get is only "Internal Server Error" which gives me no clue as to what's causing the error.

An example of one of the requests I tried:
POST https://staging-api.voodoomfg.com/api/1/order/shipping

  • Headers:
Content-Type: application/json
Key: a4f2363e88058775c029ba239a8a3165ccf39f27d74f4e8c3a4db776386e6618
  • Request body:
{
    "models": [{"material_id": 7, "model_id": 4414, "quantity": 1, "units": "cm"}],
    "shipping_address": {
        "email": "[email protected]",
        "city": "Azusa",
        "name": "Theodore Lowe",
        "zip": "39531",
        "street1": "Ap #867-859 Sit Rd.",
        "state": "New York",
        "country": "USA"
    }
}

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

Successfully merging this pull request may close these issues.

1 participant