Skip to main content

Mapping document code

By default, the document code is set to be equal to Saleor order id.

If you want to override it, you can do so by providing a value for the privateMetadata field avataxDocumentCode.

mutation UpdatePrivateMetadata {
updatePrivateMetadata(
id: "order_id"
input: {
key: "avataxDocumentCode"
value: "97adf07a-3750-11ee-be56-0242ac120002"
}
) {
item {
metadata {
key
value
}
}
}
}
caution

Due to Avatax API restrictions, the document code will be sliced to be under 20 characters.


Was this page helpful?