Re: Mark Order as Paid using API

Solved

Mark Order as Paid using API

fusedlim
Shopify Partner
13 0 2

Can the order be marked as paid using  REST API?

The store will have a bank transfer payment. We will check if the payment is complete using their API and mark the shopify Order as Paid.


Accepted Solution (1)

Liam
Community Manager
3108 341 879

This is an accepted solution.

Hi Fusedlim,

 

This might be easier to achieve using the GraphQL API with the orderMarkAsPaid mutation. You could test this out using the GraphiQL app.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 3 (3)

Liam
Community Manager
3108 341 879

This is an accepted solution.

Hi Fusedlim,

 

This might be easier to achieve using the GraphQL API with the orderMarkAsPaid mutation. You could test this out using the GraphiQL app.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

fusedlim
Shopify Partner
13 0 2

Thank you!

fusedlim
Shopify Partner
13 0 2

Hi @Liam 
Is there a way to partially paid the order
Here is the scenario
- check if it is paid the exact amount -> mark as paid
- if not, mark as partial paid