# Custom API

![](/files/-LmJPsYNhP-o2jQOG80W)

Replace init code in `App.js`

![](/files/-LmJH42p_07LDBKf4Cch)

&#x20;Replace get categories list in `CategoryReducer.js`&#x20;

![](/files/-LmJI-Gr2QxOjC9o2vjq)

Replace get products list in `ProductReducer.js`

![](/files/-LmJIYGrkeVuwAX_SwpZ)

Replace create order in `CheckoutRedux.js`

![](/files/-LmJIrcInxMkd4oKujNg)

Replace get my order list in `MyOrderReducer.js`&#x20;

![](/files/-LmJJ9KIt17Dq_QQQL18)

Promoted list `PopularReducer.js` and Popular list `PopularReducer.js` are same.&#x20;

![](/files/-LmJJnjZFAsk-f4EO4_h)

![](/files/-LmJJqFmX_i3mv4FM7YY)

Please note that you shoud return customer object on resister `RegisterScreen.js` and login `LoginScreen.js`

![](/files/-LmJKcDQ7Jfn9YVqxJox)

<div align="left"><img src="/files/-LmJKf5GxSM8A6CKci_1" alt=""></div>

User managment without WordPress requred update `WPUserAPI.js` . Please replace these methods with your REST API calls:

![](/files/-LmJM4CsdivLsvTDiEuV)

Done!

![](/files/-LmJOK6H55ir69RVU-Vc)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://viktor-derk.gitbook.io/woocommerce_react_native/custom-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
