Communauté
Customfields introuvable
7 days ago by Jules
Bonjour j'ai un problème pour récupérer mes customfields qui n'apparaissent pas via le type de requête suivante
https://api.helloasso.com/v5/organizations/{organizationSlug}/forms/{formType}/{formSlug}/orders
{
"payer": {
"email": "xxx",
"country": "FRA",
"firstName": "xxx",
"lastName": "xxx"
},
"items": [
{
"payments": [
{
"id": 72347245,
"shareAmount": 100
}
],
"name": "Test",
"user": {
"firstName": "xxx",
"lastName": "xxxn"
},
"priceCategory": "Pwyw",
"minAmount": 100,
"tierId": xxx,
"id": 156889008,
"amount": 100,
"type": "Membership",
"initialAmount": 0,
"state": "Processed"
}
],
"payments": [
{
"items": [
{
"id": 156889008,
"shareAmount": 100,
"shareItemAmount": 100
}
],
"cashOutState": "Transfered",
"id": xxx,
"amount": 100,
"date": "2025-11-06T15:01:54.0843996+01:00",
"paymentMeans": "Card",
"installmentNumber": 1,
"state": "Refunding",
"meta": {
"createdAt": "2025-11-06T15:01:18.619446+01:00",
"updatedAt": "2025-11-06T15:38:26.12+01:00"
},
"refundOperations": [
{
"id": 633302,
"amount": 100,
"amountTip": 0,
"status": "Processing",
"meta": {
"createdAt": "2025-11-06T15:38:24.7155787+01:00",
"updatedAt": "2025-11-06T15:38:24.7401436+01:00",
"authorEmail": "xxx"
}
}
]
}
],
"amount": {
"total": 100,
"vat": 0,
"discount": 0
},
"id": 156889008,
"date": "2025-11-06T15:01:54.0843996+01:00",
"formSlug": "test-xxx",
"formType": "Membership",
"organizationName": "xxx",
"organizationSlug": "xxx",
"organizationType": "Association1901Rig",
"organizationIsUnderColucheLaw": false,
"meta": {
"createdAt": "2025-11-06T15:01:18.619446+01:00",
"updatedAt": "2025-11-06T15:01:54.201672+01:00"
},
"isAnonymous": false,
"isAmountHidden": false
}
Par contre, via le type de requête suivante https://api.helloasso.com/v5/orders/{orderId}, le customfield apparaît bien
{
"payer": {
"email": "xxx",
"country": "FRA",
"firstName": "xxx",
"lastName": "xxx"
},
"items": [
{
"payments": [
{
"id": 72347245,
"shareAmount": 100
}
],
"name": "Test",
"user": {
"firstName": "Jules",
"lastName": "Baraton"
},
"priceCategory": "Pwyw",
"minAmount": 100,
"customFields": [
{
"id": 6662927,
"name": "Id élève",
"type": "TextInput",
"answer": "BJ-2025-2026-001"
}
],
"tierId": xxx,
"id": 156889008,
"amount": 100,
"type": "Membership",
"initialAmount": 0,
"state": "Processed"
}
],
"payments": [
{
"items": [
{
"id": 156889008,
"shareAmount": 100,
"shareItemAmount": 100
}
],
"cashOutState": "Transfered",
"id": xxx,
"amount": 100,
"date": "2025-11-06T15:01:54.0843996+01:00",
"paymentMeans": "Card",
"installmentNumber": 1,
"state": "Refunding",
"meta": {
"createdAt": "2025-11-06T15:01:18.619446+01:00",
"updatedAt": "2025-11-06T15:38:26.12+01:00"
},
"refundOperations": [
{
"id": 633302,
"amount": 100,
"amountTip": 0,
"status": "Processing",
"meta": {
"createdAt": "2025-11-06T15:38:24.7155787+01:00",
"updatedAt": "2025-11-06T15:38:24.7401436+01:00",
"authorEmail": "xxx"
}
}
]
}
],
"amount": {
"total": 100,
"vat": 0,
"discount": 0
},
"id": 156889008,
"date": "2025-11-06T15:01:54.0843996+01:00",
"formSlug": "test-xxx",
"formType": "Membership",
"organizationName": "xxx",
"organizationSlug": "xxx",
"organizationType": "Association1901Rig",
"organizationIsUnderColucheLaw": false,
"meta": {
"createdAt": "2025-11-06T15:01:18.619446+01:00",
"updatedAt": "2025-11-06T15:01:54.201672+01:00"
},
"isAnonymous": false,
"isAmountHidden": false
}
La valeur que je souhaite récupérer est le answer du customFields "BJ-2025-2026-001"
Je travaille avec googlesheet et google app script mais même avec le requêteur url de votre doc API j'ai le même problème.
Cordialement
