Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452 stars 199 forks source link

Status Code: - 404 #958

Closed AnmolMalpani closed 4 years ago

AnmolMalpani commented 5 years ago

1 - When i am doing login with the credentials, what i got when i created through the shop website, then i am getting a error which says Graph.QueryError: http(statusCode: 404).

2- When i am creating a user then getting this mutation object

mutation{customerCreate(input:{firstName:" Test2",lastName:"Test1",email:"aa@aa.com",password:"123456789",acceptsMarketing:true}){customer{id,email,firstName,lastName},userErrors{field,message}}}

But when i am passing this mutation for creating the customer access token then still i found status code: - 404.

Please help to solve out this problem because i have tried all possible ways.

I am using this dict in header.

▿ 0 : 2 elements

Thanks in advance.

tristan-potter commented 4 years ago

customerCreate will create a customer but not log them in. If customerCreate is successful you must pass the username (email) and password to customerAccessTokenCreate to log the customer in.

You shouldn't need to pass a password in the header.

I'm a little unclear on where you're seeing a 404, if that doesn't help feel free to re-open this issue.

tristan-potter commented 4 years ago

See Creating a customer for more information.