#jwerre_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1222292064834818078
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! Can you share the ID of the customer you're expecting to be returned in the metadata search call?
well... it's a unit test so I create the customer then delete it at the end the test.
for example:
{
id: 'cus_PoKLNV4jCZ0vVP',
object: 'customer',
address: {
city: 'Tallahassee',
country: 'US',
line1: '1234 Oak St.',
line2: null,
postal_code: '12345',
state: 'Florida'
},
balance: 0,
created: 1711489064,
currency: null,
default_source: null,
delinquent: false,
description: null,
discount: null,
email: '1711489064914@surveyplanet.com',
invoice_prefix: 'C071FFE7',
invoice_settings: {
custom_fields: null,
default_payment_method: null,
footer: null,
rendering_options: null
},
livemode: false,
metadata: {
test: 'testing...',
'user-email': 'lu8wed84@surveyplanet.com',
'user-id': '66034027de1e687316404c88'
},
name: 'Acme Inc.',
next_invoice_sequence: 1,
phone: '5555555555',
preferred_locales: [],
shipping: null,
tax_exempt: 'none',
tax_ids: {
object: 'list',
data: [],
has_more: false,
total_count: 0,
url: '/v1/customers/cus_PoKLNV4jCZ0vVP/tax_ids'
},
test_clock: null
}
oh hey!! it just started working
Thanks for the clarification. I will say that, depending on how quickly you're creating a customer and calling the search endpoint, you may not receive the result you're looking for. There might be a bit of a delay before a recently-created object will be returned