Discussions
Is there a way to insert/update badge lines using RESTAPI into Order_badge?
Hi, I would like to know if API does a POST request to insert/update badge lines into Order_badge table.
Thanks
Looking to insert a line to order badge on existing event order or updating an existing badge line.
Hi Mythili,
There should be a one-to-one correlation in the Order_Badge table per event registration. Creating the event registration is the only way to insert the badge information.
Updating badge information is a two step process. All badge information originates from an address associated with the registrant party. So in order to update the badge, you must first update or insert a new Address for the registrant party via a PUT request on the Party endpoint. Then you need to submit a PUT request for the EventRegistration.
If you simply want to re-sync the badge with address updates on the already selected address, then you can put the EventRegistration with no change.
But if you want to update the event registration to pull badge information from a new or updated address, you can specify the address information in this part of the EventRegistration and submit a PUT request.
"RegistrantAddress": {
"$type": "Asi.Soa.Membership.DataContracts.PartyAddressData, Asi.Contracts",
"PartyAddressId": "23095-13744",
"PartyId": "23095",
"FullAddressId": "13744"
},
As you can probably see, the PartyAddressId can be built by just combining the PartyId and the FullAddressId (the unique ID for the particular address) with a dash in between.
I hope this helps,
Courtney
ο»Ώ