Metafields
Real ID automatically syncs the status of your ID checks to BigCommerce orders and customers using metafields. It writes two metafields under the realid namespace:
realid.check_id- the specific ID check associated with this customer or orderrealid.verification_status- the current status of the ID check
These metafields are updated automatically as customers progress through their ID verification.
realid.verification_status Metafield
This metafield is present on both the order and the customer. It reflects the current state of the ID check and is kept in sync during the customer's ID verification lifecycle.
Here are all of the possible values:
pending- the ID check has been created but the customer has not opened it yetin_progress- the customer has opened the ID check and is actively verifyingin_review- the ID check has warnings (such as an expired ID) that require manual approvalfailed- the ID check failed conclusivelyverified- the customer successfully completed their ID checkmanually_approved- a staff member manually approved the ID checkmanually_rejected- a staff member manually rejected the ID check
These metafields will only be present on orders or customers that have an associated ID check. If you have trigger rules configured that only require ID verification under specific conditions, orders that don't match those conditions won't have these metafields.
realid.check_id Metafield
This metafield is present on both the order and the customer. It contains the unique token that references the customer's most recent ID check.
You can use this token as the ID parameter for retrieving the details of the ID check with the Real ID REST API.
Manually creating new ID checks will overwrite the realid.check_id metafield. If the customer is already verified then a new ID check will replace the current value.
Viewing Metafields
You can view the metafields for an order or customer through the BigCommerce API. Use the BigCommerce Metafields API to retrieve them programmatically.
Order metafields
GET /stores/{store_hash}/v3/orders/{order_id}/metafields
Customer metafields
GET /stores/{store_hash}/v3/customers/{customer_id}/metafields
Example response
{
"data": [
{
"namespace": "realid",
"key": "verification_status",
"value": "verified",
"permission_set": "read"
},
{
"namespace": "realid",
"key": "check_id",
"value": "abc123def456",
"permission_set": "read"
}
]
}
How metafields are synchronized
Real ID sends updates to BigCommerce as customers progress through their ID check. Metafields are updated at each stage:
- Check created - metafields are set to
pending - Customer opens the check - status updates to
in_progress - Customer submits photos - status remains
in_progress - Verification completes - status updates to
verifiedorfailed - Manual override - status updates to
manually_approvedormanually_rejected
These updates are processed asynchronously, so there may be a brief delay between the customer's action and the metafield update appearing in BigCommerce.