Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shushkin's avatar

Stripe api

Does anybody know how to get invoices of customers by id in one request

0 likes
6 replies
munazzil's avatar

Use as like below.

    Pubilc function getcustomer(Reques $request,$id)
        
       {

        }
Dullme's avatar

If it use "auth:api" middleware you can write it like this get userinfo

Pubilc function getcustomer()
{
    $user = Auth()->user();
}

realrandyallen's avatar
Level 44

@SHUSHKIN - I don’t think you can, you could just get all Invoices then loop over the results and remove any invoices that are not in an array of customer IDs

Please or to participate in this conversation.