Issue
I am trying to place fields using the API but keep getting code 500 when calling the update endpoint.
Excerpt of JSON:
{
"type": "name",
"order": 1,
"value": ”Fredrik Karlsson",
"is_obligatory": true,
"should_be_filled_by_sender": true,
"placements": [
{
"xrel": 0.58105266,
"yrel": 0.73,
"wrel": 0.2736842,
"hrel": 0.07589286,
"fsrel": 0.0168,
"page": 1,
"tip": "right",
"anchors": []
},
]
},
"type": "name",
"order": 1,
"value": ”Fredrik Karlsson",
"is_obligatory": true,
"should_be_filled_by_sender": true,
"placements": [
{
"xrel": 0.58105266,
"yrel": 0.73,
"wrel": 0.2736842,
"hrel": 0.07589286,
"fsrel": 0.0168,
"page": 2,
"tip": "right",
"anchors": []
}
]
}
Solution
Standard fields may only be referenced once per party. To place the same field several times for a party, use several instances of coordinates and dimensions in the same “placements” array.
Example:
{
"type": "name",
"order": 1,
"value": ”Fredrik Karlsson",
"is_obligatory": true,
"should_be_filled_by_sender": true,
"placements": [
{
"xrel": 0.58105266,
"yrel": 0.73,
"wrel": 0.2736842,
"hrel": 0.07589286,
"fsrel": 0.0168,
"page": 1,
"tip": "right",
"anchors": []
},
{
"xrel": 0.58105266,
"yrel": 0.73,
"wrel": 0.2736842,
"hrel": 0.07589286,
"fsrel": 0.0168,
"page": 2,
"tip": "right",
"anchors": []
}
]
}
Comments
0 comments
Please sign in to leave a comment.