Hi there, is it possible to set a hold until date via api?
Thanks,
Claudia
Hi @Csraspini
Yes, that setting is available on the order level. For instance, if you were updating the order:
mutation {
order_update(
data: {
order_id: "[order id here]"
hold_until_date: "[hold until date here]"
}
) {
request_id
complexity
order {
hold_until_date
}
}
}
The date is a string
ISODateTime
A DateTime field type that understand ISO 8601 strings, besides datetime objects. It supports strings with and without times, as well as using T or space as delimiter
Ex.
- YYYY-mm-dd
- YYYY-mm-dd HH:MM:SS
- YYYY-mm-ddTHH:MM:SS
thank you! that’s just what i needed!
1 Like
Sorry Theresa, one more question about this:
what if I want to unset it, for some reason?
Hi! I cannot find a way to set it back to empty, because it needs to be a specific date format to avoid errors. Could you not just set it to a date that has passed?
1 Like