Support

Home Forums Event Espresso Premium Registration from REST API

Registration from REST API

Posted: November 24, 2021 at 2:31 am


Robby Gunawan

November 24, 2021 at 2:31 am

HI, how do I register a attendee from REST API at specific events?
I tried wp-json/ee/v4.8.29/registrations?EVT_ID=502&ATT_ID=116&TKT_ID=504&TXN_ID=52&REG_date=2021-11-19T06:54:40
and got
{
"REG_ID": 197,
"EVT_ID": 0,
"ATT_ID": 0,
"TXN_ID": 0,
"TKT_ID": 0,
"STS_ID": "RIC",
"REG_date": "2021-11-24T16:20:48",
"REG_final_price": {
"raw": 0,
"pretty": "Rp0.00 <span class=\"currency-code\">(IDR)</span>"
},
"REG_paid": {
"raw": 0,
"pretty": "Rp0.00 <span class=\"currency-code\">(IDR)</span>"
},
"REG_session": "",
"REG_code": "",
"REG_url_link": "",
"REG_count": 1,
"REG_group_size": 1,
"REG_att_is_going": false,
"REG_deleted": false,
"REG_date_gmt": "2021-11-24T09:20:48",

Status Incomplete (RIC) alson ATT_ID, EVT_ID is 0


Tony

  • Support Staff

November 26, 2021 at 6:40 am

Hi there,

The above is a GET request, which would be used to read data rather than write.

Have you had a look over the docs for writing using the REST API?

See these: https://github.com/eventespresso/event-espresso-core/tree/master/docs/C–REST-API

With a specific entry for writing here: https://github.com/eventespresso/event-espresso-core/blob/master/docs/C–REST-API/ee4-rest-api-writing-data.md


Robby Gunawan

November 26, 2021 at 7:18 am

Hi Tony,

Got it after I read again here https://github.com/eventespresso/event-espresso-core/blob/master/docs/C–REST-API/ee4-rest-api-writing-data.md

Thanks

The support post ‘Registration from REST 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