Support

Home Forums Event Espresso Premium Transaction Post API

Transaction Post API

Posted: July 5, 2018 at 3:56 am


gint

July 5, 2018 at 3:56 am

HI i am trying to simulate everything that happens when a registration is created normally using the registration checkout form on the frontend of a site.

I realize i have to post the transaction before the registration post.

The post is the following

https://test.nbedu.org/wp-json/ee/v4.8.36/transactions?TXN_ID=2&TXN_timestamp=2018-07-05 10:14:04&TXN_total=0&TXN_paid=0&STS_ID=TCM

But it comes as failed Transaction because there no Transaction items
Is there any way to pass the Transaction Items ?


Josh

  • Support Staff

July 5, 2018 at 3:17 pm

You can send line_items related to a specific transaction in a separate API request. The REST API discovery endpoint (https://test.nbedu.org/wp-json/ on your site) shows the allowed line items arguments, just after the line that starts with "/ee/v4.8.36/line_items": {

The support post ‘Transaction Post API’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso