#andres-property-expand

1 messages · Page 1 of 1 (latest)

open beacon
#

Hey @lapis dove what do you call "the POST JSON response"? Do you mean webhooks?

lapis dove
#

No, when I send request to the API

#

There are 4 call types in rest

#

Mainly

#

Get, post put delete

open beacon
#

not sure what you call "4 call types"

lapis dove
#

For example, I'm setting a customer portal configuration object

#

By default the response does not include the prices array

#

I must request a get

#

And expand that attribute to have it included

open beacon
#

no

lapis dove
#

Is there any way to have this in the first API response? This to avoid a second API call requesting the info

open beacon
#

you can expand in the POST

#

expand works on all calls

lapis dove
#

How?

open beacon
#

the same way you do on GET

#

expand is a parameter

lapis dove
#

Ohh i was unable to find that in the expand doc for POST

#

Only for retrieve/GET

#

Could you please give me an example?

open beacon
#

you really just pass expand the way you pass any parameters, it works the same way

#

if you share your code I can show you after that

lapis dove
#

OK gimme a sec I try and in case it fails will ping here

open beacon
#

sounds good!

lapis dove
#

It worked @open beacon ty so much buddy 🙂