Patch request to Shopify db from custom server

Hi ,

I want to build a custom server and intergrate with shopify site. With that server I need to update a shopify db table. Actually custom server is for handling payments. Once success I want to upate shopify transactions table. Is there an api to do this?