I’m not a WP API expert.
It sounds like you want to store more information than the API supports, so you will need to add an endpoint – https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/
If you are doing payment processing, I assume you are using a service or plugin + service for that, so you may want your custom endpoints to interact with those DB structures that the plugin creates. (maybe you are using https://wordpress.org/plugins/stripe/ for instance?)
In addition to that, you probably want to update something else on your site, like what they purchased, or what abilities they have now that they have purchased it. So that might mean more endpoints and more DB structures.
—
WordPress does not have API endpoints that save/load data (like parse or something would.) So you would need to create that by hand.
Related Posts:
- WP REST API Require Password for GET Endpoint
- Getting user meta data from WP REST API
- Increase per_page limit in REST API
- How to use the WP REST API for new user registration (sign up form)?
- Can I authenticate with both WooCommerce consumer key and JWT?
- Can’t send emails through REST API
- WP REST API: check if user is logged in
- How to login to WordPress site using basic authentication HTTP headers?
- Unable to get the info of the user which doesn’t have created any post via REST API
- WP Rest API convert permalink to post ID for fetch
- Can’t GET draft posts via REST API from headless frontend
- How to update custom meta fields with rest api?
- Formating content rendered from wordpress REST API as JSON and not HTML
- Rest API and Custom Fields
- How to filter users on custom meta fields in WP JSON v2?
- How can I return an image from a custom REST API endpoint?
- WordPress REST API, Expired Nonce from Cache results in 403 forbidden
- WP Rest API: Get User by Email
- Gutenberg Custom Block Getting All Posts
- Check Password Strength using WordPress API
- Send request to WordPress REST API
- Request to REST endpoint works fine in browser and curl, but fails from WP_REST_Request
- Can we assume that /wp-json/ will always be /wp-json/ under any circumstances when creating custom REST routes?
- WP REST api.wordpress.org discovery
- Rest API in integration tests – filtering by slug not working?
- Passing a borrowed nonce through Postman fails
- How do you format the set_body option for WP_Rest_Request?
- Get all PDF files from page with WordPress API
- current_user_can(‘administrator’) returns false when I’m logged in
- How to add / embed an author into REST data from a custom post type?
- featured image not found in json from wp rest api
- How to enable the view of revisions of post in WordPress Api for custom post type?
- Problem on creating custom endpoints for REST
- New user signup via REST API
- Ho to style post content for WordPress API?
- WordPress custom endpoint returning blank response
- How to force JWT auth for default GET endpoints of WordPress rest api?
- WP REST API can’t set post tags
- WP API post__not_in is not working
- WP_REST_Response() doesn’t seem to return the expected object
- Setting ?context=edit results in rest_forbidden_context, even for an Administrator user
- WP Rest Api- Update callback (POST request) to existing database table through the rest api
- Save default options as an array of options and display in REST API
- Sidebar endpoint using WordPress API
- Get custom posts in gutenberg block
- WordPress REST Api get posts by ID
- [Zapier + WP Webhooks Pro]: Custom Fields get cut off at first comma or semicolon
- Which route in the WP REST API do I access data passed into register_setting()?
- How to use Python to create a Post in WordPress?
- Getting 401 (access denied) when trying to use the REST API
- Send a get request to wordpress
- Replace content via rest api only?
- WP rest api endpoint protection using jwt token
- WP Rest API – Change response status code for failed validation request
- Unable to create a Rest end-point
- WordPress REST API not working on localhost
- /wp-json/wp/v2/posts/?app=3 is returning random scripts tags
- User following system via REST API
- REST API – Allow /users endpoint depending on a custom capability
- 403 Error When Fetching Data from the Settings Rest Route for Non-Admin Users
- REST API post times out when content is too large
- Can I overwrite default WordPress Json API For no more pages text
- Secure WordPress API, how?
- Create User with Profile and Cover Images using REST API
- how to create JSON array [] for REST response?
- Media gallery images url instead of ID on WP API
- What’s the right way to validate JSON data coming from an AJAX POST request?
- Getting 401 unauthenticated error in WP Rest API revisions
- Remove unwanted fields from WP API response
- WordPress and React how to integrate? [closed]
- How to receive JSON payload from a digital device
- WordPress Custom Rest Api – How to get Image Url?
- WordPress API “code”:”rest_no_route” with Custom Route
- Users REST API not working?
- WordPress Update Role using API Cross site
- Rest API. Post content
- Error rest_post_invalid_page_number trying to call Rest API
- Is it possible to combine two rest endpoints in the url?
- use WordPress Rest API to build a web application
- REST Request Post including meta/custom fields
- WordPress api returns distinct data
- Redefine REST API variables
- How to use WordPress rest API with Angularjs 4 [closed]
- Retrieve posts by page in wp rest api
- Where is the HTML content for my post in the API
- How to change WordPress api v2
- REST API Integration without user account?
- WP_REST_Request::get_json_params() Parsing null as Zero
- WP REST API with Basic Auth at target website
- API request forbidden when requesting from same domain
- Custom WP Rest API Endpoints from JSON Schema
- Is my WordPress site handing out sensitive information/misconfigured?
- Delete row from table using custom endpoint via API
- Fetch post by author slug
- Cant POST with REST API on WordPress
- How can I set the default ‘orderby’ and ‘order’ parameters for a REST API call?
- get the current logged in user using WooCommerce API in React App [closed]
- What filtering is available for backbone.js?
- Woocommerce API for calling products by Category ID
- wordpress rest api authentication failed