Cart API or CartJS API

Dazler
Mega Sage

Hi,

I have created a transform script that creates a request using Cart API.  I have that working except it is not adding the Requested For user, so I looked to find more details on Cart API but I can't find anything.

I did find CartJS API, is this the new way that we should use to create a request from within a transform script?

If not, can anyone tell me how to add requested for using Cart API?

 

5 REPLIES 5

DrewW
Mega Sage
Mega Sage

If memory serves you have to use the new CartJS api if you would like any "Requested for" var types to work properly.

 

My request is global and not scoped.  Does that make a difference?

Not that I remember.  I just remember having the same issue and support told me to use the new CartJS api and that they would probably not be updating the old one.

 

Thank you!