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

Order delivery_address null fields #636

Open
remear opened this issue May 28, 2014 · 0 comments
Open

Order delivery_address null fields #636

remear opened this issue May 28, 2014 · 0 comments
Assignees
Labels

Comments

@remear
Copy link
Contributor

remear commented May 28, 2014

Order delivery_address fields are always null.

curl https://api.balancedpayments.com/customers \
     -H "Accept: application/vnd.api+json;revision=1.1" \
     -u ak-test-2BCjYRbHBrAzdEhef6ZqWkAjHW47E2q3X: \
     -d "name=Henry Ford" \
     -d "dob_year=1963" \
     -d "dob_month=7" \
     -d "address[postal_code]=48120"

curl https://api.balancedpayments.com/customers/CU5vaPZ2FtHS8EsMjoi1ozBP/orders \
     -H "Accept: application/vnd.api+json;revision=1.1" \
     -u ak-test-2BCjYRbHBrAzdEhef6ZqWkAjHW47E2q3X: \
     -d "description=Order #12341234" \
     -d "delivery_address[line1]=1234 PL SE" \
     -d "delivery_address[city]=Seattle" \
     -d "delivery_address[postal_code]=98402"

Response:

{
  "orders": [
    {
      "delivery_address": {
        "city": null,
        "line2": null,
        "line1": null,
        "state": null,
        "postal_code": null,
        "country_code": null
      },
      "description": "Order #12341234",
      "links": {
        "merchant": "CU5vaPZ2FtHS8EsMjoi1ozBP"
      },
      "href": "/orders/OR5Qbq16xjGHAN00I6Meffxz",
      "created_at": "2014-05-28T00:48:14.079771Z",
      "updated_at": "2014-05-28T00:48:14.079773Z",
      "id": "OR5Qbq16xjGHAN00I6Meffxz",
      "currency": "USD",
      "amount": 0,
      "meta": {},
      "amount_escrowed": 0
    }
  ],
  "links": {
    "orders.merchant": "/customers/{orders.merchant}",
    "orders.credits": "/orders/{orders.id}/credits",
    "orders.reversals": "/orders/{orders.id}/reversals",
    "orders.refunds": "/orders/{orders.id}/refunds",
    "orders.debits": "/orders/{orders.id}/debits",
    "orders.buyers": "/orders/{orders.id}/buyers"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants