Quantcast
Viewing all articles
Browse latest Browse all 11091

Nicholas Sallis commented on API bug?

ok, so I no longer get that error, but the address is still not getting filled out. 

here is the current code: 

{"customer":{
      "accepts_marketing":true,
      "created_at":"2015-03-27T08:34:22-04:00",
      "email":"bing@email.com",
      "first_name":"Brenda",
      "id":371908881,
      "last_name":"Bing",
      "last_order_id":null,
      "multipass_identifier":null,
      "note":"",
      "orders_count":0,
      "state":"disabled",
      "total_spent":"0.00",
      "updated_at":"2015-03-27T08:34:22-04:00",
      "verified_email":true,
      "tags":"",
      "last_order_name":null,
      "default_address":[{"address1":"65 parton ave.",
      "address2":"",
      "city":"boontown",
      "company":"bingify.com",
      "country":"United States",
      "first_name":"Brenda",
      "id":445415685,
      "last_name":"Bing",
      "phone":"1234567890",
      "province":"Alabama",
      "zip":"13564",
      "name":"Brenda Bing",
      "province_code":"AL",
      "country_code":"US",
      "country_name":"United States",
      "default":true,
      "addresses": [
       {
        "address1":"65 parton ave.",
        "address2":"",
        "city":"boontown",
        "company":"bingify.com",
        "country":"United States",
        "first_name":"Brenda",
        "id":445415685,
        "last_name":"Bing",
        "phone":"1234567890",
        "province":"Alabama",
        "zip":"13564",
        "name":"Brenda Bing",
        "province_code":"AL",
        "country_code":"US",
        "country_name":"United States",
        "default":true
      },
      ]}]
        }

and here is the server response: 

{"customer":{"accepts_marketing":true,"created_at":"2015-03-30T09:31:14-04:00",
"email":"bing@email.com","first_name":"Brenda","id":372779085,"last_name":"Bing",
"last_order_id":null,"multipass_identifier":"","note":"","orders_count":0,
"state":"disabled","total_spent":"0.00","updated_at":"2015-03-30T09:31:14-04:00",
"verified_email":true,"tags":"","last_order_name":null,
"addresses":[]}}

note how the "addresses" array is blank even though it is clearly filled in the request


Viewing all articles
Browse latest Browse all 11091

Trending Articles