Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Web Api to delete Customers Specific Address

    General Discussion
    2
    2
    163
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tabish152 last edited by

      Is there a web api to delete a customer's specific address. I have checked the documentation we can delete using graphql but is there a way to delete using web api?

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @tabish152,

        Yes, you can delete it.You just need to pass the address id with DELETE method to this route,

        Route::delete('addresses/{id}', 'ResourceController@destroy')->defaults('_config', [
                    'repository' => 'Webkul\Customer\Repositories\CustomerAddressRepository',
                    'resource' => 'Webkul\API\Http\Resources\Customer\CustomerAddress',
                    'authorization_required' => true
                ]);
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post