x

Invoices API

Hey,

 

Im currently putting together a Square App to manage a hackerspace.

 

Members are added as Customers.

Groups will be used for permissions to open doors and turn on equiptment.

Reference ID will be used to store the RFID code.

 

The idea is that a member will touch their RFID tag via an arduino, it will communicate via MQTT to a Raspberry Pi which has a database of reference_id (RFID number) and customer_id. It finds the customer_id it needs and then sends the following API request

 

https://connect.squareup.com/v2/customers/<customer_id>

 

This returns the groups that the customer is a member.

 

The RPi will check to see if the customer is part of the group and return comand to either open the door or return a error.

 

The only issue i have with this process is that it seems like im unable to see if a customer is owing money on a reoccuring invoice.

 

Is there an API endpoint anything like the following

 

https://connect.squareup.com/v2/invoices/<customer_id>

 

 

I plan to use a Square to process transactions for our laser cutter and 3D printers too.

 

RFID scan, permissions are checked as above, start time is stored, RFID scan, machine is powered off, duration is calculated, hourly dollar amount is multiplied by the duration, reference_id (RFID) is matched to a customer_id, that customer_id is then used with the dollar amount to bill the member via their stored card.

 

Thanks,

Nathan

1,251 Views
Message 1 of 2
Report
1 Best Answer
Admin

Best Answer

EDIT: We now have a Developer Forum!

 

Hi @nkings10,

 

Thanks for reaching out and welcome to the community!

At the moment we're unfortunately not able to provide technical support for API, however we encourage you to get in touch with the Square developer community over at Stack Overflow https://stackoverflow.com/questions/tagged/square-connect. It's presently the best resource for help from our developer community.

 

All the best!

Seamus
Square, Australia
Sign in and click Mark as Best Answer if my reply answers your question.

View Best Answer >

1,246 Views
Message 2 of 2
Report
1 REPLY 1
Admin

Best Answer

EDIT: We now have a Developer Forum!

 

Hi @nkings10,

 

Thanks for reaching out and welcome to the community!

At the moment we're unfortunately not able to provide technical support for API, however we encourage you to get in touch with the Square developer community over at Stack Overflow https://stackoverflow.com/questions/tagged/square-connect. It's presently the best resource for help from our developer community.

 

All the best!

Seamus
Square, Australia
Sign in and click Mark as Best Answer if my reply answers your question.
1,247 Views
Message 2 of 2
Report