Body
Required
-
customFieldId
integer(int32) Required Custom field
object
object | null | array | boolean | integer | number | string Object
-
purchaseId
integer(int32) Required Purchase
-
value
string | null Value
-
values
array[string] | null Values
POST
/custom-field-purchases.json
curl \
--request POST 'http://api.example.com/v1/custom-field-purchases.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"customFieldId":42,"object":{},"purchaseId":42,"value":"string","values":["string"]}'
Request examples
{
"customFieldId": 42,
"object": {},
"purchaseId": 42,
"value": "string",
"values": [
"string"
]
}
Response examples (200)
{
"createdAt": "2025-05-04T09:42:00Z",
"customFieldId": 42,
"id": 42,
"object": {},
"purchaseId": 42,
"updatedAt": "2025-05-04T09:42:00Z",
"value": "string",
"values": [
"string"
]
}