Hello,
I am using the Node JS SDK and am calling the createLoyaltyAccount API, passing in the body with a phone number that includes the country code. But when I call the api to get that customer, the country code is missing. For example, if I send the following body:
const body: CreateLoyaltyAccountRequest = {
loyaltyAccount: {
programId: ‘d619f755-2d17-41f3-990d-c04ecedd64dd’,
mapping: {
phoneNumber: ‘+14155551234’,
},
},
idempotencyKey: ‘ec78c477-b1c3-4899-a209-a4e71337c996’,
};
what gets returned when calling customers/bulk-retrieve is 4155551234, so the + sign and country code are both missing.
I’m not sure if I’m doing something wrong. Any help would be greatly appreciated.
Mike
1 post - 1 participant