#k3davis-searchapi-dotnet
1 messages · Page 1 of 1 (latest)
hello! mind sharing request IDs for each of those requests?
the one made manually vs the one via the SDK, I can have a look
oh sure, let me reproduce them and send them here, one moment
sure
the one that returns no result is req_YqqV9w7LaKwsuZ. on the manual request the object I get back doesn't seem to include that information? this is the raw response
{
"object": "search_result",
"data": [
{
"id": "cus_KwcQoFhC1pCZIO",
"object": "customer",
"address": null,
"balance": 0,
"created": 1641903027,
"currency": null,
"default_source": "card_1KGjDGFnSqw89al6rV8wCNKD",
"delinquent": false,
"description": null,
"discount": null,
"email": "kevin.davis@moody.edu",
"invoice_prefix": "34804769",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null
},
"livemode": false,
"metadata": {
"cs_const_id": "2183198"
},
"name": "Kevin Davis",
"next_invoice_sequence": 1,
"phone": null,
"preferred_locales": [], "shipping": null, "tax_exempt": "none", "test_clock": null }],
"has_more": false,
"url": "/v1/search/customers"
}
note the manual request is still using beta tag in the api version
i tried it without the beta tag and had the same result
sorry, i forgot the request id was in the headers. the one that works: req_6e4eYF4UEQvamj
looking
mind trying something out - in your manual request, can you try making the request to the /v1/customers/search endpoint instead?
right now you're hitting the /v1/search/customers endpoint which maybe got changed during the beta phase to the former? (not really sure)
sure i will try
that still works, on the manual request: req_xeeLcDq5qOEa1c
something must be different about that than the SDK generated request req_YqqV9w7LaKwsuZ
ahhh
typo
metadata['cs_const_id']:'2183198'
vs
metadata['cs_cust_id']:'2183198'
your Dotnet request has the typo, which is why it doesn't work
cs_cust_id vs cs_const_id is the issue
oh gosh 😊 i'm so sorry to have wasted your time
cs_const_id is the right one